[gme-users] single fixed model
Nicki Lehmann Møller
nicki at itu.dk
Fri Sep 15 11:36:41 CDT 2006
Hi zoli,
Thank you for your quick reply.
On 9/14/06, Zoltan Molnar <zolmol at isis.vanderbilt.edu> wrote:
>
> Hi,
>
> Yes, a constraint could do it and i believe is the way to do it, because
> no other mechanism could check so simply and effectively..
> Like this one:
>
> let t1 = project.allInstancesOf( meta::MyModel)->size in t1 = 1
>
> This constraint can be attached to any object in your metamodel, it will
> still count the total number of MyModels in the whole project.
> Yet if you attach it to MyModel, and set its priority to 1, and you set
> the On Create or On New Child events to fire the constr. it will prevent
> realtime users from creating 2 instances.
>
> br, Zoli
>
> -----Original Message-----
> *From:* gme-users-bounces at list.isis.vanderbilt.edu [mailto:
> gme-users-bounces at list.isis.vanderbilt.edu] *On Behalf Of *Nicki Lehmann
> Møller
> *Sent:* Wednesday, September 13, 2006 3:39 AM
> *To:* gme-users
> *Subject:* [gme-users] single fixed model
>
> Hi All!
>
> Here is a hopefully very simple question that I however haven't found the
> answer for yet :(
> How should a single fixed model (singleton model object like Santa :-)) be
> created. I know this could be done using cardinality and constraints, but is
> this the correct way to do it?
>
> --
> Kind Regards,
> Nicki
>
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>
>
>
--
Kind Regards,
Nicki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20060915/5fb70756/attachment.htm
More information about the gme-users
mailing list