![]() |
Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Modifies a particular agent property based by multiplying the value from a distribution to the original agent parameter value. More...
#include <AgentPropertyManipulator.h>
Protected Member Functions | |
| virtual float | newValue (float value, size_t agentID) |
| Computes the new property value given the original property value. More... | |
Protected Member Functions inherited from Menge::AgentPropertyManipulator | |
| virtual | ~AgentPropertyManipulator () |
| Virtual destructor. | |
Additional Inherited Members | |
Public Member Functions inherited from Menge::AgentPropertyManipulator | |
| AgentPropertyManipulator () | |
| Constructor. | |
| void | manipulate (Agents::BaseAgent *agent) |
| Applies the manipulation to the given agent, storing the previous state for restoration. More... | |
| void | restore (Agents::BaseAgent *agent) |
| Restores the agent's previous value. More... | |
| void | setGenerator (FloatGenerator *gen) |
| Sets the generator for the manipulator. More... | |
| void | setProperty (BFSM::PropertyOperand prop) |
| Sets the property operand. More... | |
Public Member Functions inherited from Menge::Element | |
| void | destroy () |
| This supplants the destructor. More... | |
| virtual BFSM::Task * | getTask () |
| Return an optional task associated with this element. More... | |
| virtual SceneGraph::GLNode * | getSGNode () |
| Returns an optional visualization element associated with the element. More... | |
Protected Attributes inherited from Menge::AgentPropertyManipulator | |
| FloatGenerator * | _operandGen |
| The generator for determining the operand value. | |
| BFSM::PropertyOperand | _property |
| The property to operate on. | |
| std::map< size_t, float > | _originalMap |
| A mapping from agent id to the agent's property value before the action was applied. | |
| SimpleLock | _lock |
| Lock for guaranteeing thread-safety. | |
Modifies a particular agent property based by multiplying the value from a distribution to the original agent parameter value.
|
protectedvirtual |
Computes the new property value given the original property value.
| value | The original value of the property. |
| agentID | The identifier for the agent. |
Implements Menge::AgentPropertyManipulator.
1.8.8