45 #ifndef __AGENT_PROPERTY_MANIPULATOR_H__
46 #define __AGENT_PROPERTY_MANIPULATOR_H__
49 #include "mengeCommon.h"
130 void setProperty( BFSM::PropertyOperand prop ) { _property = prop; }
140 virtual float newValue(
float value,
size_t agentID ) = 0;
179 virtual float newValue(
float value,
size_t agentID );
198 virtual float newValue(
float value,
size_t agentID );
217 virtual float newValue(
float value,
size_t agentID );
221 #endif // __AGENT_PROPERTY_MANIPULATOR_H__
The definition of a simple thrading lock.
BFSM::PropertyOperand parsePropertyName(const std::string &opName)
Helper function for parsing property actions.
Definition: AgentPropertyManipulator.cpp:59
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Generic abstract class which generates a scalar float value.
Definition: RandGenerator.h:99
BFSM::PropertyOperand _property
The property to operate on.
Definition: AgentPropertyManipulator.h:150
void setProperty(BFSM::PropertyOperand prop)
Sets the property operand.
Definition: AgentPropertyManipulator.h:130
Modifies a particular agent property based by adding the value from a distribution to the original ag...
Definition: AgentPropertyManipulator.h:189
The definition of a simple mutex-style lock.
Definition: SimpleLock.h:62
Base class for all Menge elements.
The basic interface of extendible Menge Elements.
Definition: Element.h:67
SimpleLock _lock
Lock for guaranteeing thread-safety.
Definition: AgentPropertyManipulator.h:161
Modifies a particular agent property based by explicitly setting the property value from a distributi...
Definition: AgentPropertyManipulator.h:170
FloatGenerator * _operandGen
The generator for determining the operand value.
Definition: AgentPropertyManipulator.h:145
Modifies a particular agent property based by multiplying the value from a distribution to the origin...
Definition: AgentPropertyManipulator.h:208
Base class for manipulating agent properties in an undoable manner. The undo is limited, it only maintains knowledge of one manipulation. If multiple manipulations are applied, only the last can be undone.
Definition: AgentPropertyManipulator.h:83
Defines the basic agent properties and functionality that all simulation agents share.
Definition: BaseAgent.h:123
Enumerated types for the State class.
std::map< size_t, float > _originalMap
A mapping from agent id to the agent's property value before the action was applied.
Definition: AgentPropertyManipulator.h:156
The namespace that contains the basic simulation mechanisms.