I'm using ECL to compare two models (A and B). I set which model to compare by including the two models in the runtime configuration.
My ECL script is as follows:
rule CheckBisimulation
match originalModel:StateMachine
with refactoredModel:StateMachine{
compare:checkBisimulation(originalModel,refactoredModel)
do{'The models are bisimilar'.println();}
}
How does ECL know that model A is originalModel and model B is refactoredModel?
Louis Rose Messages: 427 Registered: July 2009 Location: York, United Kingdom
Senior Member
Hi Lukman,
The name given to a model in the runtime configuration is used to access the types of that model using the following syntax:
ModelName!Type
So I would suggest changing the ECL script to this:
rule CheckBisimulation
match originalModel:A!StateMachine
with refactoredModel:B!StateMachine{
compare:checkBisimulation(originalModel,refactoredModel)
do{'The models are bisimilar'.println();}
}
Which is read as: "The rule CheckBismulation matches StateMachines of model A and StateMachines of model B..."