>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::AndOperator Class Reference

#include <XabslBooleanExpression.h>

Inheritance diagram for xabsl::AndOperator:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents an 'and' element of the option graph.

Author:
Martin Loetzsch

Definition at line 140 of file XabslBooleanExpression.h.


Public Member Functions

 AndOperator ()
 Constructor.

 ~AndOperator ()
 Destructor.

virtual bool getValue () const
 Evaluates the boolean expression.

void addOperand (BooleanExpression *operand)
 Adds an operand to the operands array.


Private Attributes

Array< BooleanExpression * > operands
 the 2+n operands of the operator


Constructor & Destructor Documentation

xabsl::AndOperator::AndOperator  ) 
 

Constructor.

Definition at line 239 of file XabslBooleanExpression.cpp.

References xabsl::Array< BooleanExpression * >::clear(), and operands.

Here is the call graph for this function:

xabsl::AndOperator::~AndOperator  ) 
 

Destructor.

Deletes the two operands

Definition at line 244 of file XabslBooleanExpression.cpp.

References xabsl::Array< BooleanExpression * >::getSize(), and operands.

Here is the call graph for this function:


Member Function Documentation

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

Evaluates the boolean expression.

Implements xabsl::BooleanExpression.

Definition at line 252 of file XabslBooleanExpression.cpp.

References xabsl::Array< BooleanExpression * >::getSize(), and operands.

Here is the call graph for this function:

void xabsl::AndOperator::addOperand BooleanExpression operand  ) 
 

Adds an operand to the operands array.

Definition at line 261 of file XabslBooleanExpression.cpp.

References xabsl::Array< BooleanExpression * >::append(), and operands.

Referenced by xabsl::BooleanExpression::create().

Here is the call graph for this function:


Member Data Documentation

Array<BooleanExpression*> xabsl::AndOperator::operands [private]
 

the 2+n operands of the operator

Definition at line 157 of file XabslBooleanExpression.h.

Referenced by addOperand(), AndOperator(), getValue(), and ~AndOperator().


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

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