[gme-users] Regarding OCL

Zoltan Molnar zoltan.molnar at vanderbilt.edu
Thu Oct 26 12:19:24 CDT 2006


(Supposed the second = is an assignment) you can NOT do that, since OCL 
expressions are not supposed to change the state of the elements they 
are defined for.
Zoli

Adi Mallikarjuna Reddy V wrote:
> Hi All,
>
> I would like to attach a constraint to the model. The model has two 
> attributes attr1 and attr2.
>
> I would like to a constraint in the following manner,
>
> if model1.attr1 ='None'
> then
> model.attr2.viewable=false
>
>
> Is it possible? If so, let me know OCL construct for this.
>
> Regards
> Adi
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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