IMS2  Pre-Alpha
An Orbiter add-on to allow on-runtime construction of spacecraft from predefined modules
StateNode Class Reference

A SimplePathNode representing a state in the statemachine. More...

Inheritance diagram for StateNode:
SimplePathNode

Public Member Functions

 StateNode (int _id, bool _stable, string _description="")
 
bool IsStable ()
 
string GetDescription ()
 
- Public Member Functions inherited from SimplePathNode
 SimplePathNode (int _id)
 
void ConnectTo (SimplePathNode *_leads_to)
 Connect this node to another node. More...
 
bool IsConnectedTo (SimplePathNode *targetnode)
 Checks whether a node is reachable from this node in one step. More...
 
vector< SimplePathNode * > & GetConnected ()
 
int GetId ()
 

Private Attributes

bool stable
 Stores whether this is a stable state or not.
 
string description
 Stores the state's description.
 

Detailed Description

A SimplePathNode representing a state in the statemachine.

Provides an additional member to signify whether this state is stable or intermediate. For a more detailed description of how the state machine works, see StateMachine.h

See also
StateMachine.h

Constructor & Destructor Documentation

StateNode::StateNode ( int  _id,
bool  _stable,
string  _description = "" 
)
Parameters
_idAn id for this node, locally unique inside the state machine
_stableWether this state is stable or intermediate
_descriptionOptional; A text description for this state

Member Function Documentation

string StateNode::GetDescription ( )
inline
Returns
The description of this statenode
bool StateNode::IsStable ( )
inline
Returns
True if this is a stable state, false otherwise

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