Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » How to create safe "models"
How to create safe "models" [message #16525] Wed, 14 February 2007 14:06 Go to next message
Eclipse UserFriend
Originally posted by: walcir.fontanini.cenpra.gov.br

Hi,

I am a newcomer to ATL and I would like to know if there is a safe way
(or preferably a visual tool) to create "models". I have found several
distincts examples of models, like the excerpts below. What about this
tool
http://wiki.eclipse.org/index.php/Modeling_Corner#eUML2_-_UM L_.26_EMF_Designer
?



[ KM3-KM3.ecore from KM32DOT example ]
============================================================ ===
<?xml version="1.0" encoding="ISO-8859-1"?>
<Metamodel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="KM3"
location="1:1-83:2">
<contents location="7:1-83:2" name="KM3">
<contents xsi:type="Class" location="9:9-11:10"
name="LocatedElement" isAbstract="true">
<structuralFeatures xsi:type="Attribute" location="10:17-10:45"
name="location" lower="1" upper="1" isOrdered="false"
type="//@contents.0/@contents.2"/>
</contents>
============================================================ =====

[ outClassXMI.ecore from Class2Relational example ]
============================================================ ====
<?xml version="1.0" encoding="ASCII"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns="Class">
<Class name="Family">
<attr name="name" multiValued="false" type="/2"/>
<attr name="members" multiValued="true" type="/1"/>
</Class>
<Class name="Person">
<attr name="firstName" multiValued="false" type="/2"/>
<attr name="closestFriend" multiValued="false" type="/1"/>
<attr name="emailAddresses" multiValued="true" type="/2"/>
</Class>
<DataType name="String"/>
<DataType name="Integer"/>
</xmi:XMI>
============================================================ ===

Thanks,
-walcir fontanini
CEnPRA
Re: How to create safe "models" [message #16541 is a reply to message #16525] Wed, 14 February 2007 14:24 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Walcir,

You may want to take a look at
http://wiki.eclipse.org/index.php/ATL_FAQ#I_can_use_KM3_to_c reate_metamodels.2C_but_what_about_models.3F
and http://wiki.eclipse.org/index.php/Modeling_Corner#Exeed

Cheers,
Dimitrios

walcir fontanini wrote:
> Hi,
>
> I am a newcomer to ATL and I would like to know if there is a safe way
> (or preferably a visual tool) to create "models". I have found several
> distincts examples of models, like the excerpts below. What about this
> tool
> http://wiki.eclipse.org/index.php/Modeling_Corner#eUML2_-_UM L_.26_EMF_Designer
> ?
>
>
>
> [ KM3-KM3.ecore from KM32DOT example ]
> ============================================================ ===
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <Metamodel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="KM3"
> location="1:1-83:2">
> <contents location="7:1-83:2" name="KM3">
> <contents xsi:type="Class" location="9:9-11:10"
> name="LocatedElement" isAbstract="true">
> <structuralFeatures xsi:type="Attribute" location="10:17-10:45"
> name="location" lower="1" upper="1" isOrdered="false"
> type="//@contents.0/@contents.2"/>
> </contents>
> ============================================================ =====
>
> [ outClassXMI.ecore from Class2Relational example ]
> ============================================================ ====
> <?xml version="1.0" encoding="ASCII"?>
> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns="Class">
> <Class name="Family">
> <attr name="name" multiValued="false" type="/2"/>
> <attr name="members" multiValued="true" type="/1"/>
> </Class>
> <Class name="Person">
> <attr name="firstName" multiValued="false" type="/2"/>
> <attr name="closestFriend" multiValued="false" type="/1"/>
> <attr name="emailAddresses" multiValued="true" type="/2"/>
> </Class>
> <DataType name="String"/>
> <DataType name="Integer"/>
> </xmi:XMI>
> ============================================================ ===
>
> Thanks,
> -walcir fontanini
> CEnPRA
Re: How to create safe "models" [message #16622 is a reply to message #16541] Thu, 15 February 2007 15:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: walcir.fontanini.cenpra.gov.br

Hi Dimitrius,

I have downloaded Exeed from
http://www-users.cs.york.ac.uk/~dkolovos/epsilon/bundles/bun dle-win.php
and unzip the file to d:\ directory. After executing eclipse.exe
But it did NOT worked. It does not produced any extra icons typical from
Exeed ! Any hint for me ?

Thanks,
-walcir

Dimitrios Kolovos wrote:
> Hi Walcir,
>
> You may want to take a look at
> http://wiki.eclipse.org/index.php/ATL_FAQ#I_can_use_KM3_to_c reate_metamodels.2C_but_what_about_models.3F
> and http://wiki.eclipse.org/index.php/Modeling_Corner#Exeed
>
> Cheers,
> Dimitrios
>
> walcir fontanini wrote:
>
>> Hi,
>>
>> I am a newcomer to ATL and I would like to know if there is a safe way
>> (or preferably a visual tool) to create "models". I have found several
>> distincts examples of models, like the excerpts below. What about this
>> tool
>> http://wiki.eclipse.org/index.php/Modeling_Corner#eUML2_-_UM L_.26_EMF_Designer
>> ?
>>
>>
>>
>> [ KM3-KM3.ecore from KM32DOT example ]
>> ============================================================ ===
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <Metamodel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="KM3"
>> location="1:1-83:2">
>> <contents location="7:1-83:2" name="KM3">
>> <contents xsi:type="Class" location="9:9-11:10"
>> name="LocatedElement" isAbstract="true">
>> <structuralFeatures xsi:type="Attribute" location="10:17-10:45"
>> name="location" lower="1" upper="1" isOrdered="false"
>> type="//@contents.0/@contents.2"/>
>> </contents>
>> ============================================================ =====
>>
>> [ outClassXMI.ecore from Class2Relational example ]
>> ============================================================ ====
>> <?xml version="1.0" encoding="ASCII"?>
>> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>> xmlns="Class">
>> <Class name="Family">
>> <attr name="name" multiValued="false" type="/2"/>
>> <attr name="members" multiValued="true" type="/1"/>
>> </Class>
>> <Class name="Person">
>> <attr name="firstName" multiValued="false" type="/2"/>
>> <attr name="closestFriend" multiValued="false" type="/1"/>
>> <attr name="emailAddresses" multiValued="true" type="/2"/>
>> </Class>
>> <DataType name="String"/>
>> <DataType name="Integer"/>
>> </xmi:XMI>
>> ============================================================ ===
>>
>> Thanks,
>> -walcir fontanini
>> CEnPRA
Re: How to create safe "models" [message #16655 is a reply to message #16622] Fri, 16 February 2007 10:40 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Walcir,

Can you please send me your .ecore metamodel for a quick look?

Cheers,
Dimitrios

walcir fontanini wrote:
> Hi Dimitrius,
>
> I have downloaded Exeed from
> http://www-users.cs.york.ac.uk/~dkolovos/epsilon/bundles/bun dle-win.php
> and unzip the file to d:\ directory. After executing eclipse.exe
> But it did NOT worked. It does not produced any extra icons typical from
> Exeed ! Any hint for me ?
>
> Thanks,
> -walcir
>
> Dimitrios Kolovos wrote:
>> Hi Walcir,
>>
>> You may want to take a look at
>> http://wiki.eclipse.org/index.php/ATL_FAQ#I_can_use_KM3_to_c reate_metamodels.2C_but_what_about_models.3F
>> and http://wiki.eclipse.org/index.php/Modeling_Corner#Exeed
>>
>> Cheers,
>> Dimitrios
>>
>> walcir fontanini wrote:
>>
>>> Hi,
>>>
>>> I am a newcomer to ATL and I would like to know if there is a safe
>>> way (or preferably a visual tool) to create "models". I have found
>>> several distincts examples of models, like the excerpts below. What
>>> about this tool
>>> http://wiki.eclipse.org/index.php/Modeling_Corner#eUML2_-_UM L_.26_EMF_Designer
>>> ?
>>>
>>>
>>>
>>> [ KM3-KM3.ecore from KM32DOT example ]
>>> ============================================================ ===
>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>> <Metamodel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="KM3"
>>> location="1:1-83:2">
>>> <contents location="7:1-83:2" name="KM3">
>>> <contents xsi:type="Class" location="9:9-11:10"
>>> name="LocatedElement" isAbstract="true">
>>> <structuralFeatures xsi:type="Attribute" location="10:17-10:45"
>>> name="location" lower="1" upper="1" isOrdered="false"
>>> type="//@contents.0/@contents.2"/>
>>> </contents>
>>> ============================================================ =====
>>>
>>> [ outClassXMI.ecore from Class2Relational example ]
>>> ============================================================ ====
>>> <?xml version="1.0" encoding="ASCII"?>
>>> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>>> xmlns="Class">
>>> <Class name="Family">
>>> <attr name="name" multiValued="false" type="/2"/>
>>> <attr name="members" multiValued="true" type="/1"/>
>>> </Class>
>>> <Class name="Person">
>>> <attr name="firstName" multiValued="false" type="/2"/>
>>> <attr name="closestFriend" multiValued="false" type="/1"/>
>>> <attr name="emailAddresses" multiValued="true" type="/2"/>
>>> </Class>
>>> <DataType name="String"/>
>>> <DataType name="Integer"/>
>>> </xmi:XMI>
>>> ============================================================ ===
>>>
>>> Thanks,
>>> -walcir fontanini
>>> CEnPRA
Re: How to create safe "models" [message #16672 is a reply to message #16655] Fri, 16 February 2007 16:23 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: walcir.fontanini.cenpra.gov.br

Dimitrius,

It was not my own ecore model, but the problem occurred with
OOinstance.ecore (even after "Register ecore Metamodel" on OO.ecore).
The same problem happens to DBInstance.ecore/DB.ecore pair.

Thanks,
-walcir



Dimitrios Kolovos wrote:
> Hi Walcir,
>
> Can you please send me your .ecore metamodel for a quick look?
>
> Cheers,
> Dimitrios
>
> walcir fontanini wrote:
>
>> Hi Dimitrius,
>>
>> I have downloaded Exeed from
>> http://www-users.cs.york.ac.uk/~dkolovos/epsilon/bundles/bun dle-win.php
>> and unzip the file to d:\ directory. After executing eclipse.exe
>> But it did NOT worked. It does not produced any extra icons typical
>> from Exeed ! Any hint for me ?
>>
>> Thanks,
>> -walcir
>>
>> Dimitrios Kolovos wrote:
>>
>>> Hi Walcir,
>>>
>>> You may want to take a look at
>>> http://wiki.eclipse.org/index.php/ATL_FAQ#I_can_use_KM3_to_c reate_metamodels.2C_but_what_about_models.3F
>>> and http://wiki.eclipse.org/index.php/Modeling_Corner#Exeed
>>>
>>> Cheers,
>>> Dimitrios
>>>
>>> walcir fontanini wrote:
>>>
>>>> Hi,
>>>>
>>>> I am a newcomer to ATL and I would like to know if there is a safe
>>>> way (or preferably a visual tool) to create "models". I have found
>>>> several distincts examples of models, like the excerpts below. What
>>>> about this tool
>>>> http://wiki.eclipse.org/index.php/Modeling_Corner#eUML2_-_UM L_.26_EMF_Designer
>>>> ?
>>>>
>>>>
>>>>
>>>> [ KM3-KM3.ecore from KM32DOT example ]
>>>> ============================================================ ===
>>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>>> <Metamodel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="KM3"
>>>> location="1:1-83:2">
>>>> <contents location="7:1-83:2" name="KM3">
>>>> <contents xsi:type="Class" location="9:9-11:10"
>>>> name="LocatedElement" isAbstract="true">
>>>> <structuralFeatures xsi:type="Attribute"
>>>> location="10:17-10:45" name="location" lower="1" upper="1"
>>>> isOrdered="false" type="//@contents.0/@contents.2"/>
>>>> </contents>
>>>> ============================================================ =====
>>>>
>>>> [ outClassXMI.ecore from Class2Relational example ]
>>>> ============================================================ ====
>>>> <?xml version="1.0" encoding="ASCII"?>
>>>> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>>>> xmlns="Class">
>>>> <Class name="Family">
>>>> <attr name="name" multiValued="false" type="/2"/>
>>>> <attr name="members" multiValued="true" type="/1"/>
>>>> </Class>
>>>> <Class name="Person">
>>>> <attr name="firstName" multiValued="false" type="/2"/>
>>>> <attr name="closestFriend" multiValued="false" type="/1"/>
>>>> <attr name="emailAddresses" multiValued="true" type="/2"/>
>>>> </Class>
>>>> <DataType name="String"/>
>>>> <DataType name="Integer"/>
>>>> </xmi:XMI>
>>>> ============================================================ ===
>>>>
>>>> Thanks,
>>>> -walcir fontanini
>>>> CEnPRA
Re: How to create safe "models" [message #16689 is a reply to message #16672] Fri, 16 February 2007 16:08 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Walcir,

I see. The OO.ecore that comes with the Epsilon bundle that you have
downloaded is not annotated for Exeed. You can find an annotated version
in the example provided at
http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/examples/ExeedOO/ExeedOO.zip
(as discussed in the Exeed manual).

Cheers,
Dimitrios

walcir fontanini wrote:
> Dimitrius,
>
> It was not my own ecore model, but the problem occurred with
> OOinstance.ecore (even after "Register ecore Metamodel" on OO.ecore).
> The same problem happens to DBInstance.ecore/DB.ecore pair.
>
> Thanks,
> -walcir
>
>
>
> Dimitrios Kolovos wrote:
>> Hi Walcir,
>>
>> Can you please send me your .ecore metamodel for a quick look?
>>
>> Cheers,
>> Dimitrios
>>
>> walcir fontanini wrote:
>>
>>> Hi Dimitrius,
>>>
>>> I have downloaded Exeed from
>>> http://www-users.cs.york.ac.uk/~dkolovos/epsilon/bundles/bun dle-win.php
>>> and unzip the file to d:\ directory. After executing eclipse.exe
>>> But it did NOT worked. It does not produced any extra icons typical
>>> from Exeed ! Any hint for me ?
>>>
>>> Thanks,
>>> -walcir
>>>
>>> Dimitrios Kolovos wrote:
>>>
>>>> Hi Walcir,
>>>>
>>>> You may want to take a look at
>>>> http://wiki.eclipse.org/index.php/ATL_FAQ#I_can_use_KM3_to_c reate_metamodels.2C_but_what_about_models.3F
>>>> and http://wiki.eclipse.org/index.php/Modeling_Corner#Exeed
>>>>
>>>> Cheers,
>>>> Dimitrios
>>>>
>>>> walcir fontanini wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am a newcomer to ATL and I would like to know if there is a safe
>>>>> way (or preferably a visual tool) to create "models". I have found
>>>>> several distincts examples of models, like the excerpts below. What
>>>>> about this tool
>>>>> http://wiki.eclipse.org/index.php/Modeling_Corner#eUML2_-_UM L_.26_EMF_Designer
>>>>> ?
>>>>>
>>>>>
>>>>>
>>>>> [ KM3-KM3.ecore from KM32DOT example ]
>>>>> ============================================================ ===
>>>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>>>> <Metamodel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="KM3"
>>>>> location="1:1-83:2">
>>>>> <contents location="7:1-83:2" name="KM3">
>>>>> <contents xsi:type="Class" location="9:9-11:10"
>>>>> name="LocatedElement" isAbstract="true">
>>>>> <structuralFeatures xsi:type="Attribute"
>>>>> location="10:17-10:45" name="location" lower="1" upper="1"
>>>>> isOrdered="false" type="//@contents.0/@contents.2"/>
>>>>> </contents>
>>>>> ============================================================ =====
>>>>>
>>>>> [ outClassXMI.ecore from Class2Relational example ]
>>>>> ============================================================ ====
>>>>> <?xml version="1.0" encoding="ASCII"?>
>>>>> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
>>>>> xmlns="Class">
>>>>> <Class name="Family">
>>>>> <attr name="name" multiValued="false" type="/2"/>
>>>>> <attr name="members" multiValued="true" type="/1"/>
>>>>> </Class>
>>>>> <Class name="Person">
>>>>> <attr name="firstName" multiValued="false" type="/2"/>
>>>>> <attr name="closestFriend" multiValued="false" type="/1"/>
>>>>> <attr name="emailAddresses" multiValued="true" type="/2"/>
>>>>> </Class>
>>>>> <DataType name="String"/>
>>>>> <DataType name="Integer"/>
>>>>> </xmi:XMI>
>>>>> ============================================================ ===
>>>>>
>>>>> Thanks,
>>>>> -walcir fontanini
>>>>> CEnPRA
Re: How to create safe "models" [message #16704 is a reply to message #16689] Fri, 16 February 2007 18:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: walcir.fontanini.cenpra.gov.br

Dimitrios,

Now it works fine. But for now on, how can I add these Exeed features
to other .ecore files ?

-walcir

Dimitrios Kolovos wrote:
> Hi Walcir,
>
> I see. The OO.ecore that comes with the Epsilon bundle that you have
> downloaded is not annotated for Exeed. You can find an annotated version
> in the example provided at
> http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/examples/ExeedOO/ExeedOO.zip
>
> (as discussed in the Exeed manual).
>
> Cheers,
> Dimitrios
>
Re: How to create safe "models" [message #16717 is a reply to message #16704] Fri, 16 February 2007 20:53 Go to previous message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Walcir,

You can refer to the manual available at
http://www.eclipse.org/gmt/epsilon/doc/Exeed.pdf . If you have trouble
customizing your metamodel please let me know. We may also want to move
this discussion to the eclipse.modeling.gmt newsgroup where GMT
components such as Epsilon are discussed.

Cheers,
Dimitrios


walcir fontanini wrote:
> Dimitrios,
>
> Now it works fine. But for now on, how can I add these Exeed features
> to other .ecore files ?
>
> -walcir
>
> Dimitrios Kolovos wrote:
>> Hi Walcir,
>>
>> I see. The OO.ecore that comes with the Epsilon bundle that you have
>> downloaded is not annotated for Exeed. You can find an annotated
>> version in the example provided at
>> http://dev.eclipse.org/viewcvs/indextech.cgi/org.eclipse.gmt /epsilon/examples/ExeedOO/ExeedOO.zip
>>
>> (as discussed in the Exeed manual).
>>
>> Cheers,
>> Dimitrios
>>
Previous Topic:XMI tutorial
Next Topic:[ATL] programatically launch already loaded model
Goto Forum:
  


Current Time: Tue Mar 19 03:36:32 GMT 2024

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

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

Back to the top