![]() |
Eclipse SUMO - Simulation of Urban MObility
|
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... | |
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... | |
Manoeuvre & | operator= (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... | |
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.
MSVehicle::Manoeuvre::Manoeuvre | ( | ) |
Constructor.
Definition at line 6233 of file MSVehicle.cpp.
MSVehicle::Manoeuvre::Manoeuvre | ( | const Manoeuvre & | manoeuvre | ) |
Copy constructor.
Definition at line 6235 of file MSVehicle.cpp.
References myManoeuvreAngle, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.
bool MSVehicle::Manoeuvre::configureEntryManoeuvre | ( | MSVehicle * | veh | ) |
Setup the entry manoeuvre for this vehicle (Sets completion time and manoeuvre type)
Definition at line 6291 of file MSVehicle.cpp.
References MSNet::getCurrentTimeStep(), MSVehicleType::getEntryManoeuvreTime(), MSBaseVehicle::getID(), Named::getID(), MSNet::getInstance(), MSParkingArea::getLastFreeLotAngle(), MSVehicle::getMyStops(), MSVehicle::hasStops(), MSBaseVehicle::isSelected(), MSVehicle::MANOEUVRE_ENTRY, MSBaseVehicle::myType, and MSVehicle::Stop::parkingarea.
bool MSVehicle::Manoeuvre::configureExitManoeuvre | ( | MSVehicle * | veh | ) |
Setup the myManoeuvre for exiting (Sets completion time and manoeuvre type)
Definition at line 6316 of file MSVehicle.cpp.
References MSVehicle::getCurrentParkingArea(), MSNet::getCurrentTimeStep(), MSVehicleType::getExitManoeuvreTime(), MSBaseVehicle::getID(), Named::getID(), MSNet::getInstance(), MSVehicle::getNextStop(), MSVehicle::hasStops(), MSBaseVehicle::isSelected(), MSVehicle::MANOEUVRE_EXIT, MSVehicle::MANOEUVRE_NONE, MSBaseVehicle::myType, MSVehicle::Stop::parkingarea, and MSVehicle::remainingStopDuration().
Referenced by MSVehicle::setExitManoeuvre().
bool MSVehicle::Manoeuvre::entryManoeuvreIsComplete | ( | MSVehicle * | veh | ) |
Configure an entry manoeuvre if nothing is configured - otherwise check if complete.
Definition at line 6351 of file MSVehicle.cpp.
References Named::getID(), MSNet::getInstance(), MSParkingArea::getLastFreeLotAngle(), MSVehicle::hasStops(), MSNet::informVehicleStateListener(), MSVehicle::MANOEUVRE_ENTRY, MSVehicle::MANOEUVRE_NONE, MSVehicle::myStops, MSVehicle::Stop::parkingarea, and MSNet::VEHICLE_STATE_MANEUVERING.
Referenced by MSVehicle::processNextStop().
int MSVehicle::Manoeuvre::getManoeuvreAngle | ( | ) | const |
Accessor for manoeuvre angle.
Definition at line 6264 of file MSVehicle.cpp.
MSVehicle::ManoeuvreType MSVehicle::Manoeuvre::getManoeuvreType | ( | ) | const |
Accessor (get) for manoeuvre type.
Definition at line 6269 of file MSVehicle.cpp.
Referenced by MSVehicle::getManoeuvreType().
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().
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().
bool MSVehicle::Manoeuvre::operator!= | ( | const Manoeuvre & | manoeuvre | ) |
Operator !=.
Definition at line 6254 of file MSVehicle.cpp.
References myManoeuvreAngle, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.
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.
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().
|
private |
Definition at line 1437 of file MSVehicle.h.
Referenced by Manoeuvre(), operator!=(), and operator=().
|
private |
Time at which this manoeuvre should complete.
Definition at line 1431 of file MSVehicle.h.
Referenced by Manoeuvre(), operator!=(), and operator=().
|
private |
Time at which the Manoeuvre for this stop started.
Definition at line 1428 of file MSVehicle.h.
Referenced by Manoeuvre(), operator!=(), and operator=().
|
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=().
|
private |
Manoeuvre type - currently entry, exit or none.
Definition at line 1434 of file MSVehicle.h.
Referenced by Manoeuvre(), operator!=(), and operator=().
|
private |
The name of the vehicle associated with the Manoeuvre - for debug output.
Definition at line 1422 of file MSVehicle.h.