Eclipse SUMO - Simulation of Urban MObility
MSPerson::MSPersonStage_Access::ProceedCmd Class Reference
Inheritance diagram for MSPerson::MSPersonStage_Access::ProceedCmd:
Collaboration diagram for MSPerson::MSPersonStage_Access::ProceedCmd:

Public Member Functions

SUMOTime execute (SUMOTime currentTime)
 Executes the command. More...
 
 ProceedCmd (MSTransportable *person, MSEdge *edge)
 
 ~ProceedCmd ()
 

Private Member Functions

ProceedCmdoperator= (const ProceedCmd &)
 Invalidated assignment operator. More...
 

Private Attributes

MSTransportable *const myPerson
 
MSEdgemyStopEdge
 

Detailed Description

Definition at line 331 of file MSPerson.h.

Constructor & Destructor Documentation

◆ ProceedCmd()

MSPerson::MSPersonStage_Access::ProceedCmd::ProceedCmd ( MSTransportable person,
MSEdge edge 
)
inline

Definition at line 333 of file MSPerson.h.

◆ ~ProceedCmd()

MSPerson::MSPersonStage_Access::ProceedCmd::~ProceedCmd ( )
inline

Definition at line 334 of file MSPerson.h.

Member Function Documentation

◆ execute()

SUMOTime MSPerson::MSPersonStage_Access::ProceedCmd::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 580 of file MSPerson.cpp.

References MSTransportableControl::erase(), MSNet::getInstance(), and MSNet::getPersonControl().

◆ operator=()

ProceedCmd& MSPerson::MSPersonStage_Access::ProceedCmd::operator= ( const ProceedCmd )
private

Invalidated assignment operator.

Field Documentation

◆ myPerson

MSTransportable* const MSPerson::MSPersonStage_Access::ProceedCmd::myPerson
private

Definition at line 337 of file MSPerson.h.

◆ myStopEdge

MSEdge* MSPerson::MSPersonStage_Access::ProceedCmd::myStopEdge
private

Definition at line 338 of file MSPerson.h.


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