Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Need Help for Ocl Constraint
Need Help for Ocl Constraint [message #695258] Mon, 11 July 2011 07:44
Eclipse UserFriend
Hi everyone !

My model look like this :
A state machine which can send Events.(with a eClass StateMachine, eClass State, eClasse Event, and a StateMachine's property canThrow:Event with a * cardinality)

A StateMachine contains some Transitions, who also have a property what:Event , at 0..1

My problem is that a Transition can have its 'what' property filled with any Event, not only those throwed by its StateMachine.

I'm Trying to use some OCL constraint( like self.owner.canThrow->oclInclude(self.what) on a transition, but it prevent me to create new Transition, and i can set any Event for the already placed Transition, even the supposed forbidden one.

My problem is not about OCL syntax (even if i'm not really used to it), but about which GMF item i'm supposed to use in my mapping to hold my constraint.

Thanks in advance for your help !

Previous Topic:Problem Shared Editing Domain
Next Topic:Problem with Indigo release
Goto Forum:
  


Current Time: Tue Jul 08 17:30:58 EDT 2025

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

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

Back to the top