Eclipse SUMO - Simulation of Urban MObility
MSVehicle::Manoeuvre Class Reference

Container for manouevering time associated with stopping. More...

#include <MSVehicle.h>

Public Member Functions

bool configureEntryManoeuvre (MSVehicle *veh)
 Setup the entry manoeuvre for this vehicle (Sets completion time and manoeuvre type) More...
 
bool configureExitManoeuvre (MSVehicle *veh)
 Setup the myManoeuvre for exiting (Sets completion time and manoeuvre type) More...
 
bool entryManoeuvreIsComplete (MSVehicle *veh)
 Configure an entry manoeuvre if nothing is configured - otherwise check if complete. More...
 
double getGUIIncrement () const
 Accessor for GUI rotation step when parking (radians) More...
 
MSVehicle::ManoeuvreType getManoeuvreType () const
 Accessor (get) for manoeuvre type. More...
 
 Manoeuvre ()
 Constructor. More...
 
 Manoeuvre (const Manoeuvre &manoeuvre)
 Copy constructor. More...
 
bool manoeuvreIsComplete () const
 Check if any manoeuver is ongoing and whether the completion time is beyond currentTime. More...
 
bool manoeuvreIsComplete (const ManoeuvreType checkType) const
 Check if specific manoeuver is ongoing and whether the completion time is beyond currentTime. More...
 
bool operator!= (const Manoeuvre &manoeuvre)
 Operator !=. More...
 
Manoeuvreoperator= (const Manoeuvre &manoeuvre)
 Assignment operator. More...
 
void setManoeuvreType (const MSVehicle::ManoeuvreType mType)
 Accessor (set) for manoeuvre type. More...
 

Private Attributes

double myGUIIncrement
 
SUMOTime myManoeuvreCompleteTime
 Time at which this manoeuvre should complete. More...
 
SUMOTime myManoeuvreStartTime
 Time at which the Manoeuvre for this stop started. More...
 
std::string myManoeuvreStop
 The name of the stop associated with the Manoeuvre - for debug output. More...
 
ManoeuvreType myManoeuvreType
 Manoeuvre type - currently entry, exit or none. More...
 
std::string myManoeuvreVehicleID
 The name of the vehicle associated with the Manoeuvre - for debug output. More...
 

Detailed Description

Container for manouevering time associated with stopping.

Introduced to cater for lane blocking whilst entering stop/leaving stop and assure that emissions during manoeuvre are included in model

Definition at line 1276 of file MSVehicle.h.

Constructor & Destructor Documentation

◆ Manoeuvre() [1/2]

MSVehicle::Manoeuvre::Manoeuvre ( )

Constructor.

Definition at line 7637 of file MSVehicle.cpp.

◆ Manoeuvre() [2/2]

MSVehicle::Manoeuvre::Manoeuvre ( const Manoeuvre manoeuvre)

Copy constructor.

Definition at line 7640 of file MSVehicle.cpp.

References myGUIIncrement, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.

Member Function Documentation

◆ configureEntryManoeuvre()

◆ configureExitManoeuvre()

bool MSVehicle::Manoeuvre::configureExitManoeuvre ( MSVehicle veh)

Setup the myManoeuvre for exiting (Sets completion time and manoeuvre type)

Definition at line 7734 of file MSVehicle.cpp.

References MSBaseVehicle::getCurrentParkingArea(), MSNet::getCurrentTimeStep(), MSVehicleType::getExitManoeuvreTime(), MSParkingArea::getGUIAngle(), Named::getID(), MSNet::getInstance(), MSParkingArea::getManoeuverAngle(), MSBaseVehicle::getNextStop(), MSBaseVehicle::hasStops(), MSBaseVehicle::isSelected(), MSVehicle::MANOEUVRE_EXIT, MSVehicle::MANOEUVRE_NONE, MSBaseVehicle::myType, MSStop::parkingarea, RAD2DEG, MSVehicle::remainingStopDuration(), STEPS2TIME, and TS.

Referenced by MSVehicle::setExitManoeuvre().

Here is the caller graph for this function:

◆ entryManoeuvreIsComplete()

bool MSVehicle::Manoeuvre::entryManoeuvreIsComplete ( MSVehicle veh)

