Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Getting value from a reference
Getting value from a reference [message #1585] Mon, 18 December 2006 20:43
Eclipse UserFriend
Originally posted by: dorazio.nicola.yahoo.it

Hi all,
I have this km3 classes:

class ServiceCall extends Activity {
reference calledService[0-1] : Service oppositeOf serviceCall;
}


class State {
attribute name[0-1] : String;
attribute refersTo: String;
}

now I need to modify this rule:

rule activity2state
{
from
astep: Klaper!Activity (astep.internalFailProb='0')
using{
list: Sequence(Klaper!Behavior) = astep.getSCBehaviorType();
}
to
state: DTMP!State (name<-astep.name,
refersTo<-'TEST',
dtmp<-thisModule.resolveTemp(astep.behavior,
'dtmp'),
}


because I want to write inside the refersTo variable the value of the
reference calledService. How can I do this?

Thanks to all

Best regard

Nicola D'Orazio
Previous Topic:[atl] ATL 2006
Next Topic:Launching ATL programmatically
Goto Forum:
  


Current Time: Tue Mar 19 06:31:41 GMT 2024

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

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

Back to the top