Transitions with Guards in StateMachines [message #187904] |
Tue, 20 May 2008 11:49 |
Eclipse User |
|
|
|
Originally posted by: hedayati.tzi.de
Hi,
I try to build a statemachine with gmf. Therefor I have defined an
Ecore-Class Transition with a reference (containment) to an Ecore-Class
Expression (like clas Constraint) for a guard of the transition and a
reference to an Ecore-Class Action for an effect that could be triggered.
The usual way is to map the Transition as a link, but if I do so, there
is no way to specify a guard or an effect for the transiton. I can only
add attributes to the Transition Ecore-Class for an effect or a guard,
but they are only EString or Strings with no reference to the above
mentioned Ecore-Classes.
Thanks and best regards
Ramin
|
|
|
|
Re: Transitions with Guards in StateMachines [message #187926 is a reply to message #187904] |
Tue, 20 May 2008 12:16 |
Eclipse User |
|
|
|
Originally posted by: hedayati.tzi.de
Sorry,
I forgot the question:
is there a way to get a guard and an effect to the Transition Connection
in the mapping, so that guard is an Expression and effect is an Action
(reference this class)?
Regards
Ramin
Ramin Hedayati schrieb:
> Hi,
>
> I try to build a statemachine with gmf. Therefor I have defined an
> Ecore-Class Transition with a reference (containment) to an Ecore-Class
> Expression (like clas Constraint) for a guard of the transition and a
> reference to an Ecore-Class Action for an effect that could be triggered.
>
> The usual way is to map the Transition as a link, but if I do so, there
> is no way to specify a guard or an effect for the transiton. I can only
> add attributes to the Transition Ecore-Class for an effect or a guard,
> but they are only EString or Strings with no reference to the above
> mentioned Ecore-Classes.
>
>
> Thanks and best regards
>
> Ramin
|
|
|
Powered by
FUDForum. Page generated in 0.03499 seconds