|
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 (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 | |
Container that holds the vehicles driving state (position+speed).
Definition at line 90 of file MSVehicle.h.
| MSVehicle::State::State | ( | SUMOReal | pos, |
| SUMOReal | speed | ||
| ) |
Constructor.
Definition at line 126 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 121 of file MSVehicle.cpp.
Referenced by GUIVehicle::drawGL().
| SUMOReal MSVehicle::State::speed | ( | ) | const [inline] |
friend class MSLaneChanger [friend] |
Definition at line 93 of file MSVehicle.h.
friend class MSVehicle [friend] |
vehicle sets states directly
Definition at line 92 of file MSVehicle.h.
SUMOReal MSVehicle::State::myPos [private] |
the stored position
Definition at line 114 of file MSVehicle.h.
Referenced by MSVehicle::getPositionOnLane(), operator!=(), operator=(), MSVehicle::overlap(), and State().
SUMOReal MSVehicle::State::mySpeed [private] |
the stored speed
Definition at line 121 of file MSVehicle.h.
Referenced by MSVehicle::congested(), MSVehicle::getSpeed(), operator!=(), operator=(), speed(), and State().