ptolemy.vergil.modal
Class Arc

java.lang.Object
  extended by ptolemy.vergil.modal.Arc

public class Arc
extends java.lang.Object

Instances of this class represent an arc between two states in a state machine visualization. To see how this class is used and links are made using this class, see ArcModel in FSMGraphModel.

Since:
Ptolemy II 8.0
Version:
$Id: Arc.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Steve Neuendorffer
See Also:
FSMGraphModel.ArcModel
Accepted Rating:
Red (johnr)
Proposed Rating:
Red (eal)

Field Summary
private  java.lang.Object _head
           
private  ComponentRelation _relation
           
private  java.lang.Object _tail
           
 
Constructor Summary
Arc()
           
 
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 that this link represents.
 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

_head

private java.lang.Object _head

_tail

private java.lang.Object _tail

_relation

private ComponentRelation _relation
Constructor Detail

Arc

public Arc()
Method Detail

getHead

public java.lang.Object getHead()
Return the head of this link. This will be the icon of a state.

Returns:
The head of this link
See Also:
setHead(Object)

getRelation

public ComponentRelation getRelation()
Return the relation that this link represents. This should always be an instance of Transition.

Returns:
The relation that represents this link
See Also:
setRelation(ComponentRelation)

getTail

public java.lang.Object getTail()
Return the tail of this link. This will be the icon of a state.

Returns:
The tail of this link.
See Also:
setTail(Object)

setHead

public void setHead(java.lang.Object head)
Set the head of this link. This will be the icon of a state.

Parameters:
head - The head of this link.
See Also:
getHead()

setRelation

public void setRelation(ComponentRelation relation)
Set the relation that this link represents. This should always be an instance of Transition.

Parameters:
relation - The relation of this link.
See Also:
getRelation()

setTail

public void setTail(java.lang.Object tail)
Set the tail of this link. This will be the icon of a state.

Parameters:
tail - The Tail of this link.
See Also:
getTail()

toString

public java.lang.String toString()
Return a string representation of this link.

Overrides:
toString in class java.lang.Object