protected static class OptimalScheduleFinder._State
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) int[] |
actorContent
Array to store all actor content, remaining number of firings.
|
(package private) int[] |
channelContent
Array to store all channel content.
|
(package private) OptimalScheduleFinder._Actor |
firingActor
The actor that was fired to reach this state.
|
(package private) boolean |
firingExclusive
true if the firing to reach the state was exclusive.
|
(package private) OptimalScheduleFinder._State |
previousState
Link to the previous state.
|
(package private) int |
value
Value to be optimized, smaller is better.
|
Constructor and Description |
---|
_State(OptimalScheduleFinder._State thePreviousState)
Construct an instance of State, with a reference to a previous state.
|
Modifier and Type | Method and Description |
---|---|
(package private) OptimalScheduleFinder._State |
clone(OptimalScheduleFinder._State state)
Create new state by cloning state 'state' and marking
s as its predecessor state.
|
(package private) int |
getFiringsToCompletion()
Determine the number of remaining firings.
|
(package private) boolean |
isEndState()
Test whether this is a valid end state, i.e. whether all actors have
completed their required number of firings.
|
boolean firingExclusive
OptimalScheduleFinder._Actor firingActor
OptimalScheduleFinder._State previousState
int[] channelContent
int[] actorContent
int value
_State(OptimalScheduleFinder._State thePreviousState)
thePreviousState
- link to previous stateOptimalScheduleFinder._State clone(OptimalScheduleFinder._State state)
state
- state to cloneboolean isEndState()
int getFiringsToCompletion()