[gme-users] Re: Small question and discussion forums
zawarq at gmail.com
Thu Feb 23 17:53:06 CST 2006
Thanks Matthew, Zoli, Akos
I applied Zoli's advice below and it worked for me. Metthew's post was is
On 2/23/06, Zoltan Molnar <zolmol at isis.vanderbilt.edu> wrote:
> If you specify 0..1 on the containment line the paradigm will have a
> constraint defined automatically.
> However if you'd like to make that constraint preventive, you
> -either specify events for all automatic constraints in the Options dialog
> shown during MetaInterpretation [select the Event button near Containment
> and tick the newchild event]
> -or create a custom constraint on the Constraint aspect attached to the
> Any container and select it to be checked on every OnNewChild event
> If you chose the 1st option, any container/contaiment which is not 0..*
> will be checked on the NewChild event.
> In the 2nd case your custom constraint can be defined so that it will
> check only Any models, upon NewChild event arrivals.
> > Zawar Qayyum wrote:
> > > Akos
> > >
> > > I am using GME as part of my research in modelling an architectural
> > > definition language Pi-ADL at Université de Bretagne-Sud. I
> > must say
> > > that its a very robust and well written tool. I have a
> > little question
> > > however: In my meta model I have a <<Model>> called Any, which can
> > > contain (through a containment relationship) atmost one instance of
> > > <<Atom>> BaseType. How do I express that in the subset of
> > OCL that GME
> > > implements? Customizing the multiplicity doesn't seem to have the
> > > desired effect since I want to /*prevent*/ the addition of
> > more than one
> > > BaseTypes.
> > >
> > > I would have liked to post this question on a relevant discussion
> > > forum
> > > but didn't find any. Could you point me to any such forum
> > that you know of?
> > >
> > > Thanks in advance.
> > > Zawar
> > _______________________________________________
> > gme-users mailing list
> > gme-users at list.isis.vanderbilt.edu
> > http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gme-users