Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » ocl in profile uml
ocl in profile uml [message #546047] Sat, 10 July 2010 10:52 Go to next message
kamel  is currently offline kamel Friend
Messages: 21
Registered: July 2010
Junior Member
hi
i create a profile uml with emf .it contains many constraints OCL.then i convert my profile to ecore model to create a dynamic instance . when i validate my instance.xmi the validation work succusfully howhever the instance das not respect the constraint ocl.
please someone help me it's urgent .
Re: ocl in profile uml [message #546051 is a reply to message #546047] Sat, 10 July 2010 11:29 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Kamel

You'll need to be much clearer,

first you say: 'the validation work succusfully'
then you say: 'the instance das not respect the constraint ocl'

These seem contradictory. What does not work?

Please provide useful detail when asking for help. Sit back for a moment
and ask yourself whether anyone receiving your request stands any chance
of understanding it.

Regards

Ed Willink

On 10/07/2010 11:52, kamel wrote:
> hi i create a profile uml with emf .it contains many constraints
> OCL.then i convert my profile to ecore model to create a dynamic
> instance . when i validate my instance.xmi the validation work
> succusfully howhever the instance das not respect the constraint ocl.
> please someone help me it's urgent .
Re: ocl in profile uml [message #546120 is a reply to message #546051] Sun, 11 July 2010 11:48 Go to previous messageGo to next message
kamel  is currently offline kamel Friend
Messages: 21
Registered: July 2010
Junior Member
i explain more:
I create a uml profile and I define it. and now when I create a model and I applied my profile, this model does not take into account the OCL constraints for each stereotype. example
in my profile I have a stereotype fuzzy_class_trz and tagged values fuzzya and fuzzyb .constraint is:
self.fuzzya <self.fuzzyb

but in my model and when I create a stereoped class this constraint didn't have any effect.
Re: ocl in profile uml [message #546124 is a reply to message #546051] Sun, 11 July 2010 12:10 Go to previous messageGo to next message
kamel  is currently offline kamel Friend
Messages: 21
Registered: July 2010
Junior Member
No Message Body
Re: ocl in profile uml [message #546164 is a reply to message #546120] Sun, 11 July 2010 22:21 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi Kamel

As I wrote before, unless you explain your problem you are unlikely to
get a useful response.

What effect are you expecting to observe and how are you failing to
observe it.

Regards

Ed Willink




On 11/07/2010 12:48, kamel wrote:
> i explain more:
> I create a uml profile and I define it. and now when I create a model
> and I applied my profile, this model does not take into account the OCL
> constraints for each stereotype. example
> in my profile I have a stereotype fuzzy_class_trz and tagged values
> fuzzya and fuzzyb .constraint is: self.fuzzya <self.fuzzyb
>
> but in my model and when I create a stereoped class this constraint
> didn't have any effect.
>
Previous Topic:parsing OCL as a pure abstract syntax tree
Next Topic:EXTLibraryPackage ?
Goto Forum:
  


Current Time: Tue Mar 19 07:13:15 GMT 2024

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

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

Back to the top