Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The event effect class that operates on sets of agents. More...
#include <AgentEventEffect.h>
Public Member Functions | |
virtual bool | isCompatible (EventTarget *target) |
Reports if the given target is compatible with this effect. More... | |
virtual void | apply (EventTarget *target) |
Applies the effect to the simulation target. More... | |
Public Member Functions inherited from Menge::EventEffect | |
EventEffect () | |
Constructor. | |
virtual void | finalize () |
Allows the event effect to finish initializing itself from its parsed state to its running state. 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 Member Functions | |
virtual void | agentEffect (Agents::BaseAgent *agent)=0 |
The actual work of the effect. More... | |
The event effect class that operates on sets of agents.
|
protectedpure virtual |
The actual work of the effect.
Sub-classes should implement this. It is the action to be taken for each agent.
agent | The agent to operate on. |
Implemented in Menge::AgentPropertyEffect< Manipulator >.
|
virtual |
Applies the effect to the simulation target.
Not all targets work with all effects. The target passed here must have previously passed the EventEffect::isCompatible test to work.
target | The target to apply the event to. |
Implements Menge::EventEffect.
|
virtual |
Reports if the given target is compatible with this effect.
Each effect can only work on certain types of targets. This function reports if the given target works with this effect.
target | The target instance to test. |
Implements Menge::EventEffect.