ptolemy.vergil.basic
Class NamedObjNodeModel

java.lang.Object
  extended by ptolemy.vergil.basic.NamedObjNodeModel
All Implemented Interfaces:
NodeModel
Direct Known Subclasses:
ActorGraphModel.ExternalPortModel, ActorGraphModel.IconModel, ActorGraphModel.PortModel, ActorGraphModel.VertexModel, AttributeNodeModel, FSMGraphModel.PortModel, FSMGraphModel.PortModel, FSMGraphModel.StateModel, FSMGraphModel.StateModel

public abstract class NamedObjNodeModel
extends java.lang.Object
implements NodeModel

A model for a Ptolemy II object as a node in a diva graph.

Since:
Ptolemy II 2.0
Version:
$Id: NamedObjNodeModel.java 57040 2010-01-27 20:52:32Z cxh $
Author:
Steve Neuendorffer and Edward A. Lee
Accepted Rating:
Red (reviewmoderator)
Proposed Rating:
Red (yourname)

Constructor Summary
NamedObjNodeModel()
           
 
Method Summary
abstract  java.lang.String getDeleteNodeMoML(java.lang.Object node)
          Return a MoML String that will delete the given node from the Ptolemy model.
abstract  void removeNode(java.lang.Object eventSource, java.lang.Object node)
          Remove the specified node from the model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface diva.graph.modular.NodeModel
getParent, inEdges, outEdges
 

Constructor Detail

NamedObjNodeModel

public NamedObjNodeModel()
Method Detail

getDeleteNodeMoML

public abstract java.lang.String getDeleteNodeMoML(java.lang.Object node)
Return a MoML String that will delete the given node from the Ptolemy model.

Parameters:
node - The given node to be deleted.
Returns:
A valid MoML string.

removeNode

public abstract void removeNode(java.lang.Object eventSource,
                                java.lang.Object node)
Remove the specified node from the model.

Parameters:
eventSource - The event source.
node - The given node to be deleted.