Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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)
 
bool configureExitManoeuvre (MSVehicle *veh)
 Setup the myManoeuvre for exiting (Sets completion time and manoeuvre type)
 
bool entryManoeuvreIsComplete (MSVehicle *veh)
 Configure an entry manoeuvre if nothing is configured - otherwise check if complete.
 
double getGUIIncrement () const
 Accessor for GUI rotation step when parking (radians)
 
MSVehicle::ManoeuvreType getManoeuvreType () const
 Accessor (get) for manoeuvre type.
 
 Manoeuvre ()
 Constructor.
 
 Manoeuvre (const Manoeuvre &manoeuvre)
 Copy constructor.
 
bool manoeuvreIsComplete () const
 Check if any manoeuver is ongoing and whether the completion time is beyond currentTime.
 
bool manoeuvreIsComplete (const ManoeuvreType checkType) const
 Check if specific manoeuver is ongoing and whether the completion time is beyond currentTime.
 
bool operator!= (const Manoeuvre &manoeuvre)
 Operator !=.
 
Manoeuvreoperator= (const Manoeuvre &manoeuvre)
 Assignment operator.
 
void setManoeuvreType (const MSVehicle::ManoeuvreType mType)
 Accessor (set) for manoeuvre type.
 

Private Attributes

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

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 1268 of file MSVehicle.h.

Constructor & Destructor Documentation

◆ Manoeuvre() [1/2]

MSVehicle::Manoeuvre::Manoeuvre ( )

Constructor.

Definition at line 7741 of file MSVehicle.cpp.

◆ Manoeuvre() [2/2]

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

Copy constructor.

Definition at line 7744 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 7838 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 7881 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 7776 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 7782 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 7920 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 7906 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 7754 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 7800 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 1326 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 1320 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 1317 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 1314 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 1323 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 1311 of file MSVehicle.h.


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