#include <MSVehicle.h>
Definition at line 94 of file 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 (const State &state) | |
| Copy constructor. | |
| State (SUMOReal pos, SUMOReal speed) | |
| Constructor. | |
Private Attributes | |
| SUMOReal | myPos |
| the stored position | |
| SUMOReal | mySpeed |
| the stored speed | |
Friends | |
| class | MSLaneChanger |
| class | MSVehicle |
| vehicle sets states directly | |
| MSVehicle::State::State | ( | SUMOReal | pos, | |
| SUMOReal | speed | |||
| ) |
| 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 122 of file MSVehicle.cpp.
References myPos.
Referenced by GUIVehicle::drawGL(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::getPosition(), MSVehicle::moveFirstChecked(), MSVehicle::moveRegardingCritical(), MSVehicle::onDepart(), MSVehicle::onRemovalFromNet(), and MSVehicle::processNextStop().
00122 { 00123 return myPos; 00124 }
| SUMOReal MSVehicle::State::speed | ( | ) | const [inline] |
Speed of this state.
Definition at line 116 of file MSVehicle.h.
References mySpeed.
Referenced by MSVehicle::enterLaneAtLaneChange(), MSVehicle::getHarmonoise_NoiseEmissions(), MSVehicle::getHBEFA_CO2Emissions(), MSVehicle::getHBEFA_COEmissions(), MSVehicle::getHBEFA_FuelConsumption(), MSVehicle::getHBEFA_HCEmissions(), MSVehicle::getHBEFA_NOxEmissions(), MSVehicle::getHBEFA_PMxEmissions(), MSVehicle::moveFirstChecked(), MSVehicle::moveRegardingCritical(), MSVehicle::onDepart(), and MSVehicle::onRemovalFromNet().
00116 { 00117 return mySpeed; 00118 };
friend class MSLaneChanger [friend] |
Definition at line 97 of file MSVehicle.h.
friend class MSVehicle [friend] |
SUMOReal MSVehicle::State::myPos [private] |
the stored position
Definition at line 118 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::ends(), MSVehicle::enterLaneAtEmit(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::getPositionOnActiveMoveReminderLane(), MSVehicle::getPositionOnLane(), MSVehicle::leaveLane(), MSVehicle::moveFirstChecked(), MSVehicle::moveRegardingCritical(), MSVehicle::onRemovalFromNet(), operator!=(), operator=(), pos(), State(), and MSVehicle::vsafeCriticalCont().
SUMOReal MSVehicle::State::mySpeed [private] |
the stored speed
Definition at line 125 of file MSVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::congested(), MSVehicle::enterLaneAtEmit(), MSVehicle::getSpeed(), MSVehicle::moveFirstChecked(), MSVehicle::moveRegardingCritical(), MSVehicle::onRemovalFromNet(), operator!=(), operator=(), speed(), State(), and MSVehicle::vsafeCriticalCont().
1.5.6