>xabsl   The Extensible Agent Behavior Specification Language

XabslEngine Class Library Reference

 

xabsl::TransitionToState Class Reference

#include <XabslStatement.h>

Inheritance diagram for xabsl::TransitionToState:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Represents a transition to a state inside a decision tree.

Definition at line 107 of file XabslStatement.h.


Public Member Functions

 TransitionToState (InputSource &input, ErrorHandler &errorHandler, Option &option)
 Constructor.

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


Private Attributes

StatenextState
 The state where that transition points to.


Constructor & Destructor Documentation

xabsl::TransitionToState::TransitionToState InputSource input,
ErrorHandler errorHandler,
Option option
 

Constructor.

Creates the transition object

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

Definition at line 105 of file XabslStatement.cpp.

References xabsl::ErrorHandler::message(), xabsl::NamedItem::n, nextState, xabsl::InputSource::readString(), xabsl::Option::states, and XABSL_DEBUG_INIT.

Here is the call graph for this function:


Member Function Documentation

State * xabsl::TransitionToState::getNextState  )  [virtual]
 

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

Implements xabsl::Statement.

Definition at line 15 of file XabslState.cpp.

References nextState.


Member Data Documentation

State* xabsl::TransitionToState::nextState [private]
 

The state where that transition points to.

Definition at line 126 of file XabslStatement.h.

Referenced by getNextState(), and TransitionToState().


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

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