68 class SimulatorInterface;
118 bool loadFromXML(
const std::string & xmlName,
bool verbose );
193 #endif // __CONFIG_H__
The transition between BFSM states.
Definition: Transition.h:67
The basic state of the behavior finite state machine.
Definition: State.h:123
bool loadFromXML(const std::string &xmlName, bool verbose)
Initializes the configuration from an xml file.
Definition: FSMDescrip.cpp:109
std::list< StateDescrip * > _states
List of state descriptions.
Definition: FSMDescrip.h:154
The full description of the behavioral finite state machine.
Definition: FSMDescrip.h:84
The state (and state goal) specification in the behavior configuration file.
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
The basic class for all on-disk resources.
The description of a state (see State).
Definition: StateDescrip.h:70
std::list< Task * > _tasks
A map from agent class id to a behavior description instance.
Definition: FSMDescrip.h:169
The basic simulator interface required by the fsm.
Definition: SimulatorInterface.h:66
An html logger - writes messages to a formatted html file.
Definition: Logger.h:59
FSMDescrip()
Default constructor.
Definition: FSMDescrip.cpp:64
The specificaiton of a message logger for menge, such that all messages to the system get properly re...
std::vector< VelModifier * > _velModifiers
A list of velocity modifiers to be applied to all states in the simulator.
Definition: FSMDescrip.h:182
~FSMDescrip()
Destructor.
Definition: FSMDescrip.cpp:69
Various operating-system-dependent file-system operations.
std::map< std::string, std::list< Transition * > > _transitions
List of transitions.
Definition: FSMDescrip.h:159
Templated class for the behavior finite state machine.
Definition: FSM.h:126
State * addState(StateDescrip *sData)
Instantiates a state based on the description.
Definition: FSMDescrip.cpp:96
The namespace contains the Behavior Finite State Machine (BFSM) definition.
The definition of a 2D vector field.
Collection of convenient pre-compiler information for fsm definitions.
void addTransition(const std::string &name, Transition *trans)
Adds the transition(s) associated with the given name.
Definition: FSMDescrip.cpp:212
std::map< size_t, GoalSet * > _goalSets
A mapping of goal sets to goals. The goal sets are represented by their id. The goals for each goal s...
Definition: FSMDescrip.h:177
std::string _behaviorFldr
The folder in which the behavior specification file appears.
Definition: FSMDescrip.h:187
friend FSM * buildFSM(FSMDescrip &fsmDescrip, Agents::SimulatorInterface *sim, bool VERBOSE)
Creates an FSM instance from the config file.
Definition: buildFSM.cpp:72
friend Logger & operator<<(Logger &out, const FSMDescrip &fsmDescrip)
Friend operator for printing the behavior configuration to an output stream.
Definition: FSMDescrip.cpp:227
std::map< std::string, State * > _stateNameMap
Map of state names to states.
Definition: FSMDescrip.h:164
The namespace that contains the basic simulation mechanisms.