
FunctionDependencyOfAtomicActor |
ptolemy.actor.util.FunctionDependencyOfAtomicActor |
An instance of FunctionDependencyOfAtomicActor describes the function
dependency between the inputs and outputs of an atomic actor.
By default, each output port of an atomic actor depends on all input
ports of the actor, meaning that the token sent through an output
depends on all the tokens received from the input ports.
For some atomic actors, such as the TimedDelay actor, an output in
a firing does not depend on an input port.
(See <a href="../../../ptolemy/actor/util/FunctionDependency.xml">ptolemy.actor.util.FunctionDependency</a> for the definition of dependency.)
Such actors should override the pruneDependencies() method of
AtomicActor to remove dependencies between these ports.
For example, <a href="../../../ptolemy/domains/de/lib/TimedDelay.xml">ptolemy.domains.de.lib.TimedDelay</a>
declares that its <i>output</i> port is independent of its <i>input</i>
port by defining this method:
<pre>
public void pruneDependencies() {
super.pruneDependencies();
removeDependency(input, output);
}
</pre>
Author(s): Haiyang Zheng
Version:$Id: FunctionDependencyOfAtomicActor.java,v 1.2 2004/02/21
07:57:24 hyzheng Exp $
Pt.Proposed Rating:Green (hyzheng)
Pt.Accepted Rating:Green (eal)