protected static class OptimalScheduleFinder._Actor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
_name
The name of the actor.
|
(package private) OptimalScheduleFinder._ListOfPorts |
_ports
A list of ports of the actor, both input and output ports.
|
(package private) int |
_repetitionCount
Count for the actor in the repetition vector of the graph.
|
(package private) int |
_stateIndex
index for the actor into the global state vector
|
(package private) int |
exclusiveBuffers
The number of frame buffers the actor requires in an exclusive firing.
|
(package private) int |
exclusiveExecutionTime
Execution time (estimate) for the actor for an exclusive firing.
|
(package private) int |
sharedBuffers
The number of frame buffers the actor requires in a shared firing.
|
(package private) int |
sharedExecutionTime
Execution time (estimate) for the actor for a shared firing.
|
Modifier | Constructor and Description |
---|---|
protected |
_Actor(java.lang.String name,
int repetitionCount,
int sharedBuffersNeeded,
int exclusiveBuffersNeeded,
int sharedExecutionTimeNeeded,
int exclusiveExecutionTimeNeeded)
Construct an instance of Actor, providing its name, repetition vector
count and profile information.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
addPort(OptimalScheduleFinder._Port port)
Add a port to the actor.
|
(package private) int |
assignStateIndex(int index)
Assign stateIndex to actor and its ports and returns the index for
the next component.
|
(package private) void |
fire(OptimalScheduleFinder._State state)
adapt state 'state' according to a shared firing.
|
(package private) void |
fireExclusive(OptimalScheduleFinder._State state)
adapt state 'state' according to an exclusive firing.
|
(package private) boolean |
isEnabled(OptimalScheduleFinder._State state)
Test whether the actor is enabled for a shared firing in given state state.
|
(package private) boolean |
isExclusiveEnabled(OptimalScheduleFinder._State state)
Test whether the actor is enabled for an exclusive firing in given state state.
|
(package private) void |
setInitialState(OptimalScheduleFinder._State state)
Initialize state of to initial state of the network.
|
int sharedBuffers
int exclusiveBuffers
int sharedExecutionTime
int exclusiveExecutionTime
int _stateIndex
OptimalScheduleFinder._ListOfPorts _ports
java.lang.String _name
int _repetitionCount
protected _Actor(java.lang.String name, int repetitionCount, int sharedBuffersNeeded, int exclusiveBuffersNeeded, int sharedExecutionTimeNeeded, int exclusiveExecutionTimeNeeded)
name
- name for the actorrepetitionCount
- repetition vector entry of the actorsharedBuffersNeeded
- number of frame buffers needed for shared firingexclusiveBuffersNeeded
- number of frame buffers needed for exclusive firingsharedExecutionTimeNeeded
- execution time needed for share firingexclusiveExecutionTimeNeeded
- execution time needed for exclusive firingint assignStateIndex(int index)
index
- index to assign to the actorboolean isEnabled(OptimalScheduleFinder._State state)
state
- stateboolean isExclusiveEnabled(OptimalScheduleFinder._State state)
state
- statevoid fire(OptimalScheduleFinder._State state)
state
- statevoid fireExclusive(OptimalScheduleFinder._State state)
state
- statevoid addPort(OptimalScheduleFinder._Port port)
port
- port to addvoid setInitialState(OptimalScheduleFinder._State state)
state
- state to initialize