INTO-CPS-Association / hybrid-cosim

A DSL for creating semantic adaptations of FMUs
3 stars 1 forks source link

ExecuteInRules should be in beginning of DoStep #3

Open CThuleHansen opened 6 years ago

CThuleHansen commented 6 years ago

ExecuteInRules is current executed on every setXXX performed on the external FMU. This is costly and unnecessary. Instead, it should be moved to the beginning of the doStep function.

https://github.com/INTO-CPS-Association/hybrid-cosim/blob/af6979370b1ab00ae481158690fcc01acf7b80e4/DSL_SemanticAdaptation/be.uantwerpen.ansymo.semanticadaptation.cg.cpp/src/be/uantwerpen/ansymo/semanticadaptation/cg/cpp/generation/FmuGenerator.xtend#L225