Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Need Help for Ocl Constraint
Need Help for Ocl Constraint [message #695258] Mon, 11 July 2011 11:44
Valerian Merkling is currently offline Valerian MerklingFriend
Messages: 71
Registered: May 2011
Member
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: Sun Mar 07 16:17:55 GMT 2021

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

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

Back to the top