Eclipse SUMO - Simulation of Urban MObility
|
Container that holds the vehicles driving state (position+speed). More...
#include <MSVehicle.h>
Public Member Functions | |
double | backPos () const |
back Position of this state | |
double | lastCoveredDist () const |
previous Speed of this state | |
bool | operator!= (const State &state) |
Operator !=. | |
State & | operator= (const State &state) |
Assignment operator. | |
double | pos () const |
Position of this state. | |
double | posLat () const |
Lateral Position of this state (m relative to the centerline of the lane). | |
double | speed () const |
Speed of this state. | |
State (const State &state) | |
Copy constructor. | |
State (double pos, double speed, double posLat, double backPos, double previousSpeed) | |
Constructor. | |
Private Attributes | |
double | myBackPos |
the stored back position | |
double | myLastCoveredDist |
double | myPos |
the stored position | |
double | myPosLat |
the stored lateral position | |
double | myPreviousSpeed |
the speed at the begin of the previous time step | |
double | mySpeed |
the stored speed (should be >=0 at any time) | |
Friends | |
class | MSLaneChanger |
class | MSLaneChangerSublane |
class | MSVehicle |
vehicle sets states directly | |
Container that holds the vehicles driving state (position+speed).
Definition at line 87 of file MSVehicle.h.
MSVehicle::State::State | ( | double | pos, |
double | speed, | ||
double | posLat, | ||
double | backPos, | ||
double | previousSpeed | ||
) |
Constructor.
Definition at line 174 of file MSVehicle.cpp.
MSVehicle::State::State | ( | const State & | state | ) |
Copy constructor.
Definition at line 141 of file MSVehicle.cpp.
References myBackPos, myLastCoveredDist, myPos, myPosLat, myPreviousSpeed, and mySpeed.
|
inline |
|
inline |
previous Speed of this state
Definition at line 127 of file MSVehicle.h.
References myLastCoveredDist.
Referenced by MSVehicle::getLastStepDist().
bool MSVehicle::State::operator!= | ( | const State & | state | ) |
Operator !=.
Definition at line 164 of file MSVehicle.cpp.
References myBackPos, myLastCoveredDist, myPos, myPosLat, myPreviousSpeed, and mySpeed.
MSVehicle::State & MSVehicle::State::operator= | ( | const State & | state | ) |
Assignment operator.
Definition at line 152 of file MSVehicle.cpp.
References myBackPos, myLastCoveredDist, myPos, myPosLat, myPreviousSpeed, and mySpeed.
|
inline |
Position of this state.
Definition at line 107 of file MSVehicle.h.
References myPos.
Referenced by MSVehicle::processNextStop().
|
inline |
Lateral Position of this state (m relative to the centerline of the lane).
Definition at line 117 of file MSVehicle.h.
References myPosLat.
|
inline |
Speed of this state.
Definition at line 112 of file MSVehicle.h.
References mySpeed.
Referenced by MSVehicle::getVelocityVector().
|
friend |
Definition at line 90 of file MSVehicle.h.
|
friend |
Definition at line 91 of file MSVehicle.h.
vehicle sets states directly
Definition at line 89 of file MSVehicle.h.
|
private |
the stored back position
Definition at line 145 of file MSVehicle.h.
Referenced by backPos(), MSVehicle::computeFurtherLanes(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::executeMove(), MSVehicle::getBackPositionOnLane(), MSVehicle::loadState(), operator!=(), operator=(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::processNextStop(), MSVehicle::saveState(), MSVehicle::setTentativeLaneAndPosition(), and State().
|
private |
the distance covered in the last timestep NOTE: In case of ballistic positional update, this is not necessarily given by myPos - SPEED2DIST(mySpeed + myPreviousSpeed)/2, because a stop may have occurred within the last step.
Definition at line 154 of file MSVehicle.h.
Referenced by MSVehicle::executeFractionalMove(), MSVehicle::executeMove(), lastCoveredDist(), MSVehicle::loadState(), operator!=(), operator=(), MSVehicle::saveState(), State(), and MSVehicle::updateState().
|
private |
the stored position
Definition at line 134 of file MSVehicle.h.
Referenced by MSVehicle::adaptToLeaders(), MSVehicle::checkReversal(), MSVehicle::computeAngle(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::enterLaneAtMove(), MSVehicle::executeFractionalMove(), MSVehicle::executeMove(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), MSVehicle::getPosition(), MSVehicle::getPositionAlongBestLanes(), MSVehicle::getPositionOnLane(), MSVehicle::getRerouteOrigin(), MSVehicle::handleCollisionStop(), MSVehicle::hasArrivedInternal(), MSVehicle::joinTrainPartFront(), MSVehicle::keepStopping(), MSVehicle::leaveLane(), MSVehicle::loadState(), operator!=(), operator=(), MSVehicle::overlap(), MSVehicle::planMoveInternal(), pos(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), MSVehicle::saveState(), MSVehicle::setTentativeLaneAndPosition(), State(), MSVehicle::updateFurtherLanes(), and MSVehicle::updateState().
|
private |
the stored lateral position
Definition at line 140 of file MSVehicle.h.
Referenced by MSLaneChangerSublane::checkChangeToNewLane(), MSVehicle::computeAngle(), MSVehicle::computeFurtherLanes(), MSLaneChanger::continueChange(), MSVehicle::enterLaneAtLaneChange(), MSVehicle::enterLaneAtMove(), MSVehicle::fixPosition(), MSVehicle::getBackPosition(), MSVehicle::getCenterOnEdge(), MSVehicle::getLateralPositionOnLane(), MSVehicle::getLatOffset(), MSVehicle::getLeftSideOnLane(), MSVehicle::getLeftSideOnLane(), MSVehicle::getRightSideOnLane(), MSVehicle::getRightSideOnLane(), MSVehicle::getSlope(), MSVehicle::loadState(), operator!=(), operator=(), posLat(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::processNextStop(), MSVehicle::resumeFromStopping(), MSVehicle::saveState(), MSVehicle::setLateralPositionOnLane(), MSVehicle::setTentativeLaneAndPosition(), MSLaneChangerSublane::startChangeSublane(), State(), and MSVehicle::updateFurtherLanes().
|
private |
the speed at the begin of the previous time step
Definition at line 148 of file MSVehicle.h.
Referenced by MSVehicle::enterLaneAtInsertion(), MSVehicle::getPreviousSpeed(), MSVehicle::loadState(), operator!=(), operator=(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::saveState(), MSVehicle::setPreviousSpeed(), State(), and MSVehicle::updateState().
|
private |
the stored speed (should be >=0 at any time)
Definition at line 137 of file MSVehicle.h.
Referenced by MSVehicle::checkRewindLinkLanes(), MSVehicle::congested(), MSVehicle::enterLaneAtInsertion(), MSVehicle::executeFractionalMove(), MSVehicle::executeMove(), MSVehicle::getArrivalTime(), MSVehicle::getDeltaPos(), MSVehicle::getRerouteOrigin(), MSVehicle::getSpeed(), MSVehicle::getSpeedWithoutTraciInfluence(), MSVehicle::handleCollisionStop(), MSVehicle::loadState(), operator!=(), operator=(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processTraCISpeedControl(), MSVehicle::saveState(), MSVehicle::setPreviousSpeed(), speed(), State(), and MSVehicle::updateState().