Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Link property with 4 field...i don't set all [URGENT]
Link property with 4 field...i don't set all [URGENT] [message #581534] Wed, 07 October 2009 16:23
marco  is currently offline marco Friend
Messages: 82
Registered: September 2009
@namespace(uri="http://dually/a0", prefix="A0")

package A0;"from",target="to")
abstract class Link extends Element{
ref InteractionPoint[1] from;
ref InteractionPoint[1] to;
ref Component fromContext;
ref Component toContext;

abstract class Component extends Element{
val InteractionPoint[*] points;

@gmf.node(figure="rectangle", size="20,20", label="name",
label.placement="external", label.icon="false")
class InteractionPoint extends Element{

class SAcomponent extends Component {

class SAconnector extends Component {
}"rhomb",source.decoration="rhomb ")
class SABinding extends Link {

class Element {
attr String name;
attr String description;

@gmf.diagram (foo="bar")
class A0Spec extends Element {
val Element[*] elements;

this is my metamodel.

I have the following problem.
I can not set the fromContext and toContext when I create a link.

I have a component to a InteractionPoint B (posted on the board).
I have another component C with a InteractionPoint D (posted on the board).

Once you create the link from B to D I have the following properties.
from = B
fromContext = A
to = D
toContext = C

told me to use feuture sequence initializer but I can not understand what to do.
I think the problem there is because the link is between two InteractionPoint and I need to go back to the component that has on board (poster) the InteractionPoint

please can someone help me?
I realize the editor for my thesis and I was a bit late.

Previous Topic:Recursive operation - use of Sequence.add()
Next Topic:Visibility of link when i click group element in the diagram
Goto Forum:

Current Time: Fri Oct 28 06:33:16 GMT 2016

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

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