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

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

#include <MSVehicle.h>

Collaboration diagram for MSVehicle::Manoeuvre:

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...
 
int getManoeuvreAngle () const
 Accessor for manoeuvre angle. 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

int myManoeuvreAngle
 
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 1379 of file MSVehicle.h.

Constructor & Destructor Documentation

◆ Manoeuvre() [1/2]

MSVehicle::Manoeuvre::Manoeuvre ( )

Constructor.

Definition at line 6233 of file MSVehicle.cpp.

◆ Manoeuvre() [2/2]

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

Copy constructor.

Definition at line 6235 of file MSVehicle.cpp.

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

Member Function Documentation

◆ configureEntryManoeuvre()

◆ configureExitManoeuvre()

◆ entryManoeuvreIsComplete()

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

◆ getManoeuvreAngle()

int MSVehicle::Manoeuvre::getManoeuvreAngle ( ) const

Accessor for manoeuvre angle.

Definition at line 6264 of file MSVehicle.cpp.

◆ getManoeuvreType()

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

Accessor (get) for manoeuvre type.

Definition at line 6269 of file MSVehicle.cpp.

Referenced by MSVehicle::getManoeuvreType().

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

References MSNet::getInstance().

Referenced by MSVehicle::manoeuvreIsComplete().

◆ operator!=()

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

◆ operator=()

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

Assignment operator.

Definition at line 6244 of file MSVehicle.cpp.

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

◆ setManoeuvreType()

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

Accessor (set) for manoeuvre type.

Definition at line 6285 of file MSVehicle.cpp.

Referenced by MSVehicle::setManoeuvreType().

Field Documentation

◆ myManoeuvreAngle

int MSVehicle::Manoeuvre::myManoeuvreAngle
private

Definition at line 1437 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 1431 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 1428 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 1425 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 1434 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 1422 of file MSVehicle.h.


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