44 #ifndef __GOAL_SELECTOR_H__
45 #define __GOAL_SELECTOR_H__
172 virtual void setGoalSet( std::map< size_t, GoalSet * > & goalSets ){}
241 GoalSelector * parseGoalSelector( TiXmlElement * node,
const std::string & behaveFldr );
245 #endif //__GOAL_SELECTOR_H__
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Exception class for goal generation.
Definition: GoalSelector.h:73
Sets up the proper compiler directives for platform and dll export/import.
Exception thrown when the goal selector has an error which cannot be recovered from.
Definition: GoalSelector.h:93
virtual ~GoalSelector()
Default virtual destructor.
Definition: GoalSelector.h:124
The base, abstract class defining goals.
Definition: Goal.h:110
bool _persistent
Determines if the GoalSelector maintains persistent goals.
Definition: GoalSelector.h:215
The definition of a readers-writer lock.
Definition: ReadersWriterLock.h:62
The base definition for exceptions in Menge.
virtual void setGoalSet(std::map< size_t, GoalSet * > &goalSets)
Gives the instance the opportunity to set the goal set.
Definition: GoalSelector.h:172
Base class for all Menge elements.
The basic interface of extendible Menge Elements.
Definition: Element.h:67
ReadersWriterLock _lock
The lock to maintain readers-writer access to the _assignedGoals.
Definition: GoalSelector.h:230
Base exception class for menge operations.
Definition: MengeException.h:58
void setPersistence(bool state)
Sets the persistence of the goal.
Definition: GoalSelector.h:179
GoalSelectorFatalException()
Default constructor.
Definition: GoalSelector.h:98
bool getPersistence() const
Reports the persistence of the goal.
Definition: GoalSelector.h:186
The definition of a readers-writer lock.
Base class for fatal exceptions.
Definition: MengeException.h:99
GoalSelectorFatalException(const std::string &s)
Constructor with message.
Definition: GoalSelector.h:105
The namespace contains the Behavior Finite State Machine (BFSM) definition.
GoalSelectorException(const std::string &s)
Constructor with message.
Definition: GoalSelector.h:85
Collection of convenient pre-compiler information for fsm definitions.
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The base, abstract class for selecting per-agent goals.
Definition: GoalSelector.h:113
GoalSelector()
Default constructor.
Definition: GoalSelector.h:118
virtual void releaseResources()
Allows the goal selector to release previously locked resources.
Definition: GoalSelector.h:206
The namespace that contains the basic simulation mechanisms.
virtual void lockResources()
Allows the goal selector to lock any resources it requires.
Definition: GoalSelector.h:198
HASH_MAP< size_t, Goal * > _assignedGoals
A mapping from agent id to assigned goals. This will only contain meaningful values in one of two cas...
Definition: GoalSelector.h:224
GoalSelectorException()
Default constructor.
Definition: GoalSelector.h:78