This shows you the differences between two versions of the page.
|
padl_creator_aol [2018/03/04 02:53] |
padl_creator_aol [2025/01/15 21:40] (current) |
||
|---|---|---|---|
| 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. | ||