de.xabsl.jxabsl.statement
Class Statement

java.lang.Object
  extended by 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.


Constructor Summary
Statement()
           
 
Method Summary
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)
          Creates a statement depending on the input.
abstract  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
 

Constructor Detail

Statement

public Statement()
Method Detail

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 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

getNextState

public abstract State getNextState()
Executes the statement and determines the next active state (can be the same).