de.xabsl.jxabsl.statement
Class Statement
java.lang.Object
de.xabsl.jxabsl.statement.Statement
- Direct Known Subclasses:
- IfElseBlock, TransitionToState
public abstract class Statement
- extends java.lang.Object
An element of a decision that that determines a transition to a state. It can
be either a transition to a state or a if/else-if/else block containing other
statements.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Statement
public Statement()
createStatement
public static Statement createStatement(InputSource input,
java.util.List<Action> actions,
DebugMessages debug,
java.util.Map<java.lang.String,State> states,
OptionParameters parameters,
Symbols symbols,
TimeFunction timeOfOptionExecution,
TimeFunction timeOfStateExecution)
throws IntermediateCodeMalformedException
- Creates a statement depending on the input.
- Parameters:
input
- An input source for the intermediate code. It must be opened
and read until A position where a statement starts.subsequentOption
- The subsequent option of the state. 0 if the subsequent
behavior is a basic behaviordebug
- For debugging outputstates
- All states of the optionparameters
- The parameters of the optionsymbols
- All available symbolstimeOfOptionExecution
- The time how long the option is already activetimeOfStateExecution
- The time how long the state is already active
- Throws:
IntermediateCodeMalformedException
getNextState
public abstract State getNextState()
- Executes the statement and determines the next active state (can be the
same).