SimuCom code generation for 'MinimumEventExample' broken. action method not applicable for arguments
When running the 'MinimumEventExample' model, the simucom code generation fails due to a type mismatch of passed paramter to method 'action'
How to reproduce:
1. start Eclipse runtime instance
2. Import 'MinimumEventExample'
3. Run simulation by executing launch config 'MinimuEventExample.launch'
Note: the problem is cause by passing a wrong context parameter to the action method.
The context should be 'ctx' (type: <Allocation>RuntimeContext, which extend from SimuComContext) instead of this.myContext (type: = IEventDistributionSource_EventGroup_<component>Sender_<>Context)
Affected file: SimSEFFBodyXpt.xtend l. 207 and l.224
Solution: the parameter 'this.myContext' should be replaced by 'ctx'
Update: this problem is also reproducable for the MediaStore model
Created follow-up task to further investigate problem.
Could not reproduce the originally reported problem in SIMUCOM-49. Thus this task will be closed again.
Instead a different following problem occured:
Issue seems to still exist. See
After correcting the problem, the code compiles again. But it resolves in a follow-up runtime error during simulation execution of MinimumEventExample (see ticket )
Problem was detected while working on issue