|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectptolemy.actor.util.FunctionDependency
A FunctionDependency is an abstract class that describes the function dependency that output ports of an associated actor have on its input ports. The associated actor is specified by the constructor argument and cannot be changed once this object is constructed.
An output port has a function dependency on an input port if in its fire method, it sends tokens on the output port that depend on tokens gotten from the input port.
This class uses a graph to describe the function dependency, where the nodes of the graph correspond to the ports and an edge indicates a function dependency. The edges go from input ports to output ports that depend on them.
The dependency graph by default indicates complete dependency,
which means that each output port depends on all input ports.
This default dependency graph is constructed in the protected
method _constructDependencyGraph(), which can be
overridden in subclasses to construct a more accurate
dependency graph. See FunctionDependencyOfAtomicActor
and FunctionDependencyOfCompositeActor for example
concrete subclasses. The composite actor version analyzes
the contained model to determine from the function dependencies
of the contained actors and from the connections what the
function dependencies of the composite actor are.
| Green (eal) |
| Green (hyzheng) |
| Field Summary | |
protected DirectedGraph |
_dependencyGraph
The dependency graph of the associated actor. |
| Constructor Summary | |
FunctionDependency(Actor actor)
Construct a FunctionDependency object for the given actor. |
|
| Method Summary | |
protected DirectedGraph |
_constructConnectedDependencyGraph()
Construct a complete dependency graph with all the ports of the associated actor as nodes and edges going from each input port node to each output port node. |
protected void |
_constructDependencyGraph()
Construct the dependency graph for the associated actor. |
protected DirectedGraph |
_constructDisconnectedDependencyGraph()
Construct and return a dependency graph containing all the ports of the associated actor as nodes and no edges. |
protected void |
_validate()
Update the FunctionDependency object. |
Actor |
getActor()
Get the associated actor. |
DirectedGraph |
getDependencyGraph()
Return the dependency graph representing the function dependency of an actor. |
java.util.Set |
getDependentOutputPorts(IOPort inputPort)
Get the output ports that depend on the given input port. |
java.util.Set |
getInputPortsDependentOn(IOPort outputPort)
Get the input ports on which the given output port is dependent. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DirectedGraph _dependencyGraph
| Constructor Detail |
public FunctionDependency(Actor actor)
actor - The actor.| Method Detail |
public DirectedGraph getDependencyGraph()
public Actor getActor()
public java.util.Set getDependentOutputPorts(IOPort inputPort)
inputPort - The given input port.
public java.util.Set getInputPortsDependentOn(IOPort outputPort)
outputPort - The given output port.
protected final DirectedGraph _constructConnectedDependencyGraph()
protected void _constructDependencyGraph()
protected final DirectedGraph _constructDisconnectedDependencyGraph()
protected final void _validate()
Workspace.getVersion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||