[gme-users] Re: gme-users Digest, Vol 40, Issue 1

Akos Ledeczi akos.ledeczi at vanderbilt.edu
Thu Apr 5 23:25:52 CDT 2007


well, you cannot control what's visible in the menu. But you can write a
constraint that checks the selected value. You can make it an
event-driven constraint and assign it to the change attr event. If you
make it priority one then if the user selects the "wrong" value for the
given context she will get a constraint violation and the only choice is
to abort the transaction, so the  attr value will never be set to the
wrong value.

Akos

=CA=E6=D5=D7=B8=DB wrote:
>    =20
>     if two <<model>>s  contain the <<atom>>,  I wish that some <<EmueAt=
tribute>> items of the <<atom>> can not be selected  in specific <<model>=
>, how to control this?
>=20
> thank you again.
>=20
>=20
> David.
>=20
>=20
> =09
>=20
>=20
> =3D=3D=3D=3D=3D=3D=3D 2007-04-06 01:00:01 =C4=FA=D4=DA=C0=B4=D0=C5=D6=D0=
=D0=B4=B5=C0=A3=BA=3D=3D=3D=3D=3D=3D=3D
>=20
>> Send gme-users mailing list submissions to
>> 	gme-users at list.isis.vanderbilt.edu
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> 	http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>> or, via email, send a message with subject or body 'help' to
>> 	gme-users-request at list.isis.vanderbilt.edu
>>
>> You can reach the person managing the list at
>> 	gme-users-owner at list.isis.vanderbilt.edu
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of gme-users digest..."
>>
>>
>> Today's Topics:
>>
>>   1. help for constraint (=3D?gb2312?B?yubV17jb?=3D)
>>   2. RE: help for constraint (Zoltan Molnar)
>>
>>
>> ----------------------------------------------------------------------=

>>
>> Message: 1
>> Date: Thu, 5 Apr 2007 17:44:37 +0800
>> From: "=3D?gb2312?B?yubV17jb?=3D" <zgshu2004 at 163.com>
>> Subject: [gme-users] help for constraint
>> To: "gme-users" <gme-users at list.isis.vanderbilt.edu>
>> Message-ID: <4614C505.05EBD3.03266 at m5-82.163.com>
>> Content-Type: text/plain;	charset=3D"gb2312"
>>
>> Hi,
>> =20
>>  In metamodel, a <<Atom>> has a <<EmueAttribute>> , the values of the =
<<EmueAttribute>> MenuItems   have three items:A, B, and C. There are two=
 aspects: at1 and at2. The <<Atom>> can be showed in both aspects. Now, I=
 want to show different <<EmueAttribute>> MenuItems values of this <<Atom=
>> in different aspects, how to write the constraints in OCL?
>>
>> for example,in user's model:
>>
>> in aspect at1:  <<EmueAttribute>> of the <<atom>>  have three optional=
 values: A , B, C;
>>
>> in aspect at2:  <<EmueAttribute>> of the <<atom>>  have only two optio=
nal values: A ,B;
>>
>>
>>
>>
>>
>> thanks.
>>
>> =20
>> David=20
>>  =20
>>    Ph.D Candidate     South China University of Technology, Guangzhou,=
 China.
>>
>> Email: zgshu2004 at 163.com
>>
>>
>>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Thu, 5 Apr 2007 10:16:59 -0500
>> From: "Zoltan Molnar" <zolmol at isis.vanderbilt.edu>
>> Subject: RE: [gme-users] help for constraint
>> To: "gme-users" <gme-users at list.isis.vanderbilt.edu>
>> Message-ID:
>> 	<7AB1C26C64423249964AB392C6EBF0E0B8B27E at discovery.isis.vanderbilt.edu=
>
>> Content-Type: text/plain;	charset=3D"us-ascii"
>>
>> Hi,
>>
>> Attribute values are not aspect specific. So you can't control attribu=
te
>> values according to the current aspect of an FCO.
>>
>> Br, Zoli
>>
>>> -----Original Message-----
>>> From: gme-users-bounces at list.isis.vanderbilt.edu=20
>>> [mailto:gme-users-bounces at list.isis.vanderbilt.edu] On Behalf=20
>>> Of zgshu2004 at 163.com
>>> Sent: Thursday, April 05, 2007 4:45 AM
>>> To: gme-users
>>> Subject: [gme-users] help for constraint
>>>
>>>
>>> Hi,
>>>  =20
>>>   In metamodel, a <<Atom>> has a <<EmueAttribute>> , the=20
>>> values of the <<EmueAttribute>> MenuItems   have three=20
>>> items:A, B, and C. There are two aspects: at1 and at2. The=20
>>> <<Atom>> can be showed in both aspects. Now, I want to show=20
>>> different <<EmueAttribute>> MenuItems values of this <<Atom>>=20
>>> in different aspects, how to write the constraints in OCL?
>>>
>>> for example,in user's model:
>>>
>>> in aspect at1:  <<EmueAttribute>> of the <<atom>>  have three=20
>>> optional values: A , B, C;
>>>
>>> in aspect at2:  <<EmueAttribute>> of the <<atom>>  have only=20
>>> two optional values: A ,B;
>>>
>>>
>>>
>>>
>>>
>>> thanks.
>>> =20
>>>  =20
>>> David=20
>>>   =20
>>>     Ph.D Candidate     South China University of Technology,=20
>>> Guangzhou, China.
>>>
>>> Email: zgshu2004 at 163.com
>>>
>>>
>>> _______________________________________________
>>> 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
>> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users
>>
>>
>> End of gme-users Digest, Vol 40, Issue 1
>> ****************************************
>>
>=20
> =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D =3D=
 =3D =3D
> 		=09
>=20
>=20
>=20
>=20
>=20
> -----------------------------------------------------------------------=
-
>=20
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users



More information about the gme-users mailing list