Index of /spec/SyM/20110801

      Name                             Last modified       Size  Description

[DIR] Parent Directory 29-Apr-2013 11:15 - [   ] HeliosUMLQVT-Update.zip 02-Feb-2012 09:12 42.7M [   ] Modelica2EclipseBasedAST.zip 02-Feb-2012 09:08 3.4M [DIR] Modelica2EclipseBasedAST/ 02-Feb-2012 09:03 - [   ] Modelica2MoRoundTrip.qvto 02-Feb-2012 08:45 1k [   ] Modelica2ModelicaUnparsed.qvto 02-Feb-2012 08:45 3k [   ] ModelicaUnparsed2ModelicaMO.qvto 02-Feb-2012 08:45 30k [   ] ModelicaUnparsed2SysML.qvto 02-Feb-2012 08:45 72k [   ] SysML2ModelicaUnparsed.qvto 02-Feb-2012 08:45 52k [   ] SysML4ModelicaProfile.zip 02-Feb-2012 09:16 352k [   ] TwoTankExample.mo 02-Feb-2012 08:54 2k [   ] TwoTankExample.moast 02-Feb-2012 08:54 68k [   ] TwoTankExample.sysml.uml 02-Feb-2012 08:54 22k [   ] TwoTankExample.xmi 02-Feb-2012 08:54 69k [   ] TwoTankExampleAfterRT.mo 02-Feb-2012 08:54 2k [   ] TwoTankExampleUnparsed.xmi 02-Feb-2012 08:54 75k [   ] TwoTankExampleUnparsedRT.xmi 02-Feb-2012 08:54 48k [DIR] _derived/ 02-Feb-2012 08:34 - [   ] modelicaQVTUtils.zip 02-Feb-2012 09:11 174k [   ] openModelica.ecore 02-Feb-2012 08:41 60k

August 22, 2011
Axel Reichwein <axel.reichwein@me.gatech.edu>

The Helios UML/QVT environment requires Eclipse UML2 version 3.1.0 from Helios RC4 or later to get the following fixes:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=313837
https://bugs.eclipse.org/bugs/show_bug.cgi?id=314971

This file describes the programns and frameworks used to perform the transformation of
a Modelica model into a SysML model.

Besides Helios + UML 3.1 + QVTo 3.0 + OCL 3.0, the additional plugins/features are needed from: 
https://openmodelica.ida.liu.se/svn/SysML_Modelica/trunk/reference_implementations/

/HeliosUMLQVT-Update
/modelicaQVTUtils

The above plugins, when properly installed or configured to run in an Helios/UML/QVTo/OCL environment support the following workflow:

----------------------------------------------------------------------------------------------------

- Given is a *.mo Modelica model, which contains the Modelica concrete syntax 
	(File example: TwoTankExample.mo)

Transformation steps:

1 - Conversion of a *.mo file into a *.moast file, which contains the Modelica concrete syntax 
	with references to the abstract syntax (File example: TwoTankExample.moast)
2 - Conversion of a *.moast file into a *.xmi file, which conforms to a Modelica metamodel 
	defined in Ecore (File example: TwoTankExample.xmi)
3 - Transformation of a *.xmi file into a *.uml file, which is a UML model with applied SysML 
	and Modelica profiles (File example: TwoTankExample.sysml.uml)

Steps 1 and 2 are performed by executing a Java program, namely the main() method 
	in "Modelica2Ecore.java" in the Modelica2EclipseBasedAST zip file, which refers to
	the OpenModelica compiler for the conversion from *.mo to *.moast and to
	the Ecore-based OpenModelica Java API within the openModelicaAS project 
	for the conversion from *.moast to *.xmi. You need to set all the jars of the "libs" folder
	into your buildpath.
	
Step 3 is performed by executing QVTO transformations, namely the "Modelica2ModelicaUnparsed.qvto" and
	the "Modelica2SysML.qvto" files found in the SysML4ModelicaProfile zip file. The "Modelica2SysML.qvto"
	transformation refers to the SysML and Modelica profiles within the Eclipse UML2 v3.x Profiles and Models 
	project and the Java helper methods of class ModelicaQVTUtils within the ModelicaQVTUtils project. 
	You need to have all files of the SysML4ModelicaProfile zip file in a project within your Eclipse workspace, 
	while keeping the same folder/file hierarchy.

- Result is a *.sysml.uml UML model, which applied SysML and Modelica profiles
	(File example: TwoTankExample.sysml.uml) 

----------------------------------------------------------------------------------------------------

Prerequisites to locally perform transformations:
- Java Virtual Machine 
- OpenModelica 
- Eclipse with specific plugins (see below for more detailed instructions)

----------------------------------------------------------------------------------------------------