de.xabsl.jxabsl.expression.bool
Class BooleanExpression

java.lang.Object
  extended by de.xabsl.jxabsl.expression.bool.BooleanExpression
Direct Known Subclasses:
AndOperator, BooleanInputSymbolRef, BooleanOptionParameterRef, BooleanOutputSymbolRef, BooleanValue, EnumeratedExpressionComparison, NotOperator, OrOperator, RelationalAndEqualityOperator, SubsequentOptionReachedTargetStateCondition

public abstract class BooleanExpression
extends java.lang.Object

Base class for all boolean expressions in the option graph.


Field Summary
protected  DebugMessages debug
           
 
Constructor Summary
protected BooleanExpression(DebugMessages debug)
           
 
Method Summary
static BooleanExpression create(InputSource input, java.util.List<Action> actions, DebugMessages debug, OptionParameters parameters, Symbols symbols, TimeFunction timeOfOptionExecution, TimeFunction timeOfStateExecution)
          Creates a boolean expression from an input source.
abstract  boolean getValue()
          Returns the value of the boolean expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

protected DebugMessages debug
Constructor Detail

BooleanExpression

protected BooleanExpression(DebugMessages debug)
Method Detail

getValue

public abstract boolean getValue()
Returns the value of the boolean expression.

Returns:
the value of the boolean expression

create

public static BooleanExpression create(InputSource input,
                                       java.util.List<Action> actions,
                                       DebugMessages debug,
                                       OptionParameters parameters,
                                       Symbols symbols,
                                       TimeFunction timeOfOptionExecution,
                                       TimeFunction timeOfStateExecution)
                                throws IntermediateCodeMalformedException
Creates a boolean expression from an input source.

Parameters:
input - An input source for the intermediate code. It must be opened and read until A position where a boolean expression starts.
actions - The subsequent behaviors i.e options and basic behaviors of the state.
debug - For debuggin output
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