SUMO - Simulation of Urban MObility
MSPModel_NonInteracting Class Reference

The pedestrian following model. More...

#include <MSPModel_NonInteracting.h>

Inheritance diagram for MSPModel_NonInteracting:
MSPModel

Data Structures

class  MoveToNextEdge
 
class  PState
 abstract base class for managing callbacks to retrieve various state information from the model More...
 

Public Member Functions

PedestrianStateadd (MSPerson *person, MSPerson::MSPersonStage_Walking *stage, SUMOTime now)
 register the given person as a pedestrian More...
 
bool blockedAtDist (const MSLane *lane, SUMOReal distToCrossing, std::vector< const MSPerson * > *collectBlockers)
 whether a pedestrian is blocking the crossing of lane at offset distToCrossing More...
 
virtual void cleanupHelper ()
 
 MSPModel_NonInteracting (const OptionsCont &oc, MSNet *net)
 Constructor (it should not be necessary to construct more than one instance) More...
 
 ~MSPModel_NonInteracting ()
 

Static Public Member Functions

static bool canTraverse (int dir, const ConstMSEdgeVector &route)
 return whether the route may traversed with the given starting direction More...
 
static void cleanup ()
 remove state at simulation end More...
 
static MSPModelgetModel ()
 
static MSLanegetSidewalk (const MSEdge *edge)
 return the appropriate lane to walk on More...
 

Static Public Attributes

static const int BACKWARD
 
static const int FORWARD
 
static const SUMOReal SAFETY_GAP
 
static const SUMOReal SIDEWALK_OFFSET
 the offset for computing person positions when walking on edges without a sidewalk More...
 
static const int UNDEFINED_DIRECTION
 

Private Attributes

MSNetmyNet
 the net to which to issue moveToNextEdge commands More...
 

Detailed Description

The pedestrian following model.

Definition at line 56 of file MSPModel_NonInteracting.h.

Constructor & Destructor Documentation

MSPModel_NonInteracting::MSPModel_NonInteracting ( const OptionsCont oc,
MSNet net 
)

Constructor (it should not be necessary to construct more than one instance)

Definition at line 63 of file MSPModel_NonInteracting.cpp.

References myNet, and UNUSED_PARAMETER.

MSPModel_NonInteracting::~MSPModel_NonInteracting ( )

Definition at line 70 of file MSPModel_NonInteracting.cpp.

Member Function Documentation

PedestrianState * MSPModel_NonInteracting::add ( MSPerson person,
MSPerson::MSPersonStage_Walking stage,
SUMOTime  now 
)
virtual
bool MSPModel_NonInteracting::blockedAtDist ( const MSLane lane,
SUMOReal  distToCrossing,
std::vector< const MSPerson * > *  collectBlockers 
)
virtual

whether a pedestrian is blocking the crossing of lane at offset distToCrossing

Implements MSPModel.

Definition at line 87 of file MSPModel_NonInteracting.cpp.

bool MSPModel::canTraverse ( int  dir,
const ConstMSEdgeVector route 
)
staticinherited

return whether the route may traversed with the given starting direction

Definition at line 109 of file MSPModel.cpp.

References MSPModel::BACKWARD, MSPModel::FORWARD, MSEdge::getFromJunction(), and MSEdge::getToJunction().

Referenced by MSPModel_Striping::PState::PState().

void MSPModel::cleanup ( )
staticinherited

remove state at simulation end

Definition at line 83 of file MSPModel.cpp.

References MSPModel::cleanupHelper(), and MSPModel::myModel.

Referenced by MSNet::clearAll().

virtual void MSPModel::cleanupHelper ( )
inlinevirtualinherited

Reimplemented in MSPModel_Striping.

Definition at line 73 of file MSPModel.h.

Referenced by MSPModel::cleanup().

MSPModel * MSPModel::getModel ( )
staticinherited
MSLane * MSPModel::getSidewalk ( const MSEdge edge)
staticinherited

Field Documentation

MSNet* MSPModel_NonInteracting::myNet
private

the net to which to issue moveToNextEdge commands

Definition at line 113 of file MSPModel_NonInteracting.h.

Referenced by add(), and MSPModel_NonInteracting().

const SUMOReal MSPModel::SAFETY_GAP
staticinherited

Definition at line 81 of file MSPModel.h.

Referenced by MSPModel_Striping::blockedAtDist().

const SUMOReal MSPModel::SIDEWALK_OFFSET
staticinherited

the offset for computing person positions when walking on edges without a sidewalk

Definition at line 84 of file MSPModel.h.

Referenced by MSPModel_NonInteracting::PState::getPosition(), MSPerson::MSPersonStage_Driving::getPosition(), MSPerson::MSPersonStage_Waiting::getPosition(), and GUINet::initGUIStructures().


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