>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::DecimalExpression Class Reference

#include <XabslDecimalExpression.h>

Inheritance diagram for xabsl::DecimalExpression:

Inheritance graph
[legend]
List of all members.

Detailed Description

Base class for all decimal expressions inside an option graph.

Author:
Martin Loetzsch

Max Risler

Definition at line 33 of file XabslDecimalExpression.h.


Public Member Functions

virtual double getValue () const=0
 Calculates the value of the decimal expression.

virtual ~DecimalExpression ()=0
 Destructor.


Static Public Member Functions

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

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


Constructor & Destructor Documentation

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

Destructor.

Definition at line 18 of file XabslDecimalExpression.cpp.


Member Function Documentation

virtual double xabsl::DecimalExpression::getValue  )  const [pure virtual]
 

Calculates the value of the decimal expression.

Implemented in xabsl::DecimalValue, xabsl::DecimalOptionParameterRef, xabsl::ArithmeticOperator, xabsl::PlusOperator, xabsl::MinusOperator, xabsl::MultiplyOperator, xabsl::DivideOperator, xabsl::ModOperator, xabsl::TimeRef, xabsl::DecimalInputSymbolRef, xabsl::DecimalOutputSymbolRef, and xabsl::ConditionalDecimalExpression.

Referenced by xabsl::ActionDecimalOutputSymbol::execute(), xabsl::ConditionalDecimalExpression::getValue(), xabsl::ModOperator::getValue(), xabsl::DivideOperator::getValue(), xabsl::MultiplyOperator::getValue(), xabsl::MinusOperator::getValue(), xabsl::PlusOperator::getValue(), xabsl::GreaterThanOrEqualToOperator::getValue(), xabsl::GreaterThanOperator::getValue(), xabsl::LessThanOrEqualToOperator::getValue(), xabsl::LessThanOperator::getValue(), xabsl::NotEqualToOperator::getValue(), and xabsl::EqualToOperator::getValue().

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

Creates a decimal 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 decimal expression starts.
errorHandler A reference to a ErrorHandler instance
symbols All available symbols
option The current option
state The current state

Definition at line 22 of file XabslDecimalExpression.cpp.

References xabsl::ArithmeticOperator::create(), xabsl::ErrorHandler::error(), xabsl::ErrorHandler::message(), xabsl::InputSource::readString(), xabsl::Behavior::timeOfExecution, xabsl::State::timeOfStateExecution, and XABSL_DEBUG_INIT.

Here is the call graph for this function:

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

Creates a decimal expression depending on the input.

Uses the create() function to create decimal 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 decimal 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 109 of file XabslDecimalExpression.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.