Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL]Can someone Check my below Ant Build file ,Why it generates error ? (the elements are explained below,)
[ATL]Can someone Check my below Ant Build file ,Why it generates error ? [message #533764] Sun, 16 May 2010 20:27
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
Hi all,
Hope u all are fine


I really need help to clarify points and discuss them.

I want to transform a model from a profile called MyOUPProfile.profile.uml which contains concepts in ontology , to ordinary class diagram


can any one check my ant build file, I want to see if it is ok or has error


<project name="MyFirstATLProg" default="test">

<!-- Change this value if you want to use another input model
<property name="model" value="NewMusician"/> -->

<target name="test" depends="loadMetamodels">
<am3.loadModel modelHandler="EMF" name="OUPModel" metamodel="OUP" path="../InputModel/NewMusician.uml"/>

<am3.atl path="../transformation/OUP2UMLClassModel.asm">
<inModel name="IN" model="OUPModel"/>
<inModel name="OUP" model="OUP"/>
<inModel name="UML" model="UML"/>
<outModel name="OUT" model="UMLClassModel" metamodel="UML"/>
</am3.atl>

<am3.saveModel model="UMLClassModel" path="/OutputModel/outFile.uml"/>
</target>

<target name="loadMetamodels">
<!-- Load UML 2.0 metamodel-->
<am3.loadModel modelHandler="EMF" name="UML" metamodel="MOF" nsuri="http://www.eclipse.org/uml2/2.1.0/UML"/>
<!-- Load OUPProfile-->
<am3.loadModel modelHandler="EMF" name="OUP" metamodel="MOF" path="../metamodels/OUP/MyOUPProfile.profile.uml"/>
</target>
</project>



it generates error on the line of UML metamodel with red


Please if any one has any comment or guidance because I am stuck there and Till now could not decide on the algorithm used for transformation I mean How could I deal with the the classes or association in which the profile is applied, as ordinary class or as type of the stereotype name

for example if I have stereotype called ontologyClass , where the metaclass is Class, how to transform it to class

is it like this:

rule OntoClass2Class{
from oc : OUP!OntologyClass
to c : UML!Class
(

name <- oc.name
........


)

}

where the OUP is the Main package in the PRofile

sorry for the long Question , but I tried to put many details for u

thanks and hope some one replies, I am really in need

[Updated on: Mon, 17 May 2010 17:19]

Report message to a moderator

Previous Topic:[ATL] Apply UML profile
Next Topic:[ATL] Class reflection
Goto Forum:
  


Current Time: Thu Apr 25 10:05:31 GMT 2024

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

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

Back to the top