Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Menge::Agents::ConstStateSelector Class Reference

An initial state selector that stores a single state and assigns that state to all agents. More...

#include <ConstStateSelector.h>

Inheritance diagram for Menge::Agents::ConstStateSelector:
Menge::Agents::StateSelector Menge::Element

Public Member Functions

 ConstStateSelector ()
 Constructor.
 
virtual std::string getState ()
 Provides the name of a state. More...
 
void setStateName (const std::string &name)
 Sets the name of the state. More...
 
- Public Member Functions inherited from Menge::Agents::StateSelector
 StateSelector ()
 Constructor.
 
- Public Member Functions inherited from Menge::Element
void destroy ()
 This supplants the destructor. More...
 
virtual BFSM::TaskgetTask ()
 Return an optional task associated with this element. More...
 
virtual SceneGraph::GLNodegetSGNode ()
 Returns an optional visualization element associated with the element. More...
 

Protected Attributes

std::string _stateName
 The name of the profile to use.
 

Additional Inherited Members

- Protected Member Functions inherited from Menge::Agents::StateSelector
virtual ~StateSelector ()
 Virtual destructor.
 

Detailed Description

An initial state selector that stores a single state and assigns that state to all agents.

Member Function Documentation

virtual std::string Menge::Agents::ConstStateSelector::getState ( )
inlinevirtual

Provides the name of a state.

Ths must be overriden by child classes.

Returns
: The name of the state.

Implements Menge::Agents::StateSelector.

void Menge::Agents::ConstStateSelector::setStateName ( const std::string &  name)
inline

Sets the name of the state.

Parameters
nameThe name of the selector's state.

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