User Tools

Site Tools


padl_creator_aol

PADL Creator AOL

The AOL format was created by Giuliano Antoniol and is used by several researchers to describe object-oriented programs. A typical sample of code to create PADL models from AOL files is as follows:

ICodeLevelModel codeLevelModel =
	Factory.getInstance().createCodeLevelModel(name);
codeLevelModel.create(new AOLCreator(
	new String[] { fileName }));

IIdiomLevelModel idiomLevelModel = null;
try {
	final MethodInvocationAnalyser methodInvocationAdder =
		new MethodInvocationAnalyser();
	methodInvocationAdder.setCLDFile(cldFileName);
	codeLevelModel =
		(ICodeLevelModel) methodInvocationAdder
			.invoke(codeLevelModel);

	idiomLevelModel =
		(IIdiomLevelModel) new AACRelationshipsAnalysis(
			false).invoke(codeLevelModel);
}
catch (final UnsupportedSourceModelException e) {
	e.printStackTrace(ProxyConsole
		.getInstance()
		.errorOutput());
}

:!: The padl.generator.helper.ModelGenerator interface in project PADL Generator hides the implementation details of creating a PADL model and should be used in most of the cases.

padl_creator_aol.txt · Last modified: 2019/10/06 20:37 (external edit)