In this case, this means that I have to use enumeration... so what I have done is
I declared cKind enum as
enum Ckind{
software;
hardware;
}
Is this a valid way of specifying enumeration type?
Second question...
I have a thing called domain, which has to put component and its affixed things (port etc.) into the domain. We find specific component instance by looking at its ID. So what I have done is:
@gmf.node(label="name", border.width="5")
class ComponentType{
ref ComponentType componentTypeLink;
//The interface instance that are same as interface instance that its type has
@gmf.affixed(foo="bar")
ref ComponentType#interfaceInstances interfaceTypeLink;
}
You can see that ComponentInstance has ID.
So the domain somehow has to include some specific componentInstance or all of the componentInstance drawn on the diagram.
I think using compartment would work in this case. But I would like to know some other ways I might do this (referring to specific attributes etc.)
I'm not sure I understand the following question. Could you perhaps elaborate a bit more?
> can I reference another class through its attribute (ID)?
> for example componentInstance refer to its componentType by referring it through componentType's ID?
Regarding your second question, I don't think GMF provides support for transparency - but I could be wrong.