>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::BooleanExpression Class Reference

#include <XabslBooleanExpression.h>

Inheritance diagram for xabsl::BooleanExpression:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for all boolean expressions inside an option graph.

Author:
Martin Loetzsch

Max Risler

Definition at line 26 of file XabslBooleanExpression.h.


Public Member Functions

virtual bool getValue () const=0
 Evaluates the boolean expression.

virtual ~BooleanExpression ()=0
 Destructor.


Static Public Member Functions

BooleanExpressioncreate (InputSource &input, ErrorHandler &errorHandler, Symbols &symbols, Option &option, State &state)
 Creates a boolean expression depending on the input.

bool createOperand (BooleanExpression *&operand, InputSource &input, ErrorHandler &errorHandler, Symbols &symbols, Option &option, State &state)
 Creates a boolean expression depending on the input.


Constructor & Destructor Documentation

xabsl::BooleanExpression::~BooleanExpression  )  [pure virtual]
 

Destructor.

Definition at line 16 of file XabslBooleanExpression.cpp.


Member Function Documentation

virtual bool xabsl::BooleanExpression::getValue  )  const [pure virtual]
 

Evaluates the boolean expression.

Implemented in xabsl::BooleanValue, xabsl::BooleanOptionParameterRef, xabsl::AndOperator, xabsl::OrOperator, xabsl::NotOperator, xabsl::BooleanInputSymbolRef, xabsl::BooleanOutputSymbolRef, xabsl::SubsequentOptionReachedTargetStateCondition, xabsl::ConflictCondition, xabsl::EnumeratedInputSymbolComparison, xabsl::RelationalAndEqualityOperator, xabsl::EqualToOperator, xabsl::NotEqualToOperator, xabsl::LessThanOperator, xabsl::LessThanOrEqualToOperator, xabsl::GreaterThanOperator, and xabsl::GreaterThanOrEqualToOperator.

Referenced by xabsl::ActionBooleanOutputSymbol::execute(), xabsl::IfElseBlock::getNextState(), xabsl::ConditionalEnumeratedExpression::getValue(), xabsl::ConditionalDecimalExpression::getValue(), and xabsl::NotOperator::getValue().

BooleanExpression * xabsl::BooleanExpression::create InputSource input,
ErrorHandler errorHandler,
Symbols symbols,
Option option,
State state
[static]
 

Creates a boolean expression depending on the input.

Parameters:
input An input source for the intermediate code. It must be opened and read until A position where a boolean expression starts.
errorHandler A reference to a ErrorHandler instance
symbols All available symbols
option The current option
state The current state

Definition at line 20 of file XabslBooleanExpression.cpp.

References xabsl::OrOperator::addOperand(), xabsl::AndOperator::addOperand(), xabsl::RelationalAndEqualityOperator::create(), xabsl::ErrorHandler::error(), xabsl::ErrorHandler::message(), xabsl::InputSource::readString(), xabsl::InputSource::readValue(), and XABSL_DEBUG_INIT.

Here is the call graph for this function:

bool xabsl::BooleanExpression::createOperand BooleanExpression *&  operand,
InputSource input,
ErrorHandler errorHandler,
Symbols symbols,
Option option,
State state
[static]
 

Creates a boolean expression depending on the input.

Uses the create() function to create boolean operands.

Parameters:
operand The expression to be created
input An input source for the intermediate code. It must be opened and read until A position where a boolean operand starts.
errorHandler A reference to a ErrorHandler instance
symbols All available symbols
option The current option
state The current state
Returns:
If the creation was successful

Definition at line 175 of file XabslBooleanExpression.cpp.

References xabsl::ErrorHandler::error(), and xabsl::ErrorHandler::errorsOccurred.

Here is the call graph for this function:


The documentation for this class was generated from the following files:

Up | Main Page | Generated at Wed Aug 19 17:32:30 2009.