Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Getting started with EML(Locating information to get started with modelling)
icon5.gif  Getting started with EML [message #532719] Tue, 11 May 2010 01:25 Go to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi everyone,

I'm very new to Epsilon and modelling in general. I have been looking at the site for the past few days looking for information on how to get started with Epsilon and EML in general. I have read the chapters I think are relevant to what I want to do but I'm am still unsure how to start.

I have an ecore model that I want to right some merge rules for and was wondering how I can do this? Also is there somewhere I can get more familiar with the syntaxs and semantics of the languages as the book only seems to cover one or two examples. Maybe a tutorial or something??

Thanks,

Ferg
Re: Getting started with EML [message #532722 is a reply to message #532719] Tue, 11 May 2010 02:18 Go to previous messageGo to next message
Stephen Barrett is currently offline Stephen BarrettFriend
Messages: 46
Registered: May 2010
Member
Ferg,

I'm new to it all myself. Try the examples page:
http://www.eclipse.org/gmt/epsilon/examples/

These will provide you with some EML scripts that you can launch from within Eclipse.

--Steve
Re: Getting started with EML [message #532727 is a reply to message #532722] Tue, 11 May 2010 03:01 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi Steve,

Thanks for the suggestion. I will have a look at them and see if I can gleam an insight. I'm sure they will be helpful to a point. As you are only starting with Epsilon, where did you find most helpful with learning how to get started?

I think this is my main problem and also learning to set up my project for Epsilon as I am new to Eclipse. Maybe the syntax is common from some other language I could look at?

Thanks again Smile ,

Ferg
Re: Getting started with EML [message #532862 is a reply to message #532727] Tue, 11 May 2010 12:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ferg,

On top of the examples page Steven suggested, these two screencasts
provide a good introduction to the very basics of using Epsilon with EMF
models:

http://eclipse.org/gmt/epsilon/cinema/#BuildOOInstance_part1
http://eclipse.org/gmt/epsilon/cinema/#BuildOOInstance_part2

Cheers,
Dimitris

Ferghal Smyth wrote:
> Hi Steve,
>
> Thanks for the suggestion. I will have a look at them and see if I can
> gleam an insight. I'm sure they will be helpful to a point. As you are
> only starting with Epsilon, where did you find most helpful with
> learning how to get started?
>
> I think this is my main problem and also learning to set up my project
> for Epsilon as I am new to Eclipse. Maybe the syntax is common from some
> other language I could look at?
>
> Thanks again :) ,
>
> Ferg


--
Spread the word: http://www.eclipse.org/gmt/epsilon/spreadtheword
Follow Epsilon on Twitter: http://twitter.com/epsilonews
Re: Getting started with EML [message #533021 is a reply to message #532862] Tue, 11 May 2010 22:16 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi Dimitris,

Thanks I found the screencasts quite helpful. I'm having trouble figuring out how I merge two parts of a model. What I am trying to do is as follows:

I have two tree like structures. One has the node A, B and C. A is the root node and B and C are the leaves. Together they are known as a fragment A_F.

I have another fragment B_F, with a tree strucuture B and D. B is the root node and D is a subnode.

What I am trying to do is merge the two fragments at the node B i.e the one in common. The output model I wish to have would be something like A with subnodes B and C. and B with a subnode D.

I have created an EML file but do I also require a ECL to do a comparison between the nodes first?

Thanks,

Ferg
Re: Getting started with EML [message #533029 is a reply to message #533021] Tue, 11 May 2010 23:27 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ferg,

Yes. You need an ECL comparison to establish the B<->B match so that you
can then merge the 2 Bs using EML.

Cheers,
Dimitris

Ferghal Smyth wrote:
> Hi Dimitris,
>
> Thanks I found the screencasts quite helpful. I'm having trouble
> figuring out how I merge two parts of a model. What I am trying to do is
> as follows:
>
> I have two tree like structures. One has the node A, B and C. A is the
> root node and B and C are the leaves. Together they are known as a
> fragment A_F.
>
> I have another fragment B_F, with a tree strucuture B and D. B is the
> root node and D is a subnode.
>
> What I am trying to do is merge the two fragments at the node B i.e the
> one in common. The output model I wish to have would be something like A
> with subnodes B and C. and B with a subnode D.
>
> I have created an EML file but do I also require a ECL to do a
> comparison between the nodes first?
>
> Thanks,
>
> Ferg
Re: Getting started with EML [message #534079 is a reply to message #533029] Mon, 17 May 2010 22:02 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi guys,

I just have a question about how I identify the right model. In the example for ECL/EML what models do the words Source and Vocabulary refer to. It seems that the two EMFs used are named Entity and DomainVocabulary.

rule MatchSystemWithVocabulary
  match s : Source!System
  with v : Vocabulary!Vocabulary


The problem I'm having is known how to identify my EMF or metamodel. Do I just use the name of the model?? I just don't see how these two reference the models.

http:// www.eclipse.org/gmt/epsilon/examples/index.php?example=org.e clipse.epsilon.examples.mergeentitywithvocabulary

Here is the link to the example.

Thanks,

Ferg
Re: Getting started with EML [message #534087 is a reply to message #534079] Mon, 17 May 2010 23:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ferg,

Please see comments below.

Ferghal Smyth wrote:
> Hi guys,
>
> I just have a question about how I identify the right model. In the
> example for ECL/EML what models do the words Source and Vocabulary refer
> to. It seems that the two EMFs used are named Entity and DomainVocabulary.
>
>
> rule MatchSystemWithVocabulary
> match s : Source!System
> with v : Vocabulary!Vocabulary
>
>
> The problem I'm having is known how to identify my EMF or metamodel. Do
> I just use the name of the model??

Yes.

> I just don't see how these two
> reference the models.

The names by which models are referenced are defined in the "Models" tab
of the launch configuration.

>
> http://www.eclipse.org/gmt/epsilon/examples/index.php?exampl e=org.eclipse.epsilon.examples.mergeentitywithvocabulary
>
>
> Here is the link to the example.
>
> Thanks,
>
> Ferg

Cheers,
Dimitris
Re: Getting started with EML [message #534369 is a reply to message #534087] Tue, 18 May 2010 21:17 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi,

So I have tried to run the example for ECL/EML. I built the two EMF models from the code and added both models to the ECL run configuration.

I keep getting this error so I must be doing something wrong still.

java.lang.NullPointerExceptionjava.lang.NullPointerExceptionType 'Source!System' not found (C:\Users\Fuagaru\workspace\ModelMerge\Comparison.ecl@2:19)


If you have any ideas or you need more information from me I can provide.

Maybe I haven't created the models right or configured the runtime correct.

Thanks,

Ferg

[Updated on: Tue, 18 May 2010 21:17]

Report message to a moderator

Re: Getting started with EML [message #534376 is a reply to message #534369] Tue, 18 May 2010 21:45 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ferg,

You'll need to register the respective metamodels first. To do this, you
need to select the .ecore files, right-click on them and select
"Register EPackages".

Cheers,
Dimitris

Ferghal Smyth <fergsmyth@gmail.com> wrote:
> Hi,
>
> So I have tried to run the example for ECL/EML. I built the two EMF
> models from the code and added both models to the ECL run
> configuration.
>
> I keep getting this error so I must be doing something wrong still.
> java.lang.NullPointerExceptionjava.lang.NullPointerException Type
> 'Source!System' not found
> (C:\Users\Fuagaru\workspace\ModelMerge\Comparison.ecl@2:19)
>
>
> If you have any ideas or you need more information from me I can
> provide.
>
> Maybe I haven't created the models right or configured the runtime
> correct.
>
>
>
> Thanks,
>
> Ferg
>
Re: Getting started with EML [message #534380 is a reply to message #534376] Tue, 18 May 2010 22:07 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi Dimitrios,

I did this step. I wasn't able to select the models to add to the run config without it but I'm still getting this error.

I registered both .ecores, created the EMF models. I then created the ECL file and for the run config I went to the models tab and added the two models with the names Source and Vocabulary.

Cheers,

Ferg
Re: Getting started with EML [message #534389 is a reply to message #534380] Tue, 18 May 2010 23:47 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi Dimitrios,

Yes I found the problem, it was to do with the EPAckages. I had them registered but I had not specified them run config for the model.

Cheers,

Ferg
Re: Getting started with EML [message #589173 is a reply to message #532862] Tue, 11 May 2010 22:16 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi Dimitris,

Thanks I found the screencasts quite helpful. I'm having trouble figuring out how I merge two parts of a model. What I am trying to do is as follows:

I have two tree like structures. One has the node A, B and C. A is the root node and B and C are the leaves. Together they are known as a fragment A_F.

I have another fragment B_F, with a tree strucuture B and D. B is the root node and D is a subnode.

What I am trying to do is merge the two fragments at the node B i.e the one in common. The output model I wish to have would be something like A with subnodes B and C. and B with a subnode D.

I have created an EML file but do I also require a ECL to do a comparison between the nodes first?

Thanks,

Ferg
Re: Getting started with EML [message #589177 is a reply to message #589173] Tue, 11 May 2010 23:27 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ferg,

Yes. You need an ECL comparison to establish the B<->B match so that you
can then merge the 2 Bs using EML.

Cheers,
Dimitris

Ferghal Smyth wrote:
> Hi Dimitris,
>
> Thanks I found the screencasts quite helpful. I'm having trouble
> figuring out how I merge two parts of a model. What I am trying to do is
> as follows:
>
> I have two tree like structures. One has the node A, B and C. A is the
> root node and B and C are the leaves. Together they are known as a
> fragment A_F.
>
> I have another fragment B_F, with a tree strucuture B and D. B is the
> root node and D is a subnode.
>
> What I am trying to do is merge the two fragments at the node B i.e the
> one in common. The output model I wish to have would be something like A
> with subnodes B and C. and B with a subnode D.
>
> I have created an EML file but do I also require a ECL to do a
> comparison between the nodes first?
>
> Thanks,
>
> Ferg
Re: Getting started with EML [message #589250 is a reply to message #533029] Mon, 17 May 2010 22:02 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi guys,

I just have a question about how I identify the right model. In the example for ECL/EML what models do the words Source and Vocabulary refer to. It seems that the two EMFs used are named Entity and DomainVocabulary.


rule MatchSystemWithVocabulary
match s : Source!System
with v : Vocabulary!Vocabulary


The problem I'm having is known how to identify my EMF or metamodel. Do I just use the name of the model?? I just don't see how these two reference the models.

http://www.eclipse.org/gmt/epsilon/examples/index.php?exampl e=org.eclipse.epsilon.examples.mergeentitywithvocabulary

Here is the link to the example.

Thanks,

Ferg
Re: Getting started with EML [message #589262 is a reply to message #589250] Mon, 17 May 2010 23:12 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ferg,

Please see comments below.

Ferghal Smyth wrote:
> Hi guys,
>
> I just have a question about how I identify the right model. In the
> example for ECL/EML what models do the words Source and Vocabulary refer
> to. It seems that the two EMFs used are named Entity and DomainVocabulary.
>
>
> rule MatchSystemWithVocabulary
> match s : Source!System
> with v : Vocabulary!Vocabulary
>
>
> The problem I'm having is known how to identify my EMF or metamodel. Do
> I just use the name of the model??

Yes.

> I just don't see how these two
> reference the models.

The names by which models are referenced are defined in the "Models" tab
of the launch configuration.

>
> http://www.eclipse.org/gmt/epsilon/examples/index.php?exampl e=org.eclipse.epsilon.examples.mergeentitywithvocabulary
>
>
> Here is the link to the example.
>
> Thanks,
>
> Ferg

Cheers,
Dimitris
Re: Getting started with EML [message #589275 is a reply to message #534087] Tue, 18 May 2010 21:17 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi,

So I have tried to run the example for ECL/EML. I built the two EMF models from the code and added both models to the ECL run configuration.

I keep getting this error so I must be doing something wrong still.

java.lang.NullPointerExceptionjava.lang.NullPointerException Type 'Source!System' not found (C:\Users\Fuagaru\workspace\ModelMerge\Comparison.ecl@2:19)


If you have any ideas or you need more information from me I can provide.

Maybe I haven't created the models right or configured the runtime correct.



Thanks,

Ferg
Re: Getting started with EML [message #589280 is a reply to message #589275] Tue, 18 May 2010 21:45 Go to previous messageGo to next message
Dimitrios Kolovos is currently offline Dimitrios KolovosFriend
Messages: 1776
Registered: July 2009
Senior Member
Hi Ferg,

You'll need to register the respective metamodels first. To do this, you
need to select the .ecore files, right-click on them and select
"Register EPackages".

Cheers,
Dimitris

Ferghal Smyth <fergsmyth@gmail.com> wrote:
> Hi,
>
> So I have tried to run the example for ECL/EML. I built the two EMF
> models from the code and added both models to the ECL run
> configuration.
>
> I keep getting this error so I must be doing something wrong still.
> java.lang.NullPointerExceptionjava.lang.NullPointerException Type
> 'Source!System' not found
> (C:\Users\Fuagaru\workspace\ModelMerge\Comparison.ecl@2:19)
>
>
> If you have any ideas or you need more information from me I can
> provide.
>
> Maybe I haven't created the models right or configured the runtime
> correct.
>
>
>
> Thanks,
>
> Ferg
>
Re: Getting started with EML [message #589288 is a reply to message #534376] Tue, 18 May 2010 22:07 Go to previous messageGo to next message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi Dimitrios,

I did this step. I wasn't able to select the models to add to the run config without it but I'm still getting this error.

I registered both .ecores, created the EMF models. I then created the ECL file and for the run config I went to the models tab and added the two models with the names Source and Vocabulary.

Cheers,

Ferg
Re: Getting started with EML [message #589298 is a reply to message #589288] Tue, 18 May 2010 23:47 Go to previous message
Ferghal Smyth is currently offline Ferghal SmythFriend
Messages: 16
Registered: May 2010
Location: Clare, Ireland
Junior Member
Hi Dimitrios,

Yes I found the problem, it was to do with the EPAckages. I had them registered but I had not specified them run config for the model.

Cheers,

Ferg
Previous Topic:XMI to HUTN bridge
Next Topic:[EuGENia] "Could not open the editor: assertion failed:"
Goto Forum:
  


Current Time: Thu Apr 25 07:43:57 GMT 2024

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

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

Back to the top