Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » synchronisation between counters in two separated matched rules
synchronisation between counters in two separated matched rules [message #1764312] Sat, 27 May 2017 21:48
Sarah K. is currently offline Sarah K.Friend
Messages: 43
Registered: February 2017
Member
Hi everyBody,
I have 2 matched rules, rule 1 and rule 2.
in rule 1 i have a counter that increments an id for example id0,id1,id2...
what i want to do is to synchronize between the 2 rules :
for example if id0 is created in rule1,
and in rule2 for example i have
loc:loc!MM
( id<- id+thisModule.counter,
..)
i want this id to be id0 as it is created in rule1.
i want to synchronize between the two rules, specifically between the two id.
any idea how to do this.
regards
Previous Topic:error: java.lang.String does not have properties
Next Topic:problem with the iteration
Goto Forum:
  


Current Time: Fri Jan 19 17:48:49 GMT 2018

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

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