[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Problems with the Mapping model

Hello Anna,

Yes, A, B and C has the same superclass. What we want is to have one
start node that should have 1 outgoing link, one normal node that
should have 0-* outgoing and incoming links and one final node that
should have 1 incoming link. The link type should always be the same,
Then you can solve this problem having only one LinkMapping with complex link creation constraints like:

(source constraint): if self.oclIsKindOf(A) then self.outgoingConnections->size() = 0 else not self.oclIsKindOf(C) endif

(target constraint): if self.oclIsKindOf(C) then self.incomingConnections->size() = 0 else not self.oclIsKindOf(A) endif


----------------- Alex Shatalin