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

#include <MSPerson.h>

Inheritance diagram for MSPerson::MSPersonStage:
MSPerson::MSPersonStage_Driving MSPerson::MSPersonStage_Waiting MSPerson::MSPersonStage_Walking

Public Member Functions

const MSEdge & getDestination () 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 (const MSEdge &destination)
 constructor
virtual void proceed (MSNet *net, MSPerson *person, SUMOTime now, const MSEdge &previousEdge)=0
 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 =0
 Called on writing tripinfo output.
virtual ~MSPersonStage ()
 destructor

Protected Attributes

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

Private Member Functions

 MSPersonStage (const MSPersonStage &)
 Invalidated copy constructor.
MSPersonStage & operator= (const MSPersonStage &)
 Invalidated assignment operator.

Detailed Description

The "abstract" class for a single stage of a persons movement Contains the destination of the current movement step

Definition at line 66 of file MSPerson.h.


Constructor & Destructor Documentation

MSPerson::MSPersonStage::MSPersonStage ( const MSEdge &  destination)

constructor

Definition at line 56 of file MSPerson.cpp.

MSPerson::MSPersonStage::~MSPersonStage ( )
virtual

destructor

Definition at line 60 of file MSPerson.cpp.

MSPerson::MSPersonStage::MSPersonStage ( const MSPersonStage &  )
private

Invalidated copy constructor.


Member Function Documentation

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

returns the destination edge

Definition at line 64 of file MSPerson.cpp.

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

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& MSPerson::MSPersonStage::operator= ( const MSPersonStage &  )
private

Invalidated assignment operator.

virtual void MSPerson::MSPersonStage::proceed ( MSNet *  net,
MSPerson *  person,
SUMOTime  now,
const MSEdge &  previousEdge 
)
pure virtual
void MSPerson::MSPersonStage::setArrived ( SUMOTime  now)

logs end of the step

Definition at line 78 of file MSPerson.cpp.

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

logs end of the step

Definition at line 70 of file MSPerson.cpp.

virtual void MSPerson::MSPersonStage::tripInfoOutput ( OutputDevice &  os) const
pure virtual

Called on writing tripinfo output.

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

Implemented in MSPerson::MSPersonStage_Waiting, MSPerson::MSPersonStage_Driving, and MSPerson::MSPersonStage_Walking.


Field Documentation

SUMOTime MSPerson::MSPersonStage::myArrived
protected

the time at which this stage ended

Definition at line 105 of file MSPerson.h.

SUMOTime MSPerson::MSPersonStage::myDeparted
protected

the time at which this stage started

Definition at line 102 of file MSPerson.h.

const MSEdge& MSPerson::MSPersonStage::myDestination
protected

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

Definition at line 99 of file MSPerson.h.


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