This shows you the differences between two versions of the page.
padl_creator_aol [2014/02/16 09:04] yann |
padl_creator_aol [2017/09/06 01:54] |
||
---|---|---|---|
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> | ||