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

A condition based on the boolean OR of two conditions. More...

#include <CondBoolean.h>

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

Public Member Functions

 OrCondition ()
 Constructor.
 
 OrCondition (const OrCondition &cond)
 Copy constructor. More...
 
virtual bool conditionMet (Agents::BaseAgent *agent, const Goal *goal)
 The GoalCondition's condition is met when the agent is within a distance to the goal. More...
 
virtual Conditioncopy ()
 Create a copy of this condition. More...
 
- Public Member Functions inherited from Menge::BFSM::Bool2Condition
 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...
 
- 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...
 

Additional Inherited Members

- Protected Member Functions inherited from Menge::BFSM::Bool2Condition
virtual ~Bool2Condition ()
 Protected destructor.
 
- Protected Member Functions inherited from Menge::BFSM::Condition
virtual ~Condition ()
 Protected destructor.
 
- Protected Attributes inherited from Menge::BFSM::Bool2Condition
Condition_op1
 The first boolean operand.
 
Condition_op2
 The second boolean operand.
 

Detailed Description

A condition based on the boolean OR of two conditions.

Constructor & Destructor Documentation

Menge::BFSM::OrCondition::OrCondition ( const OrCondition cond)

Copy constructor.

Parameters
condThe condition to copy from.

Member Function Documentation

bool Menge::BFSM::OrCondition::conditionMet ( Agents::BaseAgent agent,
const Goal goal 
)
virtual

The GoalCondition's condition is met when the agent is within a distance to the goal.

Parameters
agentThe agent to test the transition for.
goalThe agent's goal (although this may be ignored).
Returns
True if the condition has been met, false otherwise.

Implements Menge::BFSM::Condition.

Condition * Menge::BFSM::OrCondition::copy ( )
virtual

Create a copy of this condition.

It is the responsibility of the caller to delete the object.

Returns
: A "deep copy" of this condition - such that there is no shared objects between this and its copy.

Implements Menge::BFSM::Condition.


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