|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CausalityInterface
This interface defines a causality interfaces for actor networks as
described in the paper "Causality Interfaces for Actor Networks" by
Ye Zhou and Edward A. Lee, ACM Transactions on Embedded Computing
Systems (TECS), April 2008, as available as
Technical Report No. UCB/EECS-2006-148, November 16, 2006.
Causality interfaces represent dependencies between input and output
ports of an actor and can be used to perform scheduling or static
analysis on actor models. Implementers of this interface must ensure
consistency between the methods dependentPorts(IOPort)
,
equivalentPorts(IOPort)
, and getDependency(IOPort, IOPort)
.
Dependency
Red (eal) |
Yellow (eal) |
Method Summary | |
---|---|
void |
declareDelayDependency(IOPort input,
IOPort output,
double timeDelay,
int index)
Set the dependency that the specified output port has on the specified input port to represent a time delay with the specified value and superdense time index. |
java.util.Collection<IOPort> |
dependentPorts(IOPort port)
Return a collection of the ports in this actor that depend on or are depended on by the specified port. |
java.util.Collection<IOPort> |
equivalentPorts(IOPort input)
Return a collection of input ports in the associated actor that are in the same equivalence class as the specified input port. |
Actor |
getActor()
Return the associated actor. |
Dependency |
getDefaultDependency()
Return the default dependency. |
Dependency |
getDependency(IOPort input,
IOPort output)
Return the dependency between the specified input port and the specified output port. |
void |
removeDependency(IOPort inputPort,
IOPort outputPort)
Remove the dependency that the specified output port has on the specified input port, meaning that the dependency is set to oPlusIdentity. |
Method Detail |
---|
void declareDelayDependency(IOPort input, IOPort output, double timeDelay, int index)
input
- The input port.output
- The output port with a time delay dependency on the
input port.timeDelay
- The time delay.index
- The superdense time index.java.util.Collection<IOPort> dependentPorts(IOPort port) throws IllegalActionException
port
- The port to find the dependents of.
IllegalActionException
- If the dependency
cannot be determined.java.util.Collection<IOPort> equivalentPorts(IOPort input) throws IllegalActionException
input
- The port to find the equivalence class of.
IllegalActionException
- If the equivalent ports
cannot be determined.Actor getActor()
Dependency getDefaultDependency()
Dependency getDependency(IOPort input, IOPort output) throws IllegalActionException
input
- The specified input port.output
- The specified output port.
IllegalActionException
- If the dependency
cannot be determined.void removeDependency(IOPort inputPort, IOPort outputPort)
inputPort
- The input port.outputPort
- The output port that does not depend on the
input port.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |