Skip to main content



      Home
Home » Modeling » UML2 » constraint ocl
constraint ocl [message #476213] Tue, 25 September 2007 10:16 Go to next message
Eclipse UserFriend
Originally posted by: briandwilliam.hotmail.com

hi,

I have an ocl constraint who is defined on a connection in my gmfmap , it's
for initialise a label of my connection.
my connection does not appear on the diagram !
however it appears in the model !!! and the string label property is not
defined ????

my constraint ocl is applied on a link mapping of my generator model
(gmfmap) :

if
self.redefinitionAccrochePort.contenu.redefinitionDescripteu rDeReferencePort
Syn.redefinitionRefDescSyn.direction->forAll(d
| d = Direction::IN) then
self.role='receveur'
else
self.role='emetteur'
endif

the constraint is valid but doesn't works correcty !
have you got an idea ??

thanks



  • Attachment: model.jpeg
    (Size: 75.33KB, Downloaded 153 times)
Re: constraint ocl [message #476241 is a reply to message #476213] Fri, 28 September 2007 11:32 Go to previous message
Eclipse UserFriend
Hi Briand,

In terms of why the connection does not appear in the diagram and why the
string label property is not defined .. I think that you might want to try
the GMF newsgroup.

Also, can you clarify what you mean by ... "the constraint is valid but
doesn't works correcty !". In what way does it not work correctly? The OCL
newsgroup would be appropriate for OCL type questions.

- James.


"briand" <briandwilliam@hotmail.com> wrote in message
news:fdb57e$3ac$1@build.eclipse.org...
> hi,
>
> I have an ocl constraint who is defined on a connection in my gmfmap ,
it's
> for initialise a label of my connection.
> my connection does not appear on the diagram !
> however it appears in the model !!! and the string label property is not
> defined ????
>
> my constraint ocl is applied on a link mapping of my generator model
> (gmfmap) :
>
> if
>
self.redefinitionAccrochePort.contenu.redefinitionDescripteu rDeReferencePort
> Syn.redefinitionRefDescSyn.direction->forAll(d
> | d = Direction::IN) then
> self.role='receveur'
> else
> self.role='emetteur'
> endif
>
> the constraint is valid but doesn't works correcty !
> have you got an idea ??
>
> thanks
>
>
>
>
Re: constraint ocl [message #625051 is a reply to message #476213] Fri, 28 September 2007 11:32 Go to previous message
Eclipse UserFriend
Hi Briand,

In terms of why the connection does not appear in the diagram and why the
string label property is not defined .. I think that you might want to try
the GMF newsgroup.

Also, can you clarify what you mean by ... "the constraint is valid but
doesn't works correcty !". In what way does it not work correctly? The OCL
newsgroup would be appropriate for OCL type questions.

- James.


"briand" <briandwilliam@hotmail.com> wrote in message
news:fdb57e$3ac$1@build.eclipse.org...
> hi,
>
> I have an ocl constraint who is defined on a connection in my gmfmap ,
it's
> for initialise a label of my connection.
> my connection does not appear on the diagram !
> however it appears in the model !!! and the string label property is not
> defined ????
>
> my constraint ocl is applied on a link mapping of my generator model
> (gmfmap) :
>
> if
>
self.redefinitionAccrochePort.contenu.redefinitionDescripteu rDeReferencePort
> Syn.redefinitionRefDescSyn.direction->forAll(d
> | d = Direction::IN) then
> self.role='receveur'
> else
> self.role='emetteur'
> endif
>
> the constraint is valid but doesn't works correcty !
> have you got an idea ??
>
> thanks
>
>
>
>
Previous Topic:Tagged value support
Next Topic:static profil definition
Goto Forum:
  


Current Time: Sun Aug 31 10:23:00 EDT 2025

Powered by FUDForum. Page generated in 0.03869 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top