Home » Archived » M2M (model-to-model transformation) » How to create safe "models"
How to create safe "models" [message #16525] |
Wed, 14 February 2007 09:06  |
Eclipse User |
|
|
|
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 #16655 is a reply to message #16622] |
Fri, 16 February 2007 05:40   |
Eclipse User |
|
|
|
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 11:23   |
Eclipse User |
|
|
|
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 11:08   |
Eclipse User |
|
|
|
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
|
|
| | |
Goto Forum:
Current Time: Fri May 02 11:09:48 EDT 2025
Powered by FUDForum. Page generated in 0.04749 seconds
|