de.xabsl.jxabsl.statement
Class IfElseBlock
java.lang.Object
de.xabsl.jxabsl.statement.Statement
de.xabsl.jxabsl.statement.IfElseBlock
public class IfElseBlock
- extends Statement
An element of a decision tree that that contains of an if - (else-if) - else
block
Method Summary |
State |
getNextState()
Executes the statement and determines the next active state (can be the
same). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IfElseBlock
public IfElseBlock(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
- Constructor. Creates the if / else statement
- Parameters:
input
- An input source for the intermediate code. It must be opened
and read until A position where a transition 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 State getNextState()
- Description copied from class:
Statement
- Executes the statement and determines the next active state (can be the
same).
- Specified by:
getNextState
in class Statement