|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.xabsl.jxabsl.symbols.NamedItem
de.xabsl.jxabsl.state.State
public class State
Represents a single state
Field Summary |
---|
Fields inherited from class de.xabsl.jxabsl.symbols.NamedItem |
---|
debug, name |
Constructor Summary | |
---|---|
State(java.lang.String name,
DebugMessages debug,
TimeFunction timeFunction)
Constructor. |
Method Summary | |
---|---|
void |
create(InputSource input,
java.util.Map<java.lang.String,Option> options,
Engine engine,
java.util.Map<java.lang.String,State> states,
OptionParameters parameters,
TimeFunction timeOfOptionExecution)
Creates the state and its subelements from the intermediate code. |
java.util.List<Action> |
getActions()
|
State |
getNextState()
Executes the decision tree and determines the next active state (can be the same). |
boolean |
isTargetState()
Returns wheter the state is a target state |
void |
reset()
Sets the time when the state was activated to 0 |
java.lang.String |
toString()
|
Methods inherited from class de.xabsl.jxabsl.symbols.NamedItem |
---|
getName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public State(java.lang.String name, DebugMessages debug, TimeFunction timeFunction)
name
- The name of the state. For debugging purposes.debug
- For debugging outputtimeFunction
- a function that returns the system time in ms.Method Detail |
---|
public void create(InputSource input, java.util.Map<java.lang.String,Option> options, Engine engine, java.util.Map<java.lang.String,State> states, OptionParameters parameters, TimeFunction timeOfOptionExecution) throws IntermediateCodeMalformedException
input
- An input source for the intermediate code. It must be opened
and read until A position where a state starts.options
- All available optionsbasicBehaviors
- All available basicBehaviorsstates
- All states of the optionparameters
- The parameters of the optionsymbols
- All available symbolstimeOfOptionExecution
- The time how long the option is already active
IntermediateCodeMalformedException
public State getNextState()
public void reset()
public boolean isTargetState()
public java.util.List<Action> getActions()
public java.lang.String toString()
toString
in class NamedItem
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |