Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » EReference Tree(3 or more EReferences containing EClasses)
icon5.gif  EReference Tree [message #1707277] Thu, 03 September 2015 12:33 Go to next message
Unknown User is currently offline Unknown UserFriend
Messages: 5
Registered: September 2015
Junior Member
Hi everyone,

I'm new to this Forum, so I'm note sure if this is the right place for my Thread.

I am learning EMF with a Tutorial I can't link here, because I have fewer then 5 messages :/

They are making a Model for a Bowling Game. There is a Tournament, wich contains Matchup's. And the matchup's contains Games. And Games can contain Players.

So it should be like this:


  • Tournament

    • Matchup

      • Game

        • Player
        • Player





I made a EClass "Tournament" with the reference to matchups. The EClass Matchups has a reference to the EClass Game. And Game have a reference to Players.

Now my Problem: I can't add any Players to Game. I'm just able to add more Siblings from Game to Matchup.

But the Players, Games and Matchup, they all have the same properties.
In the Tutorial is mentioned that Game and Matchup should be bi-directional. Something with EOpposite. I have not done this because I'm note sure what it does, but could it be the Solution?

And please excuse my English or any mistakes I made, my english is'nt the best.
Re: EReference Tree [message #1707284 is a reply to message #1707277] Thu, 03 September 2015 13:11 Go to previous messageGo to next message
Unknown User is currently offline Unknown UserFriend
Messages: 5
Registered: September 2015
Junior Member
Problem solved, but I have no Idea why.

I deleted everything I had and started from zero again. Now everything works fine.

Strange.
Re: EReference Tree [message #1707286 is a reply to message #1707284] Thu, 03 September 2015 13:21 Go to previous messageGo to next message
Unknown User is currently offline Unknown UserFriend
Messages: 5
Registered: September 2015
Junior Member
Ok, other question:
Now I want a bi-directional Reference between games and matchups. But I cant edit the field 'EOpposite'. There are no Options to choose from.

What are the requirements for an EOpposite to work?
Re: EReference Tree [message #1707291 is a reply to message #1707286] Thu, 03 September 2015 14:07 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
You have to create both reference ends before you can hook them up. And
they have to be of the right type. I.e., if you want a bidirectional
reference between class X and class Y, then X must have a feature of
type Y and Y just have a feature of type X, and those can be hooked up
as opposites.

On 03/09/2015 3:21 PM, Unkown User wrote:
> Ok, other question:
> Now I want a bi-directional Reference between games and matchups. But
> I cant edit the field 'EOpposite'. There are no Options to choose from.
>
> What are the requirements for an EOpposite to work?


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EReference Tree [message #1707295 is a reply to message #1707291] Thu, 03 September 2015 14:22 Go to previous message
Unknown User is currently offline Unknown UserFriend
Messages: 5
Registered: September 2015
Junior Member
Ah, haven't noticed that I forgott that.

Thank you!
Previous Topic:EMF and equinox
Next Topic:Different Validation for a model
Goto Forum:
  


Current Time: Thu Mar 28 16:29:24 GMT 2024

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

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

Back to the top