[gme-users] OCL help

anima anima at worldonline.de
Fri Jul 7 19:20:10 CDT 2006


Hi Zoltan,

thank you for your suggestion, but i fixed it already.
I formulated the constraint according to the tutorial and it
worked :) It is:

self.attachingConnections( Connection )
-> forAll( c1, c2:  Connection |
c1.connectionPoint( "src" ).target() = c2.connectionPoint( "src" ).target()
and
c1.connectionPoint( "dst" ).target() = c2.connectionPoint( "dst" ).target()
implies
t1 == t2)

Hope that helps someone else.
anima

----- Original Message ----- 
From: "Zoltan Molnar" <zolmol at isis.vanderbilt.edu>
To: "gme-users" <gme-users at list.isis.vanderbilt.edu>
Sent: Thursday, July 06, 2006 7:24 PM
Subject: RE: [gme-users] OCL help


Try to define and attach this constraint to the node element:

self.connectedFCOs("src","Edge1")->size()  = 1

or

self.connectedFCOs("src","Edge1").union(self.connectedFCOs("dst",
"Edge1")).size() = 1


Br, Zoli

_______________________________________________
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