Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
Menge::EventTarget Class Reference

The base class for all event targets. More...

#include <EventTarget.h>

Inheritance diagram for Menge::EventTarget:
Menge::Element Menge::AgentEventTarget Menge::NamedStateMemberTarget

Public Member Functions

 EventTarget ()
 Constructor.
 
virtual void finalize ()
 Allows the event target to finish initializing itself from its parsed state to its running state. More...
 
virtual void update ()
 Gives the target a chance to update its knowledge of the target entities. More...
 
- Public Member Functions inherited from Menge::Element
void destroy ()
 This supplants the destructor. More...
 
virtual BFSM::TaskgetTask ()
 Return an optional task associated with this element. More...
 
virtual SceneGraph::GLNodegetSGNode ()
 Returns an optional visualization element associated with the element. More...
 

Protected Attributes

float _lastUpdate
 The global time that the target was last updated.
 

Detailed Description

The base class for all event targets.

An event target defines the operand of an event effect. i.e., if the event effect defines how things change, the target defines which elements undergo the effect.

Member Function Documentation

virtual void Menge::EventTarget::finalize ( )
inlinevirtual

Allows the event target to finish initializing itself from its parsed state to its running state.

Exceptions
EventExceptionif there is a problem finalizing.

Reimplemented in Menge::NamedStateMemberTarget.

virtual void Menge::EventTarget::update ( )
inlinevirtual

Gives the target a chance to update its knowledge of the target entities.

If a sub-class needs to do particular computation to evaluate the target, it should be implemented here.

Reimplemented in Menge::NamedStateMemberTarget.


The documentation for this class was generated from the following file: