SimuCom code generation broken. Regression of PALLADIO-495
Description
The SimuCom simulation failes due to the following compilation issues in the generated code:
The constructor OpenWorkload(SimuComModel, RealisticFactory, String) is undefined SimuComControl.java /org.palladiosimulator.temporary/src/main line 31
The constructor OpenWorkloadUserFactory(SimuComModel, String) is undefined RealisticFactory.java /org.palladiosimulator.temporary/src/realistic/impl line 10
The constructor RealisticFactory(SimuComModel, String, Cacheless) is undefined SimuComControl.java /org.palladiosimulator.temporary/src/main line 32
"Realistic" is the name of the usage scenario.
Eclipse suggests to add an additional argument of type IResourceTableManager in each case. Apparently, the SimuCom codegen templates have not been adapted comprehensively to the changes of PALLADIO-495.
Environment
Eclipse DSL Edition with Palladio installed from the nightly updatesite (4.3.02020101700xx).
Activity
Provided fix by adding missing constructor parameters in source code gen templates
bundles/de.uka.ipd.sdq.pcm.codegen.simucom/src-transforms/de/uka/ipd/sdq/pcm/codegen/simucom/transformations/sim/SimUsageFactoryXpt.xtend
bundles/de.uka.ipd.sdq.pcm.codegen.simucom/src-transforms/de/uka/ipd/sdq/pcm/codegen/simucom/transformations/sim/SimUsageXpt.xtend
The problem can also be reprocuded by running the 'MediaStore'. e.g. launch 'ms audio_wm realistic 1k':
I attached the problematic files. The models are generated based on the mediastore.tpcm specification and are located within the model-gen folder. I also included the project containing the generated sources, which show the generated incompatible constructor interfaces.
The problems occured when running the models stored in 'https://github.com/PalladioSimulator/Palladio-Addons-TextBasedModelGenerator#tpcm'.
This model is a variation of the official Palladio Media Store model. Thus also try to reproduce the problem by running the 'MediaStore' model, because we expect, that
the describes problem should also occur.