SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MSPModel_NonInteracting::MoveToNextEdge Class Reference
Inheritance diagram for MSPModel_NonInteracting::MoveToNextEdge:
Command

Public Member Functions

SUMOTime execute (SUMOTime currentTime)
 Executes the command. More...
 
 MoveToNextEdge (MSPerson *person, MSPerson::MSPersonStage_Walking &walk)
 
 ~MoveToNextEdge ()
 

Private Member Functions

MoveToNextEdgeoperator= (const MoveToNextEdge &)
 Invalidated assignment operator. More...
 

Private Attributes

MSPerson::MSPersonStage_WalkingmyParent
 
MSPersonmyPerson
 

Detailed Description

Definition at line 71 of file MSPModel_NonInteracting.h.

Constructor & Destructor Documentation

MSPModel_NonInteracting::MoveToNextEdge::MoveToNextEdge ( MSPerson person,
MSPerson::MSPersonStage_Walking walk 
)
inline

Definition at line 73 of file MSPModel_NonInteracting.h.

MSPModel_NonInteracting::MoveToNextEdge::~MoveToNextEdge ( )
inline

Definition at line 74 of file MSPModel_NonInteracting.h.

Member Function Documentation

SUMOTime MSPModel_NonInteracting::MoveToNextEdge::execute ( SUMOTime  currentTime)
virtual

Executes the command.

The implementations should return 0 if the command shall not be repeated, or a value larger than 0 that describe the time after which the command shall be executed again. Values below 0 must not be returned.

Parameters
[in]currentTimeThe current simulation time
Returns
The time after which the command shall be executed again, 0 if this command shall be descheduled.
Exceptions
ProcessErrorDerived actions may throw this exception

Implements Command.

Definition at line 93 of file MSPModel_NonInteracting.cpp.

References MSPModel_NonInteracting::PState::computeWalkingTime(), MSPerson::MSPersonStage_Walking::getEdge(), MSPerson::MSPersonStage_Walking::getPedestrianState(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), myParent, and myPerson.

MoveToNextEdge& MSPModel_NonInteracting::MoveToNextEdge::operator= ( const MoveToNextEdge )
private

Invalidated assignment operator.

Field Documentation

MSPerson::MSPersonStage_Walking& MSPModel_NonInteracting::MoveToNextEdge::myParent
private

Definition at line 78 of file MSPModel_NonInteracting.h.

Referenced by execute().

MSPerson* MSPModel_NonInteracting::MoveToNextEdge::myPerson
private

Definition at line 79 of file MSPModel_NonInteracting.h.

Referenced by execute().


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