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

Show:
Martina Rapp
October 28, 2020, 1:06 PM

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

Martina Rapp
October 27, 2020, 9:37 AM
Edited

The problem can also be reprocuded by running the 'MediaStore'. e.g. launch 'ms audio_wm realistic 1k':

Sebastian Krach
October 27, 2020, 8:55 AM

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.

Martina Rapp
October 27, 2020, 8:49 AM

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.

Fixed

Assignee

Martina Rapp

Reporter

Sebastian Krach

Labels

None

Requirement Category

None

External issue URL

None

Components

Fix versions

Affects versions

Priority

Blocker