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

Constructor & Destructor Documentation

◆ Manoeuvre() [1/2]

MSVehicle::Manoeuvre::Manoeuvre ( )

Constructor.

Definition at line 7835 of file MSVehicle.cpp.

References MSVehicle::MANOEUVRE_NONE, MSVehicle::MSVehicle(), myGUIIncrement, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.

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

Here is the caller graph for this function:

◆ Manoeuvre() [2/2]

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

Member Function Documentation

◆ configureEntryManoeuvre()

bool MSVehicle::Manoeuvre::configureEntryManoeuvre ( MSVehicle * veh)

◆ configureExitManoeuvre()

◆ entryManoeuvreIsComplete()

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

◆ getGUIIncrement()

double MSVehicle::Manoeuvre::getGUIIncrement ( ) const

Accessor for GUI rotation step when parking (radians).

Definition at line 7870 of file MSVehicle.cpp.

References myGUIIncrement.

◆ getManoeuvreType()

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

Accessor (get) for manoeuvre type.

Definition at line 7876 of file MSVehicle.cpp.

References myManoeuvreType.

◆ 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 8014 of file MSVehicle.cpp.

References MSNet::getInstance(), and myManoeuvreCompleteTime.

◆ 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 8000 of file MSVehicle.cpp.

References MSNet::getInstance(), myManoeuvreCompleteTime, and myManoeuvreType.

◆ operator!=()

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

◆ operator=()

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

Assignment operator.

Definition at line 7848 of file MSVehicle.cpp.

References Manoeuvre(), myGUIIncrement, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.

◆ setManoeuvreType()

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

Accessor (set) for manoeuvre type.

Definition at line 7894 of file MSVehicle.cpp.

References myManoeuvreType.

Field Documentation

◆ myGUIIncrement

double MSVehicle::Manoeuvre::myGUIIncrement
private

◆ myManoeuvreCompleteTime

SUMOTime MSVehicle::Manoeuvre::myManoeuvreCompleteTime
private

◆ myManoeuvreStartTime

SUMOTime MSVehicle::Manoeuvre::myManoeuvreStartTime
private

Time at which the Manoeuvre for this stop started.

Definition at line 1322 of file MSVehicle.h.

Referenced by configureEntryManoeuvre(), configureExitManoeuvre(), Manoeuvre(), 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 1319 of file MSVehicle.h.

Referenced by configureEntryManoeuvre(), configureExitManoeuvre(), entryManoeuvreIsComplete(), Manoeuvre(), Manoeuvre(), operator!=(), and operator=().

◆ myManoeuvreType

ManoeuvreType MSVehicle::Manoeuvre::myManoeuvreType
private

◆ myManoeuvreVehicleID

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

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

Definition at line 1316 of file MSVehicle.h.

Referenced by configureEntryManoeuvre(), and configureExitManoeuvre().


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