[gme-users] Constraint definition problem to check position

Kevin Smyth ksmyth at isis.vanderbilt.edu
Tue Sep 2 08:39:21 CDT 2014


Unfortunately, this is not currently possible. The constraint manager 
interfaces are different than the interfaces defined in Mga.idl, and 
they do not expose the registry.

Kevin

On 8/28/2014 4:39 AM, Deniz Çetinkaya wrote:
>
> Dear All,
>
> For a  GME metamodel, I would like to reach the position of a model or 
> an atom and check it in OCL. Is there a way to do this?
>
> In other words, how can we reach to the regnodes in a model?
>
> This is what I see in XME file:
>
> <model id="id-0065-00000003" kind="Parking" role="Parking" 
> guid="{38124716-ca03-48d1-a7f2-e4dcd55c298b}" relid="0x2" 
> childrelidcntr="0x0">
>
> <name>Parking</name>
>
> <regnode name="PartRegs" status="undefined">
>
> <value></value>
>
> <regnode name="Aspect" status="undefined">
>
> <value></value>
>
> <regnode name="Position" isopaque="yes">
>
> <value>175,245</value>
>
> </regnode>
>
> </regnode>
>
> </regnode>
>
> </model>
>
> This is what I try with OCL:
>
> self.PartRegs.Aspect.Position = "20,20"
>
> or something like this:
>
> self.PartRegs.Aspect.Position.getX() = 20
>
> Thank you very much.
>
> Asst.Prof.Dr. Deniz Çetinkaya
>
> Electrical and Electronics Engineering Department
>
> Faculty of Engineering
>
> University of Turkish Aeronautical Association
>
> Email: dcetinkaya at thk.edu.tr <mailto:dcetinkaya at thk.edu.tr>
>
>
>
> _______________________________________________
> gme-users mailing list
> gme-users at list.isis.vanderbilt.edu
> http://list.isis.vanderbilt.edu/mailman/listinfo/gme-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.isis.vanderbilt.edu/pipermail/gme-users/attachments/20140902/c5913a30/attachment.html 


More information about the gme-users mailing list