de.xabsl.jxabsl.statement
Class IfElseBlock

java.lang.Object
  extended by de.xabsl.jxabsl.statement.Statement
      extended by 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


Constructor Summary
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)
          Constructor.
 
Method Summary
 State getNextState()
          Executes the statement and determines the next active state (can be the same).
 
Methods inherited from class de.xabsl.jxabsl.statement.Statement
createStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 behavior
debug - For debugging output
states - All states of the option
parameters - The parameters of the option
symbols - All available symbols
timeOfOptionExecution - The time how long the option is already active
timeOfStateExecution - The time how long the state is already active
Throws:
IntermediateCodeMalformedException
Method Detail

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