Configure an entry manoeuvre if nothing is configured - otherwise check if complete.

Definition at line 7777 of file MSVehicle.cpp.

References Named::getID(), MSNet::getInstance(), MSBaseVehicle::hasStops(), MSNet::informVehicleStateListener(), MSNet::MANEUVERING, MSVehicle::MANOEUVRE_ENTRY, MSVehicle::MANOEUVRE_NONE, MSBaseVehicle::myStops, and MSStop::parkingarea.

Referenced by MSVehicle::processNextStop().

Here is the caller graph for this function:

◆ getGUIIncrement()

double MSVehicle::Manoeuvre::getGUIIncrement ( ) const

Accessor for GUI rotation step when parking (radians)

Definition at line 7672 of file MSVehicle.cpp.

Referenced by MSVehicle::computeAngle().

Here is the caller graph for this function:

◆ getManoeuvreType()

MSVehicle::ManoeuvreType MSVehicle::Manoeuvre::getManoeuvreType ( ) const

Accessor (get) for manoeuvre type.

Definition at line 7678 of file MSVehicle.cpp.

Referenced by MSVehicle::getManoeuvreType().

Here is the caller graph for this function:

◆ manoeuvreIsComplete() [1/2]

bool MSVehicle::Manoeuvre::manoeuvreIsComplete ( ) const

Check if any manoeuver is ongoing and whether the completion time is beyond currentTime.

Definition at line 7816 of file MSVehicle.cpp.

References MSNet::getInstance().

◆ manoeuvreIsComplete() [2/2]

bool MSVehicle::Manoeuvre::manoeuvreIsComplete ( const ManoeuvreType  checkType) const

Check if specific manoeuver is ongoing and whether the completion time is beyond currentTime.

Definition at line 7802 of file MSVehicle.cpp.

References MSNet::getInstance().

Referenced by MSVehicle::manoeuvreIsComplete().

Here is the caller graph for this function:

◆ operator!=()

bool MSVehicle::Manoeuvre::operator!= ( const Manoeuvre manoeuvre)

◆ operator=()

MSVehicle::Manoeuvre & MSVehicle::Manoeuvre::operator= ( const Manoeuvre manoeuvre)

Assignment operator.

Definition at line 7650 of file MSVehicle.cpp.

References myGUIIncrement, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.

◆ setManoeuvreType()

void MSVehicle::Manoeuvre::setManoeuvreType ( const MSVehicle::ManoeuvreType  mType)

Accessor (set) for manoeuvre type.

Definition at line 7696 of file MSVehicle.cpp.

Referenced by MSVehicle::setManoeuvreType().

Here is the caller graph for this function:

Field Documentation

◆ myGUIIncrement

double MSVehicle::Manoeuvre::myGUIIncrement
private

Definition at line 1334 of file MSVehicle.h.

Referenced by Manoeuvre(), operator!=(), and operator=().

◆ myManoeuvreCompleteTime

SUMOTime MSVehicle::Manoeuvre::myManoeuvreCompleteTime
private

Time at which this manoeuvre should complete.

Definition at line 1328 of file MSVehicle.h.

Referenced by Manoeuvre(), operator!=(), and operator=().

◆ myManoeuvreStartTime

SUMOTime MSVehicle::Manoeuvre::myManoeuvreStartTime
private

Time at which the Manoeuvre for this stop started.

Definition at line 1325 of file MSVehicle.h.

Referenced by Manoeuvre(), operator!=(), and operator=().

◆ myManoeuvreStop

std::string MSVehicle::Manoeuvre::myManoeuvreStop
private

The name of the stop associated with the Manoeuvre - for debug output.

Definition at line 1322 of file MSVehicle.h.

Referenced by Manoeuvre(), operator!=(), and operator=().

◆ myManoeuvreType

ManoeuvreType MSVehicle::Manoeuvre::myManoeuvreType
private

Manoeuvre type - currently entry, exit or none.

Definition at line 1331 of file MSVehicle.h.

Referenced by Manoeuvre(), operator!=(), and operator=().

◆ myManoeuvreVehicleID

std::string MSVehicle::Manoeuvre::myManoeuvreVehicleID
private

The name of the vehicle associated with the Manoeuvre - for debug output.

Definition at line 1319 of file MSVehicle.h.


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