>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::BooleanInputSymbolRef Class Reference

#include <XabslBooleanExpression.h>

Inheritance diagram for xabsl::BooleanInputSymbolRef:

Inheritance graph
[legend]
Collaboration diagram for xabsl::BooleanInputSymbolRef:

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents an 'boolean-input-symbol-ref' element of the option graph.

Author:
Martin Loetzsch

Definition at line 222 of file XabslBooleanExpression.h.


Public Member Functions

 BooleanInputSymbolRef (InputSource &input, ErrorHandler &errorHandler, Symbols &symbols, Option &option, State &state)
 Constructor.

 ~BooleanInputSymbolRef ()
 Destructor.

virtual bool getValue () const
 Evaluates the boolean expression.


Private Attributes

BooleanInputSymbolsymbol
 The referenced symbol.

ParameterAssignmentparameters
 The parameter assignments of the referenced symbol.


Constructor & Destructor Documentation

xabsl::BooleanInputSymbolRef::BooleanInputSymbolRef InputSource input,
ErrorHandler errorHandler,
Symbols symbols,
Option option,
State state
 

Constructor.

Creates the element

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

Definition at line 308 of file XabslBooleanExpression.cpp.

References xabsl::Symbols::booleanInputSymbols, xabsl::ParameterAssignment::create(), xabsl::ErrorHandler::error(), xabsl::NamedArray< BooleanInputSymbol * >::exists(), xabsl::ErrorHandler::message(), xabsl::InputSymbol< bool >::parameters, xabsl::InputSource::readString(), symbol, and XABSL_DEBUG_INIT.

Here is the call graph for this function:

xabsl::BooleanInputSymbolRef::~BooleanInputSymbolRef  ) 
 

Destructor.

Definition at line 333 of file XabslBooleanExpression.cpp.


Member Function Documentation

bool xabsl::BooleanInputSymbolRef::getValue  )  const [virtual]
 

Evaluates the boolean expression.

Implements xabsl::BooleanExpression.

Definition at line 339 of file XabslBooleanExpression.cpp.

References xabsl::InputSymbol< bool >::getValue(), xabsl::InputSymbol< bool >::parametersChanged(), xabsl::ParameterAssignment::set(), and symbol.

Here is the call graph for this function:


Member Data Documentation

BooleanInputSymbol* xabsl::BooleanInputSymbolRef::symbol [private]
 

The referenced symbol.

Definition at line 248 of file XabslBooleanExpression.h.

Referenced by BooleanInputSymbolRef(), and getValue().

ParameterAssignment* xabsl::BooleanInputSymbolRef::parameters [private]
 

The parameter assignments of the referenced symbol.

Definition at line 251 of file XabslBooleanExpression.h.


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

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