>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference


xabsl::Statement Class Reference

#include <XabslStatement.h>

Inheritance diagram for xabsl::Statement:

Inheritance graph
List of all members.

Detailed Description

An element of a decision that that determines a transition to a state.

It can be either a transition to a state or a if/else-if/else block containing other statements.

Martin Loetzsch

Max Risler

Definition at line 29 of file XabslStatement.h.

Public Member Functions

virtual StategetNextState ()=0
 Executes the statement and determines the next active state (can be the same).

virtual ~Statement ()=0

Static Public Member Functions

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

Constructor & Destructor Documentation

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


Definition at line 38 of file XabslStatement.cpp.

Member Function Documentation

virtual State* xabsl::Statement::getNextState  )  [pure virtual]

Executes the statement and determines the next active state (can be the same).

Implemented in xabsl::IfElseBlock, and xabsl::TransitionToState.

Referenced by xabsl::IfElseBlock::getNextState(), and xabsl::State::getNextState().

Statement * xabsl::Statement::createStatement InputSource input,
ErrorHandler errorHandler,
Symbols symbols,
Option option,
State state

Creates a statement depending on the input.

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

Definition at line 16 of file XabslStatement.cpp.

References xabsl::ErrorHandler::error(), and xabsl::InputSource::readString().

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:31 2009.