Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Implementation of constriants in UML models
Implementation of constriants in UML models [message #476912] Wed, 06 February 2008 09:21 Go to next message
Andy Carpenter is currently offline Andy CarpenterFriend
Messages: 145
Registered: July 2009
Senior Member
I have some constraints in my UML model. When I run
uml2emf these appear in the ecore model as operations
without the details of the constraint expression in the model.
I'd like to use the techniques described in
<a
href=" http://www.eclipse.org/articles/article.php?file=Article-EMF -Codegen-with-OCL/index.html">Implementing
Model Integrity in EMF with MDT OCL</a> to generate
the implementation of these constraints. The article does
not indicate how to added constraints to a UML model. However,
what it does show is that it expects constraints to occur as
annotations in the ecore model. So, how can I get the
constraints in my UML model transferred to annotations in the
ecore model in a form that can be used to generate an
implementation of them?

thanks
Andy.


--
-- ------------------------------------------------------------ -------------
Dr Andy Carpenter
School of Computer Science,
University of Manchester, Manchester M13 9PL, UK
Email: Andy.Carpenter@manchester.ac.uk
Tel: +44 161 275 6168
Fax: +44 161 275 6280
Re: Implementation of constriants in UML models [message #476914 is a reply to message #476912] Thu, 07 February 2008 14:40 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Andy,

Have a look at:
http://wiki.eclipse.org/index.php/MDT_1.0_New_and_Noteworthy #OCL_Integration

Let me know if you still have issues.

Cheers,
-James.


"Andy Carpenter" <Andy.Carpenter@manchester.ac.uk> wrote in message
news:fobuh7$hmk$1@build.eclipse.org...
>I have some constraints in my UML model. When I run
> uml2emf these appear in the ecore model as operations
> without the details of the constraint expression in the model.
> I'd like to use the techniques described in
> <a
> href=" http://www.eclipse.org/articles/article.php?file=Article-EMF -Codegen-with-OCL/index.html">Implementing
> Model Integrity in EMF with MDT OCL</a> to generate
> the implementation of these constraints. The article does
> not indicate how to added constraints to a UML model. However,
> what it does show is that it expects constraints to occur as
> annotations in the ecore model. So, how can I get the
> constraints in my UML model transferred to annotations in the
> ecore model in a form that can be used to generate an
> implementation of them?
>
> thanks
> Andy.
>
>
> --
> -- ------------------------------------------------------------ -------------
> Dr Andy Carpenter
> School of Computer Science,
> University of Manchester, Manchester M13 9PL, UK
> Email: Andy.Carpenter@manchester.ac.uk
> Tel: +44 161 275 6168
> Fax: +44 161 275 6280
>
Re: Implementation of constriants in UML models [message #625992 is a reply to message #476912] Thu, 07 February 2008 14:40 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Andy,

Have a look at:
http://wiki.eclipse.org/index.php/MDT_1.0_New_and_Noteworthy #OCL_Integration

Let me know if you still have issues.

Cheers,
-James.


"Andy Carpenter" <Andy.Carpenter@manchester.ac.uk> wrote in message
news:fobuh7$hmk$1@build.eclipse.org...
>I have some constraints in my UML model. When I run
> uml2emf these appear in the ecore model as operations
> without the details of the constraint expression in the model.
> I'd like to use the techniques described in
> <a
> href=" http://www.eclipse.org/articles/article.php?file=Article-EMF -Codegen-with-OCL/index.html">Implementing
> Model Integrity in EMF with MDT OCL</a> to generate
> the implementation of these constraints. The article does
> not indicate how to added constraints to a UML model. However,
> what it does show is that it expects constraints to occur as
> annotations in the ecore model. So, how can I get the
> constraints in my UML model transferred to annotations in the
> ecore model in a form that can be used to generate an
> implementation of them?
>
> thanks
> Andy.
>
>
> --
> -- ------------------------------------------------------------ -------------
> Dr Andy Carpenter
> School of Computer Science,
> University of Manchester, Manchester M13 9PL, UK
> Email: Andy.Carpenter@manchester.ac.uk
> Tel: +44 161 275 6168
> Fax: +44 161 275 6280
>
Previous Topic:Getting stereotype's property values.
Next Topic:Getting stereotype's property values.
Goto Forum:
  


Current Time: Fri Apr 26 16:12:04 GMT 2024

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

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

Back to the top