Skip to main content



      Home
Home » Modeling » UML2 » OMG SysML xmi and eclipse
OMG SysML xmi and eclipse [message #476759] Fri, 14 December 2007 17:19 Go to next message
Eclipse UserFriend
Originally posted by: firstname.name.gmail.com

Hello,

I have to run some measures on different standard uml profiles. I tried to
"open" the SysML XMI files from the OMG web site[1] but it seems that I can't
open it. I get a lot of errors about casts. I read the XMI as plain text
files. The metamodel reference is CMOF (xmlns
http://schema.omg.org/spec/MOF/2.0/cmof.xml). I don't know if eclipse provides
this metamodel.

Do you know how may I open this profile in eclipse, or where can I find a SysML
profile (preferably as so close as the normative one) that I can use in eclipse.

thanks in advance.

Reference(s):
[1] http://www.omg.org/technology/documents/formal/sysml.htm

--
F. Lagarde
Re: OMG SysML xmi and eclipse [message #476760 is a reply to message #476759] Fri, 14 December 2007 18:42 Go to previous messageGo to next message
Eclipse UserFriend
Fran
Re: OMG SysML xmi and eclipse [message #476764 is a reply to message #476760] Mon, 17 December 2007 05:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: firstname.name.gmail.com

In the last post, on 12/15 about 12h, "Kenn" (Kenn Hussey) wrote:

Kenn> It should be possible to load the XMI files, assuming they are CMOF
Kenn> files, using the latest build of UML2.

It fails with my current UML plugin setting. I have updated to the latest UML
plugin (2.2.0.v200711291015) but once done, I was unable to open any uml models
(something should be wrong in my settings). Which UML plugin version is required
to open a cmof model?

Kenn> There was a proposal to create a SysML component [...] if you might
Kenn> even be interested in contributing, please express your interest
Kenn> (in response to that thread)!

My interest in SysML is limited to gather metrics from the profile, not use
SysML from a user viewpoint.

thanks.

--
F. Lagarde
Re: OMG SysML xmi and eclipse [message #476767 is a reply to message #476764] Mon, 17 December 2007 10:04 Go to previous messageGo to next message
Eclipse UserFriend
Fran
Re: OMG SysML xmi and eclipse [message #476769 is a reply to message #476767] Mon, 17 December 2007 10:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: firstname.name.gmail.com

In the last post, on 12/17 about 04h, "Kenn" (Kenn Hussey) wrote:

Kenn> François, What kind of errors are you seeing? Perhaps if you post a
Kenn> sample of your model, I can take a closer look...

I downloaded the xmi files from the omg web site[1]. Next I try to open the
SysML-profile.xmi [2] (i open it with the uml editor, but also tried without).

I get the following and not really helpful error message:

java.lang.ClassCastException: org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl
cannot be cast to org.eclipse.uml2.uml.Package at
org.eclipse.uml2.uml.internal.impl.PackageImportImpl.getImpo rtedPackage(PackageImportImpl.java:204)

the beginning of the SysML-profile is as follows (this model is available on the
omg web site).

<?xml version="1.0" encoding="UTF-8"?>
<uml:Profile xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.1.1" xmi:id="_0" name="SysML" metamodelReference="_packageImport.0">
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.0" visibility="private" importingNamespace="_0">
<importedPackage xmi:type="uml:Model" href="UML4SysML-metamodel.xmi#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Stereotype" xmi:id="Rate" name="Rate">
<ownedAttribute xmi:type="uml:Property" xmi:id="Rate-base_Parameter" name="base_Parameter" association="Parameter_Rate">
<type xmi:type="uml:Class" href="UML4SysML-metamodel.xmi#Parameter"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Rate-base_ActivityEdge" name="base_ActivityEdge" association="ActivityEdge_Rate">


thanks a lots in advance.

Reference(s):
[1] http://www.omg.org/spec/SysML/1.0/
[2] http://www.omg.org/spec/SysML/20070901/SysML-profile.xmi

--
F. Lagarde
Re: OMG SysML xmi and eclipse [message #476770 is a reply to message #476769] Mon, 17 December 2007 11:32 Go to previous message
Eclipse UserFriend
Fran
Re: OMG SysML xmi and eclipse [message #625732 is a reply to message #476759] Fri, 14 December 2007 18:42 Go to previous message
Eclipse UserFriend
Fran
Re: OMG SysML xmi and eclipse [message #625737 is a reply to message #476760] Mon, 17 December 2007 05:05 Go to previous message
Eclipse UserFriend
Originally posted by: firstname.name.gmail.com

In the last post, on 12/15 about 12h, "Kenn" (Kenn Hussey) wrote:

Kenn> It should be possible to load the XMI files, assuming they are CMOF
Kenn> files, using the latest build of UML2.

It fails with my current UML plugin setting. I have updated to the latest UML
plugin (2.2.0.v200711291015) but once done, I was unable to open any uml models
(something should be wrong in my settings). Which UML plugin version is required
to open a cmof model?

Kenn> There was a proposal to create a SysML component [...] if you might
Kenn> even be interested in contributing, please express your interest
Kenn> (in response to that thread)!

My interest in SysML is limited to gather metrics from the profile, not use
SysML from a user viewpoint.

thanks.

--
F. Lagarde
Re: OMG SysML xmi and eclipse [message #625740 is a reply to message #476764] Mon, 17 December 2007 10:04 Go to previous message
Eclipse UserFriend
Fran
Re: OMG SysML xmi and eclipse [message #625742 is a reply to message #476767] Mon, 17 December 2007 10:24 Go to previous message
Eclipse UserFriend
Originally posted by: firstname.name.gmail.com

In the last post, on 12/17 about 04h, "Kenn" (Kenn Hussey) wrote:

Kenn> François, What kind of errors are you seeing? Perhaps if you post a
Kenn> sample of your model, I can take a closer look...

I downloaded the xmi files from the omg web site[1]. Next I try to open the
SysML-profile.xmi [2] (i open it with the uml editor, but also tried without).

I get the following and not really helpful error message:

java.lang.ClassCastException: org.eclipse.emf.ecore.xml.type.impl.AnyTypeImpl
cannot be cast to org.eclipse.uml2.uml.Package at
org.eclipse.uml2.uml.internal.impl.PackageImportImpl.getImpo rtedPackage(PackageImportImpl.java:204)

the beginning of the SysML-profile is as follows (this model is available on the
omg web site).

<?xml version="1.0" encoding="UTF-8"?>
<uml:Profile xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.1.1" xmi:id="_0" name="SysML" metamodelReference="_packageImport.0">
<packageImport xmi:type="uml:PackageImport" xmi:id="_packageImport.0" visibility="private" importingNamespace="_0">
<importedPackage xmi:type="uml:Model" href="UML4SysML-metamodel.xmi#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Stereotype" xmi:id="Rate" name="Rate">
<ownedAttribute xmi:type="uml:Property" xmi:id="Rate-base_Parameter" name="base_Parameter" association="Parameter_Rate">
<type xmi:type="uml:Class" href="UML4SysML-metamodel.xmi#Parameter"/>
</ownedAttribute>
<ownedAttribute xmi:type="uml:Property" xmi:id="Rate-base_ActivityEdge" name="base_ActivityEdge" association="ActivityEdge_Rate">


thanks a lots in advance.

Reference(s):
[1] http://www.omg.org/spec/SysML/1.0/
[2] http://www.omg.org/spec/SysML/20070901/SysML-profile.xmi

--
F. Lagarde
Re: OMG SysML xmi and eclipse [message #625743 is a reply to message #476769] Mon, 17 December 2007 11:32 Go to previous message
Eclipse UserFriend
Fran
Previous Topic:Reapplying a profile after its has be re-defined
Next Topic:cmof to emf
Goto Forum:
  


Current Time: Wed Jul 02 17:17:42 EDT 2025

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

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

Back to the top