Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MSPModel_Striping::MovePedestrians Class Reference

#include <MSPModel_Striping.h>

Inheritance diagram for MSPModel_Striping::MovePedestrians:
[legend]
Collaboration diagram for MSPModel_Striping::MovePedestrians:
[legend]

Public Member Functions

SUMOTime execute (SUMOTime currentTime)
 Executes the command.
 
 MovePedestrians (MSPModel_Striping *model)
 
virtual SUMOTime shiftTime (SUMOTime, SUMOTime, SUMOTime)
 Reschedule or deschedule the command when quick-loading state.
 
 ~MovePedestrians ()
 

Data Fields

int priority = 0
 

Private Member Functions

MovePedestriansoperator= (const MovePedestrians &)=delete
 Invalidated assignment operator.
 

Private Attributes

MSPModel_Striping *const myModel
 

Detailed Description

Definition at line 383 of file MSPModel_Striping.h.

Constructor & Destructor Documentation

◆ MovePedestrians()

MSPModel_Striping::MovePedestrians::MovePedestrians ( MSPModel_Striping model)
inline

Definition at line 385 of file MSPModel_Striping.h.

◆ ~MovePedestrians()

MSPModel_Striping::MovePedestrians::~MovePedestrians ( )
inline

Definition at line 386 of file MSPModel_Striping.h.

Member Function Documentation

◆ execute()

SUMOTime MSPModel_Striping::MovePedestrians::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 2560 of file MSPModel_Striping.cpp.

References MSPModel::BACKWARD, DELTA_T, MSPModel::FORWARD, MSPModel_InteractingState::getDirection(), Named::getID(), MSPModel_InteractingState::getPerson(), MSPModel_InteractingState::myEdgePos, MSPModel_InteractingState::myPosLat, and SIMTIME.

◆ operator=()

MovePedestrians & MSPModel_Striping::MovePedestrians::operator= ( const MovePedestrians )
privatedelete

Invalidated assignment operator.

◆ shiftTime()

virtual SUMOTime Command::shiftTime ( SUMOTime  ,
SUMOTime  ,
SUMOTime   
)
inlinevirtualinherited

Reschedule or deschedule the command when quick-loading state.

The implementations should return -1 if the command shall not be re-scheduled, or a value >= 0 that describe the new time at which the command shall be executed again.

Parameters
[in]currentTimeThe current simulation time
[in]execTimeThe time at which the command would have been executed
[in]newTimeThe simulation time at which the simulation is restarted
Returns
The time at which the command shall be executed again

Reimplemented in MSTrafficLightLogic::SwitchCommand, and MSCalibrator::CalibratorCommand.

Definition at line 83 of file Command.h.

Field Documentation

◆ myModel

MSPModel_Striping* const MSPModel_Striping::MovePedestrians::myModel
private

Definition at line 389 of file MSPModel_Striping.h.

◆ priority

int Command::priority = 0
inherited

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