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 !=. More... | |
State & | operator= (const State &state) |
Assignment operator. More... | |
SUMOReal | pos () const |
Position of this state. More... | |
SUMOReal | speed () const |
Speed of this state. More... | |
State (SUMOReal pos, SUMOReal speed) | |
Constructor. More... | |
State (const State &state) | |
Copy constructor. More... | |
Private Attributes | |
SUMOReal | myPos |
the stored position More... | |
SUMOReal | mySpeed |
the stored speed More... | |
Friends | |
class | MSLaneChanger |
class | MSVehicle |
vehicle sets states directly More... | |
Container that holds the vehicles driving state (position+speed).
Definition at line 86 of file MSVehicle.h.
Constructor.
Definition at line 136 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 131 of file MSVehicle.cpp.
Referenced by GUIVehicle::drawAction_drawRailCarriages(), GUIVehicle::drawGL(), MSVehicle::getAngle(), and MSVehicle::processNextStop().
|
inline |
Speed of this state.
Definition at line 108 of file MSVehicle.h.
References mySpeed.
Referenced by MSVehicle::getHarmonoise_NoiseEmissions(), MSVehicle::getHBEFA_CO2Emissions(), MSVehicle::getHBEFA_COEmissions(), MSVehicle::getHBEFA_FuelConsumption(), MSVehicle::getHBEFA_HCEmissions(), MSVehicle::getHBEFA_NOxEmissions(), and MSVehicle::getHBEFA_PMxEmissions().
|
friend |
Definition at line 89 of file MSVehicle.h.
|
friend |
vehicle sets states directly
Definition at line 88 of file MSVehicle.h.
|
private |
the stored position
Definition at line 110 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSLaneChanger::change(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), MSVehicle::fixPosition(), MSVehicle::getPositionOnLane(), MSVehicle::hasArrived(), MSVehicle::leaveLane(), MSVehicle::loadState(), MSVehicle::onRemovalFromNet(), operator!=(), operator=(), MSVehicle::overlap(), MSVehicle::planMoveInternal(), MSVehicle::saveState(), and State().
|
private |
the stored speed
Definition at line 117 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSLaneChanger::change(), MSVehicle::checkRewindLinkLanes(), MSVehicle::congested(), MSVehicle::enterLaneAtInsertion(), MSVehicle::executeMove(), MSVehicle::getSpeed(), MSVehicle::getSpeedWithoutTraciInfluence(), MSVehicle::loadState(), MSVehicle::onRemovalFromNet(), operator!=(), operator=(), MSVehicle::planMoveInternal(), MSVehicle::saveState(), speed(), and State().