|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.vergil.fsm.FSMGraphModel.ArcModel
public class FSMGraphModel.ArcModel
The model for arcs between states.
Constructor Summary | |
---|---|
FSMGraphModel.ArcModel()
|
Method Summary | |
---|---|
private java.lang.String |
_deleteRelation(NamedObj container,
Relation relation)
Return moml to remove a relation in the specified container. |
private java.lang.String |
_linkHead(NamedObj container,
java.lang.StringBuffer moml,
java.lang.StringBuffer failmoml,
NamedObj linkHead,
NamedObj linkTail,
Relation linkRelation)
Append moml to the given buffer that connects a link with the given head. |
private java.lang.String |
_linkTail(NamedObj container,
java.lang.StringBuffer moml,
java.lang.StringBuffer failmoml,
NamedObj linkHead,
NamedObj linkTail,
Relation linkRelation)
Append moml to the given buffer that connects a link with the given tail. |
private java.lang.String |
_unlinkHead(NamedObj container,
NamedObj linkHead,
Relation relation)
Return moml to unlink a relation with the given head in the specified container. |
private java.lang.String |
_unlinkTail(NamedObj container,
NamedObj linkTail,
Relation relation)
Return moml to unlink a relation with the given tail in the specified container. |
boolean |
acceptHead(java.lang.Object edge,
java.lang.Object node)
Return true if the head of the given edge can be attached to the given node. |
boolean |
acceptTail(java.lang.Object edge,
java.lang.Object node)
Return true if the tail of the given edge can be attached to the given node. |
java.lang.String |
getDeleteEdgeMoML(java.lang.Object edge)
Return a MoML String that will delete the given edge from the Ptolemy model. |
java.lang.Object |
getHead(java.lang.Object edge)
Return the head node of the given edge. |
java.lang.Object |
getTail(java.lang.Object edge)
Return the tail node of the specified edge. |
boolean |
isDirected(java.lang.Object edge)
Return true if this edge is directed. |
void |
removeEdge(java.lang.Object edge)
Remove the given edge and delete its associated relation. |
void |
setHead(java.lang.Object edge,
java.lang.Object newArcHead)
Connect the given edge to the given head node. |
void |
setTail(java.lang.Object edge,
java.lang.Object newArcTail)
Connect the given edge to the given tail node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FSMGraphModel.ArcModel()
Method Detail |
---|
public boolean acceptHead(java.lang.Object edge, java.lang.Object node)
acceptHead
in interface MutableEdgeModel
edge
- The edge to attach, which is assumed to be an arc.node
- The node to attach to.
public boolean acceptTail(java.lang.Object edge, java.lang.Object node)
acceptTail
in interface MutableEdgeModel
edge
- The edge to attach, which is assumed to be an arc.node
- The node to attach to.
public java.lang.Object getHead(java.lang.Object edge)
getHead
in interface EdgeModel
edge
- The edge, which is assumed to be an instance of Arc.
getTail(Object)
,
setHead(Object, Object)
public java.lang.String getDeleteEdgeMoML(java.lang.Object edge)
edge
- The edge to be removed.
public java.lang.Object getTail(java.lang.Object edge)
getTail
in interface EdgeModel
edge
- The edge, which is assumed to be an instance of Arc.
getHead(Object)
,
setTail(Object, Object)
public boolean isDirected(java.lang.Object edge)
isDirected
in interface EdgeModel
edge
- The edge, which is assumed to be an arc.
public void removeEdge(java.lang.Object edge)
edge
- The edge, which is assumed to be an arc.public void setHead(java.lang.Object edge, java.lang.Object newArcHead)
setHead
in interface MutableEdgeModel
edge
- The edge, which is assumed to be an arc.newArcHead
- The new head for the edge, which is assumed to
be an icon.setTail(Object, Object)
,
getHead(Object)
public void setTail(java.lang.Object edge, java.lang.Object newArcTail)
setTail
in interface MutableEdgeModel
edge
- The edge, which is assumed to be an arc.newArcTail
- The new tail for the edge, which is assumed to
be an icon.setHead(Object, Object)
,
getTail(Object)
private java.lang.String _deleteRelation(NamedObj container, Relation relation)
private java.lang.String _linkHead(NamedObj container, java.lang.StringBuffer moml, java.lang.StringBuffer failmoml, NamedObj linkHead, NamedObj linkTail, Relation linkRelation)
private java.lang.String _linkTail(NamedObj container, java.lang.StringBuffer moml, java.lang.StringBuffer failmoml, NamedObj linkHead, NamedObj linkTail, Relation linkRelation)
private java.lang.String _unlinkHead(NamedObj container, NamedObj linkHead, Relation relation)
private java.lang.String _unlinkTail(NamedObj container, NamedObj linkTail, Relation relation)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |