SUMO - Simulation of Urban MObility
|
Container that holds the vehicles driving state (position+speed). More...
#include <MSVehicle.h>
Public Member Functions | |
bool | operator!= (const State &state) |
Operator !=. | |
State & | operator= (const State &state) |
Assignment operator. | |
SUMOReal | pos () const |
Position of this state. | |
SUMOReal | speed () const |
Speed of this state. | |
State (SUMOReal pos, SUMOReal speed) | |
Constructor. | |
State (const State &state) | |
Copy constructor. |
Private Attributes | |
SUMOReal | myPos |
the stored position | |
SUMOReal | mySpeed |
the stored speed |
Friends | |
class | MSLaneChanger |
class | MSVehicle |
vehicle sets states directly |
Container that holds the vehicles driving state (position+speed).
Definition at line 87 of file MSVehicle.h.
Constructor.
Definition at line 138 of file MSVehicle.cpp.
MSVehicle::State::State | ( | const State & | state | ) |
MSVehicle::State & MSVehicle::State::operator= | ( | const State & | state | ) |
SUMOReal MSVehicle::State::pos | ( | ) | const |
Position of this state.
Definition at line 133 of file MSVehicle.cpp.
Referenced by GUIVehicle::drawAction_drawRailCarriages(), GUIVehicle::drawGL(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::executeMove(), MSVehicle::getAngle(), MSVehicle::getPosition(), MSVehicle::planMove(), and MSVehicle::processNextStop().
|
inline |
Speed of this state.
Definition at line 109 of file MSVehicle.h.
References mySpeed.
Referenced by MSVehicle::enterLaneAtLaneChange(), MSVehicle::executeMove(), MSVehicle::getHarmonoise_NoiseEmissions(), MSVehicle::getHBEFA_CO2Emissions(), MSVehicle::getHBEFA_COEmissions(), MSVehicle::getHBEFA_FuelConsumption(), MSVehicle::getHBEFA_HCEmissions(), MSVehicle::getHBEFA_NOxEmissions(), MSVehicle::getHBEFA_PMxEmissions(), and MSVehicle::planMove().
|
friend |
Definition at line 90 of file MSVehicle.h.
|
friend |
vehicle sets states directly
Definition at line 89 of file MSVehicle.h.
|
private |
the stored position
Definition at line 111 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSLaneChanger::change(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), MSVehicle::getPositionOnLane(), MSVehicle::hasArrived(), MSVehicle::leaveLane(), MSVehicle::onRemovalFromNet(), operator!=(), operator=(), MSVehicle::overlap(), MSVehicle::planMove(), and State().
|
private |
the stored speed
Definition at line 118 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSLaneChanger::change(), MSVehicle::checkRewindLinkLanes(), MSVehicle::congested(), MSVehicle::enterLaneAtInsertion(), MSVehicle::executeMove(), MSVehicle::getSpeed(), MSVehicle::getSpeedWithoutTraciInfluence(), MSVehicle::onRemovalFromNet(), operator!=(), operator=(), MSVehicle::planMove(), speed(), and State().