Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Constraint ocl
Constraint ocl [message #818521] Sun, 11 March 2012 19:35 Go to next message
Lamia Mati is currently offline Lamia MatiFriend
Messages: 8
Registered: February 2012
Junior Member
hi evrybody;
i have this metamodel of statechart diagram(StateChartDiagram.png)i want to apply an ocl constraint to the InitialState classe in especially.
i I wrote in statchert.ecor this code:
invariant OneInitialState:ContentIn.state->size()=1;

but this piece of code is applied on all the states, i cant draw in the model conforme in this metamodel unless one state.

My question is:
how can i apply this constraint on the InitialState class only.
thnks for the hep
Re: Constraint ocl [message #825786 is a reply to message #818521] Wed, 21 March 2012 09:03 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi,

do you have a bit more extended description of what you did? Which plugins did you use to specify the OCL on your diagram? A bit more expressive excerpt of the OCL definition together with on which model elements you specified them. Everthying would be helpful.

Ralph
Previous Topic:[GMF] Containment Bug
Next Topic:Delete link programatically
Goto Forum:
  


Current Time: Thu Oct 29 02:08:30 GMT 2020

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

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

Back to the top