Diana  0.8.3
Public Member Functions
ICapeNumericSTN Class Reference

#include <CapeModel.hpp>

List of all members.

Public Member Functions

virtual void SetCurrentState (const Common::Types::CapeString &theStateName)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual Common::Types::CapeString GetCurrentState ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder)
virtual ICapeNumericModelGetParentModel ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder)
virtual
CapeArrayNumericInternalEventInfo 
GetPossibleTransitions ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder)
virtual Common::Types::CapeDouble GetStateTransitions (const Common::Types::CapeString &fromState, CapeArrayNumericEventInfo &eventList, Common::Types::CapeArrayString &stateList)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual
Common::Types::CapeArrayString 
GetStateList ()=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeBadInvOrder)
virtual ICapeNumericModelGetStateModel (const Common::Types::CapeString &stateName)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)
virtual Common::Types::CapeString MoveToNextState (ICapeNumericEventInfo *firedEvent)=0 throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument, Common::Error::ECapeBadInvOrder, Common::Error::ECapeOutOfBounds)

Detailed Description

This is the interface which provides facilities for State Transition Networks.


Member Function Documentation

Gets the name of the current state for this STN.

Gets the model which owns this specific STN.

Gets the list of all the transitions for the current state in this STN.

Gets the list of all the states in the STN.

Gets the model associated with a particular state.

Returns the names of the states which can be reached from a specified state of the network, together with the EventInfos [Events] which control each transition.

Parameters:
fromStatethe name of the state
eventListlist of the EventInfos associated to each transition
stateListlist of the corresponding names of the states

Changes the current state according to the event that has fired.

Parameters:
firedEventthe eventInfo that has triggered the change to a new state

Sets the value of the current state. This method can be used to set the value of the initial state or internally to switch from one state to another.

Parameters:
theStateNamethe name of the current state

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