|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.vergil.kernel.CompositePtolemyModel
A diva node model for a Ptolemy II composite entity. Each element of the graph model is represented by an instance of Locatable, which is an attribute contained by a Ptolemy II object. If a Ptolemy II object is found that does not contain a Locatable, then one is created if needed. The graph model consists of locations for various elements in the composite. In particular, one location will be included for each contained entity, port, director, and visible attribute. In each case except visible attributes, if there is no location, then a default location is created. Visible attributes are included in the graph only if they already contain a location. In addition, for any relation that links more than two ports and does not contain a Vertex, this class will create a Vertex.
Location
| Red (johnr) |
| Yellow (neuendor) |
| Constructor Summary | |
CompositePtolemyModel()
|
|
| Method Summary | |
protected Locatable |
_getLocation(NamedObj object)
Return the location attribute contained in the given object, or a new location contained in the given object if there was no location. |
protected java.util.List |
_nodeList(NamedObj composite)
Return a list of all the nodes in the graph corresponding to the specified Ptolemy II model. |
int |
getNodeCount(java.lang.Object composite)
Return the number of nodes contained in the graph for the specified composite. |
java.util.Iterator |
nodes(java.lang.Object composite)
Return an iterator over all the nodes contained in the graph for the specified composite. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CompositePtolemyModel()
| Method Detail |
public int getNodeCount(java.lang.Object composite)
getNodeCount in interface CompositeModelcomposite - A composite entity.
public java.util.Iterator nodes(java.lang.Object composite)
nodes in interface CompositeModelcomposite - A composite entity.
protected Locatable _getLocation(NamedObj object)
object - The object for which a location is needed.
protected java.util.List _nodeList(NamedObj composite)
composite - The composite entity.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||