User Tools

Site Tools


padl_creator_aol

Differences

This shows you the differences between two versions of the page.


Previous revision
padl_creator_aol [2025/01/15 21:40] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== PADL Creator AOL ======
  
 +The AOL format was created by [[http://www.antoniol.net/|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:
 +
 +<code>
 +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());
 +}
 +</code>
 +
 +:!: 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.