|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.actor.util.FunctionDependency
ptolemy.actor.util.FunctionDependencyOfCompositeActor
An instance of FunctionDependencyOfCompositeActor describes the function dependency information a composite actor. It provides both the abstracted view, which gives the function dependency that output ports of the actor have on input ports, and a detailed view from which it constructs this information. The detailed view is a graph where the nodes correspond to the ports of this composite actor and to the ports of all deeply contained opaque actors, and the edges represent either the communication dependencies implied by the connections within this composite actor or the function dependencies of the contained opaque actors. The detailed view can be used by a director to construct a schedule.
The detailed view may reveal dependency loops, which in many domains means that the model cannot be executed. To check whether there are such loops, use the getCycleNodes() method. The method returns an array of IOPorts in such loops, of an empty array if there are no such loops.
FunctionDependency
| Yellow (eal) |
| Green (hyzheng) |
| Field Summary |
| Fields inherited from class ptolemy.actor.util.FunctionDependency |
_dependencyGraph |
| Constructor Summary | |
FunctionDependencyOfCompositeActor(Actor actor)
Construct a FunctionDependency for the given actor. |
|
| Method Summary | |
protected void |
_constructDependencyGraph()
Construct a dependency graph from a detailed dependency graph by excluding the internal ports. |
protected java.util.List |
_getEntities()
Get a list of embedded entities for function dependency calculation. |
java.lang.Object[] |
getCycleNodes()
If there is a dependency loop in the dependency graph of this FunctionDependency object, return the nodes in the dependency loop. |
DirectedGraph |
getDetailedDependencyGraph()
Return a detailed dependency graph representing the function dependency information. |
| Methods inherited from class ptolemy.actor.util.FunctionDependency |
_constructConnectedDependencyGraph, _constructDisconnectedDependencyGraph, _validate, getActor, getDependencyGraph, getDependentOutputPorts, getInputPortsDependentOn |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FunctionDependencyOfCompositeActor(Actor actor)
actor - The associated actor.| Method Detail |
public java.lang.Object[] getCycleNodes()
public DirectedGraph getDetailedDependencyGraph()
protected void _constructDependencyGraph()
_constructDependencyGraph in class FunctionDependencyprotected java.util.List _getEntities()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||