public class ActorGraphModel.PortModel extends NamedObjNodeModel
Constructor and Description |
---|
PortModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDeleteNodeMoML(java.lang.Object node)
Return a MoML String that will delete the given node from the
Ptolemy model.
|
java.lang.Object |
getParent(java.lang.Object node)
Return the graph parent of the given node.
|
java.util.Iterator |
inEdges(java.lang.Object node)
Return an iterator over the edges coming into the given node.
|
java.util.Iterator |
outEdges(java.lang.Object node)
Return an iterator over the edges coming out of the given node.
|
void |
removeNode(java.lang.Object eventSource,
java.lang.Object node)
Remove the given node from the model.
|
public java.lang.String getDeleteNodeMoML(java.lang.Object node)
getDeleteNodeMoML
in class NamedObjNodeModel
node
- The node.public java.lang.Object getParent(java.lang.Object node)
node
- The node, which is assumed to be a port.public java.util.Iterator inEdges(java.lang.Object node)
node
- The node, which is assumed to be a port contained in
the root of this graph model.public java.util.Iterator outEdges(java.lang.Object node)
node
- The node, which is assumed to be a port contained in
the root of this graph model.public void removeNode(java.lang.Object eventSource, java.lang.Object node)
removeNode
in class NamedObjNodeModel
eventSource
- The source of the event that will be dispatched,
e.g. the view that made this call.node
- The node.