SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSPerson::MSPersonStage_Walking Class Reference

#include <MSPerson.h>

Inheritance diagram for MSPerson::MSPersonStage_Walking:
MSPerson::MSPersonStage

Public Member Functions

const MSEdgegetDestination () const
 returns the destination edge
virtual bool isWaitingFor (const std::string &line) const
 Whether the person waits for a vehicle of the line specified.
 MSPersonStage_Walking (MSEdgeVector route, SUMOTime walkingTime, SUMOReal speed)
 constructor
virtual void proceed (MSNet *net, MSPerson *person, SUMOTime now, const MSEdge &previousEdge)
 proceeds to the next step
void setArrived (SUMOTime now)
 logs end of the step
void setDeparted (SUMOTime now)
 logs end of the step
virtual void tripInfoOutput (OutputDevice &os) const
 Called on writing tripinfo output.
 ~MSPersonStage_Walking ()
 destructor

Protected Attributes

SUMOTime myArrived
 the time at which this stage ended
SUMOTime myDeparted
 the time at which this stage started
const MSEdgemyDestination
 the next edge to reach (either by walking or driving)

Private Member Functions

 MSPersonStage_Walking (const MSPersonStage_Walking &)
 Invalidated copy constructor.
MSPersonStage_Walkingoperator= (const MSPersonStage_Walking &)
 Invalidated assignment operator.

Private Attributes

SUMOTime myWalkingTime
 the time the person is walking

Detailed Description

A "real" stage performing the walking to an edge The walking does not need any route as it is not simulated. Only the duration is needed

Definition at line 121 of file MSPerson.h.


Constructor & Destructor Documentation

MSPerson::MSPersonStage_Walking::MSPersonStage_Walking ( MSEdgeVector  route,
SUMOTime  walkingTime,
SUMOReal  speed 
)

constructor

Definition at line 91 of file MSPerson.cpp.

References MAX2(), myWalkingTime, SUMOReal, and TIME2STEPS.

MSPerson::MSPersonStage_Walking::~MSPersonStage_Walking ( )

destructor

Definition at line 103 of file MSPerson.cpp.

MSPerson::MSPersonStage_Walking::MSPersonStage_Walking ( const MSPersonStage_Walking )
private

Invalidated copy constructor.


Member Function Documentation

const MSEdge & MSPerson::MSPersonStage::getDestination ( ) const
inherited

returns the destination edge

Definition at line 64 of file MSPerson.cpp.

bool MSPerson::MSPersonStage::isWaitingFor ( const std::string &  line) const
virtualinherited

Whether the person waits for a vehicle of the line specified.

Reimplemented in MSPerson::MSPersonStage_Driving.

Definition at line 84 of file MSPerson.cpp.

MSPersonStage_Walking& MSPerson::MSPersonStage_Walking::operator= ( const MSPersonStage_Walking )
private

Invalidated assignment operator.

void MSPerson::MSPersonStage_Walking::proceed ( MSNet net,
MSPerson person,
SUMOTime  now,
const MSEdge previousEdge 
)
virtual

proceeds to the next step

Implements MSPerson::MSPersonStage.

Definition at line 107 of file MSPerson.cpp.

References MSNet::getPersonControl(), MAX2(), and MSPersonControl::setArrival().

void MSPerson::MSPersonStage::setArrived ( SUMOTime  now)
inherited

logs end of the step

Definition at line 78 of file MSPerson.cpp.

void MSPerson::MSPersonStage::setDeparted ( SUMOTime  now)
inherited

logs end of the step

Definition at line 70 of file MSPerson.cpp.

void MSPerson::MSPersonStage_Walking::tripInfoOutput ( OutputDevice os) const
virtual

Called on writing tripinfo output.

Parameters:
[in]osThe stream to write the information into
Exceptions:
IOErrornot yet implemented

Implements MSPerson::MSPersonStage.

Definition at line 115 of file MSPerson.cpp.

References OutputDevice::openTag(), and time2string().


Field Documentation

SUMOTime MSPerson::MSPersonStage::myArrived
protectedinherited

the time at which this stage ended

Definition at line 105 of file MSPerson.h.

SUMOTime MSPerson::MSPersonStage::myDeparted
protectedinherited

the time at which this stage started

Definition at line 102 of file MSPerson.h.

const MSEdge& MSPerson::MSPersonStage::myDestination
protectedinherited

the next edge to reach (either by walking or driving)

Definition at line 99 of file MSPerson.h.

SUMOTime MSPerson::MSPersonStage_Walking::myWalkingTime
private

the time the person is walking

Definition at line 141 of file MSPerson.h.

Referenced by MSPersonStage_Walking().


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