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 Member Functions | Protected Attributes | Friends | List of all members
Menge::BFSM::Bool2Condition Class Reference

The base class for binary boolean operand as a transition condition. More...

#include <CondBoolean.h>

Inheritance diagram for Menge::BFSM::Bool2Condition:
Menge::BFSM::Condition Menge::Element Menge::BFSM::AndCondition Menge::BFSM::OrCondition

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 Conditioncopy ()=0
 Create a copy of this condition. 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 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
 

Detailed Description

The base class for binary boolean operand as a transition condition.

Constructor & Destructor Documentation

Menge::BFSM::Bool2Condition::Bool2Condition ( const Bool2Condition cond)

Copy Constructor.

Parameters
condThe condition to copy from.

Member Function Documentation

void Menge::BFSM::Bool2Condition::onEnter ( Agents::BaseAgent agent)
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.

Parameters
agentThe agent who has entered the state which uses this transition.

Reimplemented from Menge::BFSM::Condition.

void Menge::BFSM::Bool2Condition::onLeave ( Agents::BaseAgent agent)
virtual

Called when an agent exits the state with this transition.

Parameters
agentThe agent who left the state.

Reimplemented from Menge::BFSM::Condition.


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