Menge
Modular Pedestrian Simulation Framework for Research and Development
|
The base class for binary boolean operand as a transition condition. More...
#include <CondBoolean.h>
Public Member Functions | |
Bool2Condition () | |
Constructor. | |
Bool2Condition (const Bool2Condition &cond) | |
Copy Constructor. More... | |
virtual void | onEnter (Agents::BaseAgent *agent) |
Called when an agent enters a state with this exiting transition. More... | |
virtual void | onLeave (Agents::BaseAgent *agent) |
Called when an agent exits the state with this transition. More... | |
Public Member Functions inherited from Menge::BFSM::Condition | |
Condition () | |
Constructor. | |
Condition (const Condition &cond) | |
Copy Constructor. More... | |
virtual bool | conditionMet (Agents::BaseAgent *agent, const Goal *goal)=0 |
Reports if the conditions have been met. More... | |
virtual Condition * | copy ()=0 |
Create a copy of this condition. 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 | ~Bool2Condition () |
Protected destructor. | |
Protected Member Functions inherited from Menge::BFSM::Condition | |
virtual | ~Condition () |
Protected destructor. | |
Protected Attributes | |
Condition * | _op1 |
The first boolean operand. | |
Condition * | _op2 |
The second boolean operand. | |
Friends | |
class | Bool2CondFactory |
The base class for binary boolean operand as a transition condition.
Menge::BFSM::Bool2Condition::Bool2Condition | ( | const Bool2Condition & | cond | ) |
Copy Constructor.
cond | The condition to copy from. |
|
virtual |
Called when an agent enters a state with this exiting transition.
Sub-classes should use this function as the opportunity to cache any particular per-agent data.
agent | The agent who has entered the state which uses this transition. |
Reimplemented from Menge::BFSM::Condition.
|
virtual |
Called when an agent exits the state with this transition.
agent | The agent who left the state. |
Reimplemented from Menge::BFSM::Condition.