Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » encode UMLModel
encode UMLModel [message #628167] Mon, 11 January 2010 07:02 Go to next message
Randi  is currently offline Randi
Messages: 31
Registered: November 2009
Member
Hello all,

Firts I will explain what I want to do. I want to encode the exported XMI by a certain casetool into an JavaObject. So the exported XMI object I want to encode in an UMLModel JavaObject. So for this I am looking for a metamodel which describes fully the exported xmi. So als for the UML content. Which metamodels I can use for this because I want to make an ontology for all the UML aspects so I can decode/encode the exported XMI into a JavaObject automatically. Can anyone advise me how to do this?


Many thanks
Re: encode UMLModel [message #628169 is a reply to message #628167] Mon, 11 January 2010 10:38 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26012
Registered: July 2009
Senior Member
Randi,

I'm not sure I follow, but the EMF project supports serializing and
deserializing model instances as XMI. So the UML project supports this
for UML2 instance. You've read the introductory material for UML2 for
how to read and write instances?


Randi wrote:
> Hello all,
>
> Firts I will explain what I want to do. I want to encode the exported
> XMI by a certain casetool into an JavaObject. So the exported XMI
> object I want to encode in an UMLModel JavaObject. So for this I am
> looking for a metamodel which describes fully the exported xmi. So als
> for the UML content. Which metamodels I can use for this because I
> want to make an ontology for all the UML aspects so I can
> decode/encode the exported XMI into a JavaObject automatically. Can
> anyone advise me how to do this?
>
>
> Many thanks
Re: encode UMLModel [message #628170 is a reply to message #628167] Mon, 11 January 2010 12:21 Go to previous messageGo to next message
Randi  is currently offline Randi
Messages: 31
Registered: November 2009
Member
Hello Ed,

Thanks for the reply.

Wel what I wanted to do is the following:

A developper makes a UMLModel eg in Eclipse or another tool let say ArgoUML. Then this model is exported in XMI for interchange. What I want to do is import this model into the Jade(multi-agent tilab) platform in the contentslot as XMI.So I want to give as content to an agent the XMI . But within this agent I need to show some metrics about this model eg amount of classes, amount of operations etc.So I thought to decode the xmi within the agent in a Java Object(s) so I can use some methods to organise the metrics. What I need to do is make an ontology for the UMLModel in the Jade environment . So how is the exported XMI build up , or where can I find some more information about it.How can I parse this XMI with UML modelcontent
I thought to do this in Protege by importing the UML2XMI.xsd, but this failed due to a bad structure.

If I find a way to build up an ontology for the UMLModel I can decode/encode this into JavaObject(s)
Re: encode UMLModel [message #628183 is a reply to message #628170] Mon, 11 January 2010 16:25 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 26012
Registered: July 2009
Senior Member
Randi,

There's org.eclipse.uml2.uml/model/UML.ecore which is the Ecore model
for UML. EMF using that information to serialize and deserialize
instances. Ecore is isomorphic to the OMG's EMOF and can be serialized
in that form with the Sample Ecore Editor by saving to a file with emof
extension.


Randi wrote:
> Hello Ed,
>
> Thanks for the reply.
>
> Wel what I wanted to do is the following:
>
> A developper makes a UMLModel eg in Eclipse or another tool let say
> ArgoUML. Then this model is exported in XMI for interchange. What I
> want to do is import this model into the Jade(multi-agent tilab)
> platform in the contentslot as XMI.So I want to give as content to an
> agent the XMI . But within this agent I need to show some metrics
> about this model eg amount of classes, amount of operations etc.So I
> thought to decode the xmi within the agent in a Java Object(s) so I
> can use some methods to organise the metrics. What I need to do is
> make an ontology for the UMLModel in the Jade environment . So how is
> the exported XMI build up , or where can I find some more information
> about it.How can I parse this XMI with UML modelcontent
> I thought to do this in Protege by importing the UML2XMI.xsd, but this
> failed due to a bad structure.
>
> If I find a way to build up an ontology for the UMLModel I can
> decode/encode this into JavaObject(s)
Previous Topic: encode UMLModel
Next Topic:memory leak with middleweight metamodel extension
Goto Forum:
  


Current Time: Thu Aug 28 05:15:45 EDT 2014

Powered by FUDForum. Page generated in 0.07592 seconds