|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.vergil.kernel.Link
public class Link
Instances of this class represent a link between a port and a relation, between two relations, or a between two ports. In the first two cases, the relations are represented by an explicit node in the graph. In the third case, there is no explicit node representing the relation and the edge runs directly from one port to the other. Connections are made and broken by the graph model depending on which of the above contexts the link is being used in.
Red (johnr) |
Red (eal) |
Field Summary | |
---|---|
private java.lang.Object |
_head
|
private ComponentRelation |
_relation
|
private java.lang.Object |
_tail
|
Constructor Summary | |
---|---|
Link()
|
Method Summary | |
---|---|
java.lang.Object |
getHead()
Return the head of this link. |
ComponentRelation |
getRelation()
Return the relation that this link represents. |
java.lang.Object |
getTail()
Return the tail of this link. |
void |
setHead(java.lang.Object head)
Set the head of this link. |
void |
setRelation(ComponentRelation relation)
Set the relation for this link. |
void |
setTail(java.lang.Object tail)
Set the tail of this link. |
java.lang.String |
toString()
Return a string representation of this link. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.Object _head
private java.lang.Object _tail
private ComponentRelation _relation
Constructor Detail |
---|
public Link()
Method Detail |
---|
public java.lang.Object getHead()
setHead(Object)
public ComponentRelation getRelation()
setRelation(ComponentRelation)
public java.lang.Object getTail()
setTail(Object)
public void setHead(java.lang.Object head)
head
- The head.getHead()
public void setRelation(ComponentRelation relation)
relation
- The relation.getRelation()
public void setTail(java.lang.Object tail)
tail
- The tail.getTail()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |