44 #ifndef __COND_TIMER_H__
45 #define __COND_TIMER_H__
59 class TimerCondFactory;
167 virtual const char *
name()
const {
return "timer"; }
177 return "The timer condition. It becomes active when the agent has "\
178 "remained in the state at least a user-specified length of time.";
212 virtual bool setFromXML(
Condition * condition, TiXmlElement * node,
const std::string & behaveFldr )
const;
227 #endif // __COND_TIMER_H__
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
virtual const char * description() const
A description of the action.
Definition: CondTimer.h:176
Generic abstract class which generates a scalar float value.
Definition: RandGenerator.h:99
The class for parsing the xml description of a Condition and instantiating particular instances...
Definition: ConditionFactory.h:61
Sets up the proper compiler directives for platform and dll export/import.
The factory for parsing xml data for transition conditions and instantiating the appropriate class...
The base, abstract class defining goals.
Definition: Goal.h:110
The definition of a readers-writer lock.
Definition: ReadersWriterLock.h:62
size_t _perAgentID
The identifier for the "per_agent" boolean attribute.
Definition: CondTimer.h:217
virtual Condition * instance() const
Create an instance of this class's condition.
Definition: CondTimer.h:192
FloatGenerator * _durGen
The generator for determining the per-agent duration.
Definition: CondTimer.h:139
The definition of a readers-writer lock.
The namespace contains the Behavior Finite State Machine (BFSM) definition.
Collection of convenient pre-compiler information for fsm definitions.
std::map< size_t, float > _triggerTimes
The trigger time for agents currently effected by this transition.
Definition: CondTimer.h:134
virtual const char * name() const
The name of the action.
Definition: CondTimer.h:167
The base class for transition conditions.
Definition: Condition.h:68
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
The definition of the timer condition.
Definition: CondTimer.h:71
The factory for creating the TimerCondition.
Definition: CondTimer.h:152
The basis for determining the conditions under which transitions become "active" (and are taken)...
size_t _durGenID
The identifier for the duration float distribution attribute.
Definition: CondTimer.h:222
ReadersWriterLock _lock
Lock to protect _triggerTimes;.
Definition: CondTimer.h:144