44 #ifndef __TARGET_PROB_H__
45 #define __TARGET_PROB_H__
59 class ProbTargetFactory;
109 virtual bool connectStates( std::map< std::string, State * > & stateMap );
162 virtual const char *
name()
const {
return "prob"; }
172 return "The probabalistic transition target. This allows a state to"\
173 " transition to a randomly selected member of a set of states. "\
174 "The state selected is based on weighted probabilities.";
208 virtual bool setFromXML(
TransitionTarget * target, TiXmlElement * node,
const std::string & behaveFldr )
const;
213 #endif // __TARGET_PROB_H__
The base class for transition targets.
Definition: Target.h:77
The basic state of the behavior finite state machine.
Definition: State.h:123
std::map< State *, float > _targets
The set of target states and their corresponding relative weights.
Definition: TargetProb.h:144
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Sets up the proper compiler directives for platform and dll export/import.
float _totalWeight
The total weight of all the target states.
Definition: TargetProb.h:133
The factory for creating the ProbTarget.
Definition: TargetProb.h:152
The basis for determing what an active transition leads to.
virtual const char * description() const
A description of the action.
Definition: TargetProb.h:171
virtual const char * name() const
The name of the action.
Definition: TargetProb.h:162
std::list< std::pair< float, std::string > > _targetNames
The set of target state names and their relative weights.
Definition: TargetProb.h:138
UniformFloatGenerator _randNum
The random number generator for selecting the next state.
Definition: TargetProb.h:126
The namespace contains the Behavior Finite State Machine (BFSM) definition.
A class for parsing the xml description of a TransitionTarget and instantiating particular instances...
Definition: TargetFactory.h:61
Collection of convenient pre-compiler information for fsm definitions.
virtual TransitionTarget * instance() const
Create an instance of this class's condition.
Definition: TargetProb.h:188
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The factory for parsing xml data for TransitionTarget and instantiating the appropriate class...
The definition of the probabalistic target.
Definition: TargetProb.h:73