Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » How ECL script recognize models to compare
How ECL script recognize models to compare [message #591151] Thu, 05 August 2010 05:07 Go to next message
Lukman  is currently offline Lukman Friend
Messages: 8
Registered: August 2010
Junior Member
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?
Re: How ECL script recognize models to compare [message #591158 is a reply to message #591151] Thu, 05 August 2010 08:30 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
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..."

Cheers,
Louis.
Previous Topic:How ECL script recognize models to compare
Next Topic:[Eugenia] Palette Icons and Iterative Development Process
Goto Forum:
  


Current Time: Mon Sep 23 14:44:14 GMT 2024

Powered by FUDForum. Page generated in 0.03200 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top