![]() |
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) | |
| 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 !=. | |
| Manoeuvre & | operator= (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. | |
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.
| MSVehicle::Manoeuvre::Manoeuvre | ( | ) |
Constructor.
Definition at line 7833 of file MSVehicle.cpp.
| MSVehicle::Manoeuvre::Manoeuvre | ( | const Manoeuvre & | manoeuvre | ) |
Copy constructor.
Definition at line 7836 of file MSVehicle.cpp.
References myGUIIncrement, 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 7898 of file MSVehicle.cpp.
References MSVehicle::getAngle(), MSNet::getCurrentTimeStep(), MSVehicleType::getEntryManoeuvreTime(), Named::getID(), MSNet::getInstance(), MSParkingArea::getLastFreeLotAngle(), MSParkingArea::getLastFreeLotGUIAngle(), MSBaseVehicle::getNextStop(), MSBaseVehicle::hasStops(), MSBaseVehicle::isSelected(), MSVehicle::MANOEUVRE_ENTRY, MSBaseVehicle::myType, MSStop::parkingarea, RAD2DEG, STEPS2TIME, and TS.
| bool MSVehicle::Manoeuvre::configureExitManoeuvre | ( | MSVehicle * | veh | ) |
Setup the myManoeuvre for exiting (Sets completion time and manoeuvre type)
Definition at line 7930 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().
| bool MSVehicle::Manoeuvre::entryManoeuvreIsComplete | ( | MSVehicle * | veh | ) |
Configure an entry manoeuvre if nothing is configured - otherwise check if complete.
Definition at line 7973 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().
| double MSVehicle::Manoeuvre::getGUIIncrement | ( | ) | const |
Accessor for GUI rotation step when parking (radians)
Definition at line 7868 of file MSVehicle.cpp.
Referenced by MSVehicle::computeAngle().
| MSVehicle::ManoeuvreType MSVehicle::Manoeuvre::getManoeuvreType | ( | ) | const |
Accessor (get) for manoeuvre type.
Definition at line 7874 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 8012 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 7998 of file MSVehicle.cpp.
References MSNet::getInstance().
Referenced by MSVehicle::manoeuvreIsComplete().
| bool MSVehicle::Manoeuvre::operator!= | ( | const Manoeuvre & | manoeuvre | ) |
Operator !=.
Definition at line 7857 of file MSVehicle.cpp.
References myGUIIncrement, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.
| MSVehicle::Manoeuvre & MSVehicle::Manoeuvre::operator= | ( | const Manoeuvre & | manoeuvre | ) |
Assignment operator.
Definition at line 7846 of file MSVehicle.cpp.
References myGUIIncrement, myManoeuvreCompleteTime, myManoeuvreStartTime, myManoeuvreStop, and myManoeuvreType.
| void MSVehicle::Manoeuvre::setManoeuvreType | ( | const MSVehicle::ManoeuvreType | mType | ) |
Accessor (set) for manoeuvre type.
Definition at line 7892 of file MSVehicle.cpp.
Referenced by MSVehicle::setManoeuvreType().
|
private |
Definition at line 1331 of file MSVehicle.h.
Referenced by Manoeuvre(), operator!=(), and operator=().
|
private |
Time at which this manoeuvre should complete.
Definition at line 1325 of file MSVehicle.h.
Referenced by Manoeuvre(), operator!=(), and operator=().
|
private |
Time at which the Manoeuvre for this stop started.
Definition at line 1322 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 1319 of file MSVehicle.h.
Referenced by Manoeuvre(), operator!=(), and operator=().
|
private |
Manoeuvre type - currently entry, exit or none.
Definition at line 1328 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 1316 of file MSVehicle.h.