Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » just an idea
just an idea [message #19607] Wed, 01 February 2006 11:19 Go to next message
Eclipse UserFriend
Originally posted by: mgarcia912.yahoo.com

Why don't some of the EMFT OCL developers write a visitor for Octopus, so as
to translate its ASTs for the UML class model and for OCL expressions into
their input format? Or build in-memory instances of their metamodels and
then serialize. Then you will have more confidence when debugging OCL, for
you know it should work.

I mean, translating the subset of OctopusUML that EMF can handle. EMF cannot
do natively UML 1.4 association classes, for example. You translate then to
an additional class with two binary associations, and OCL the cardinality
constraints.

Just an idea, just an idea.

Miguel Garcia
Re: just an idea [message #19697 is a reply to message #19607] Wed, 01 February 2006 17:07 Go to previous message
Eclipse UserFriend
Originally posted by: info.dfm2html.com

>
> Why don't some of the EMFT OCL developers write a visitor for Octopus, so
> as to translate its ASTs for the UML class model and for OCL expressions
> into their input format? Or build in-memory instances of their metamodels
> and then serialize. Then you will have more confidence when debugging OCL,
> for you know it should work.
>
> I mean, translating the subset of OctopusUML that EMF can handle. EMF
> cannot do natively UML 1.4 association classes, for example. You translate
> then to an additional class with two binary associations, and OCL the
> cardinality constraints.

I thought that EMF is not meant to implement UML1.4, but the UML2 project
can do so.
By the way, does anyone know: EMFT OCL implements most of OCL2.0 spec.,
but why can this EMFT OCL be executed on a EMF model (for a model having
plain EMF as metamodel, and not UML2).
Is EMF formally considered as a subset of UML so that this is a formally
valid approach?
Re: just an idea [message #565275 is a reply to message #19607] Wed, 01 February 2006 17:07 Go to previous message
Eclipse UserFriend
Originally posted by: info.dfm2html.com

>
> Why don't some of the EMFT OCL developers write a visitor for Octopus, so
> as to translate its ASTs for the UML class model and for OCL expressions
> into their input format? Or build in-memory instances of their metamodels
> and then serialize. Then you will have more confidence when debugging OCL,
> for you know it should work.
>
> I mean, translating the subset of OctopusUML that EMF can handle. EMF
> cannot do natively UML 1.4 association classes, for example. You translate
> then to an additional class with two binary associations, and OCL the
> cardinality constraints.

I thought that EMF is not meant to implement UML1.4, but the UML2 project
can do so.
By the way, does anyone know: EMFT OCL implements most of OCL2.0 spec.,
but why can this EMFT OCL be executed on a EMF model (for a model having
plain EMF as metamodel, and not UML2).
Is EMF formally considered as a subset of UML so that this is a formally
valid approach?
Previous Topic:Incorrect OCL error messages on correct OCL
Next Topic:Can Ocl provided by EMFT be used in some stand alone application?
Goto Forum:
  


Current Time: Thu Apr 25 20:08:37 GMT 2024

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

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

Back to the top