![]() |
SUMO - Simulation of Urban MObility
|
A MSVehicle extended by some values for usage within the gui. More...
#include <GUIMEVehicle.h>
Public Types | |
typedef Named::NamedLikeComparatorIdLess< SUMOVehicle > | ComparatorIdLess |
Public Member Functions | ||||
virtual void | activateReminders (const MSMoveReminder::Notification reason) | |||
"Activates" all current move reminder More... | ||||
virtual void | addContainer (MSTransportable *container) | |||
Adds a container to this vehicle. More... | ||||
virtual void | addPerson (MSTransportable *person) | |||
Adds a person to this vehicle. More... | ||||
void | addReminder (MSMoveReminder *rem) | |||
Adds a MoveReminder dynamically. More... | ||||
bool | addStop (const SUMOVehicleParameter::Stop &stopPar, std::string &errorMsg, SUMOTime untilOffset=0) | |||
Adds a stop. More... | ||||
void | addStops (const bool ignoreStopErrors) | |||
Adds stops to the built vehicle. More... | ||||
bool | drawAction_drawCarriageClass (const GUIVisualizationSettings &s, SUMOVehicleShape guiShape, bool asImage) const | |||
draws the given guiShape if it has distinc carriages/modules and eturns true if so More... | ||||
virtual void | drawAction_drawLinkItems (const GUIVisualizationSettings &) const | |||
virtual void | drawAction_drawPersonsAndContainers (const GUIVisualizationSettings &) const | |||
virtual void | drawAction_drawVehicleBlinker (SUMOReal) const | |||
virtual void | drawAction_drawVehicleBlueLight () const | |||
virtual void | drawAction_drawVehicleBrakeLight (SUMOReal length, bool onlyOne=false) const | |||
virtual void | drawBestLanes () const | |||
Draws the vehicle's best lanes. More... | ||||
void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const | |||
draw name of item More... | ||||
void | drawRouteHelper (const MSRoute &r, SUMOReal exaggeration) const | |||
Draws the route. More... | ||||
SUMOReal | estimateLeaveSpeed (const MSLink *link) const | |||
Returns the vehicle's estimated speed after driving accross the link. More... | ||||
virtual SUMOReal | getAcceleration () const | |||
Returns the vehicle's acceleration. More... | ||||
SUMOReal | getAngle () const | |||
Return current angle. More... | ||||
virtual SUMOReal | getArrivalPos () const | |||
Returns this vehicle's desired arrivalPos for its current route (may change on reroute) More... | ||||
SUMOReal | getAverageSpeed () const | |||
Returns the vehicle's estimated average speed on the segment assuming no further delays. More... | ||||
SUMOReal | getBackPositionOnLane (const MSLane *lane) const | |||
Get the vehicle's position relative to the given lane. More... | ||||
SUMOTime | getBlockTime () const | |||
Returns the time at which the vehicle was blocked. More... | ||||
SUMOReal | getBlockTimeSeconds () const | |||
Returns the time at which the vehicle was blocked on the current segment. More... | ||||
SUMOReal | getChosenSpeedFactor () const | |||
Returns the precomputed factor by which the driver wants to be faster than the speed limit. More... | ||||
SUMOReal | getColorValue (int activeScheme) const | |||
gets the color value according to the current scheme index More... | ||||
SUMOReal | getConservativeSpeed (SUMOTime &earliestArrival) const | |||
Returns the vehicle's estimated speed taking into account delays. More... | ||||
const MSRouteIterator & | getCurrentRouteEdge () const | |||
Returns an iterator pointing to the current edge in this vehicles route. More... | ||||
SUMOReal | getCurrentTLSPenaltySeconds () const | |||
Returns the delay that is accrued due to option –meso-tls-penalty. More... | ||||
SUMOTime | getDepartDelay () const | |||
Returns the depart delay. More... | ||||
SUMOReal | getDepartPos () const | |||
Returns this vehicle's real departure position. More... | ||||
SUMOTime | getDeparture () const | |||
Returns this vehicle's real departure time. More... | ||||
MSDevice * | getDevice (const std::type_info &type) const | |||
Returns a device of the given type if it exists or 0. More... | ||||
const std::vector< MSDevice * > & | getDevices () const | |||
Returns this vehicle's devices. More... | ||||
const MSEdge * | getEdge () const | |||
Returns the edge the vehicle is currently at. More... | ||||
SUMOTime | getEventTime () const | |||
Returns the (planned) time at which the vehicle leaves his current cell. More... | ||||
SUMOReal | getEventTimeSeconds () const | |||
Returns the earliest leave time for the current segment. More... | ||||
const std::string & | getID () const | |||
Returns the name of the vehicle. More... | ||||
SUMOReal | getImpatience () const | |||
Returns this vehicles impatience. More... | ||||
MSLane * | getLane () const | |||
Returns the lane the vehicle is on. More... | ||||
SUMOTime | getLastEntryTime () const | |||
Returns the time the vehicle entered the current segment. More... | ||||
SUMOReal | getLastEntryTimeSeconds () const | |||
Returns the entry time for the current segment. More... | ||||
SUMOReal | getLastLaneChangeOffset () const | |||
Returns the time since the last lane change in seconds. More... | ||||
virtual SUMOReal | getLateralPositionOnLane () const | |||
Get the vehicle's lateral position on the lane. More... | ||||
SUMOReal | getMaxSpeed () const | |||
Returns the maximum speed. More... | ||||
SUMOReal | getNaviDegree () const | |||
return the current angle in navigational degrees More... | ||||
int | getNumberReroutes () const | |||
Returns the number of new routes this vehicle got. More... | ||||
const SUMOVehicleParameter & | getParameter () const | |||
Returns the vehicle's parameter (including departure definition) More... | ||||
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own parameter window. More... | ||||
Position | getPosition (const SUMOReal offset=0) const | |||
Return current position (x/y, cartesian) More... | ||||
SUMOReal | getPositionOnLane () const | |||
Get the vehicle's position along the lane. More... | ||||
SUMOReal | getPreviousSpeed () const | |||
Returns the vehicle's previous speed. More... | ||||
int | getQueIndex () const | |||
Returns the index of the que the vehicle is in. More... | ||||
virtual const MSEdge * | getRerouteOrigin () const | |||
Returns the starting point for reroutes (usually the current edge) More... | ||||
const MSRoute & | getRoute () const | |||
Returns the current route. More... | ||||
MESegment * | getSegment () const | |||
Returns the current segment the vehicle is on. More... | ||||
SUMOReal | getSlope () const | |||
Returns the slope of the road at vehicle's position. More... | ||||
SUMOReal | getSpeed () const | |||
Returns the vehicle's estimated speed assuming no delays. More... | ||||
const ConstMSEdgeVector | getStopEdges () const | |||
Returns the list of still pending stop edges. More... | ||||
std::string | getStopInfo () const | |||
retrieve information about the current stop state More... | ||||
SUMOTime | getStoptime (const MESegment *const seg) const | |||
Returns how long to stop at the given segment. More... | ||||
GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own type parameter window. More... | ||||
SUMOVehicleClass | getVClass () const | |||
Returns the vehicle's access class. More... | ||||
const MSVehicleType & | getVehicleType () const | |||
Returns the vehicle's type definition. More... | ||||
SUMOReal | getWaitingSeconds () const | |||
Returns the number of seconds waited (speed was lesser than 0.1m/s) More... | ||||
SUMOTime | getWaitingTime () const | |||
Returns the duration for which the vehicle was blocked. More... | ||||
GUIMEVehicle (SUMOVehicleParameter *pars, const MSRoute *route, const MSVehicleType *type, const SUMOReal speedFactor) | ||||
Constructor. More... | ||||
bool | hasArrived () const | |||
Returns whether this vehicle has already arived (reached the arrivalPosition on its final edge) More... | ||||
bool | hasDeparted () const | |||
Returns whether this vehicle has already departed. More... | ||||
bool | hasValidRoute (std::string &msg, const MSRoute *route=0) const | |||
Validates the current or given route. More... | ||||
virtual bool | isFrontOnLane (const MSLane *) const | |||
Returns the information whether the front of the vehhicle is on the given lane. More... | ||||
bool | isOnRoad () const | |||
Returns the information whether the vehicle is on a road (is simulated) More... | ||||
bool | isParking () const | |||
Returns whether the vehicle is parking. More... | ||||
virtual bool | isRemoteControlled () const | |||
Returns the information whether the vehicle is fully controlled via TraCI. More... | ||||
bool | isStopped () const | |||
Returns whether the vehicle is at a stop. More... | ||||
bool | isStoppedTriggered () const | |||
Returns whether the vehicle is on a triggered stop. More... | ||||
bool | mayProceed () const | |||
Returns whether the vehicle is allowed to pass the next junction. More... | ||||
bool | moveRoutePointer () | |||
Update when the vehicle enters a new edge in the move step. More... | ||||
void | onDepart () | |||
Called when the vehicle is inserted into the network. More... | ||||
void | removeReminder (MSMoveReminder *rem) | |||
Removes a MoveReminder dynamically. More... | ||||
bool | replaceRoute (const MSRoute *route, bool onInit=false, int offset=0) | |||
Replaces the current route by the given one. More... | ||||
bool | replaceRouteEdges (ConstMSEdgeVector &edges, bool onInit=false, bool check=false) | |||
Replaces the current route by the given edges. More... | ||||
void | reroute (SUMOTime t, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const bool onInit=false, const bool withTaz=false) | |||
Performs a rerouting using the given router. More... | ||||
void | selectBlockingFoes () const | |||
adds the blocking foes to the current selection More... | ||||
virtual void | setArrivalPos (SUMOReal arrivalPos) | |||
Sets this vehicle's desired arrivalPos for its current route. More... | ||||
void | setBlockTime (const SUMOTime t) | |||
Sets the time at which the vehicle was blocked. More... | ||||
void | setChosenSpeedFactor (const SUMOReal factor) | |||
Returns the precomputed factor by which the driver wants to be faster than the speed limit. More... | ||||
void | setEventTime (SUMOTime t, bool hasDelay=true) | |||
Sets the (planned) time at which the vehicle leaves his current cell. More... | ||||
void | setLastEntryTime (SUMOTime t) | |||
Sets the entry time for the current segment. More... | ||||
virtual void | setSegment (MESegment *s, int idx=0) | |||
Sets the current segment the vehicle is at together with its que. More... | ||||
const MSEdge * | succEdge (int nSuccs) const | |||
Returns the nSuccs'th successor of edge the vehicle is currently at. More... | ||||
void | updateDetectorForWriting (MSMoveReminder *rem, SUMOTime currentTime, SUMOTime exitTime) | |||
Updates a single vehicle detector if present. More... | ||||
void | updateDetectors (SUMOTime currentTime, const bool isLeave, const MSMoveReminder::Notification reason=MSMoveReminder::NOTIFICATION_JUNCTION) | |||
Updates all vehicle detectors. More... | ||||
~GUIMEVehicle () | ||||
destructor More... | ||||
state io | ||||
void | saveState (OutputDevice &out) | |||
Saves the states of a vehicle. More... | ||||
void | loadState (const SUMOSAXAttributes &attrs, const SUMOTime offset) | |||
Loads the state of this vehicle from the given description. More... | ||||
inherited from GUIGlObject | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. More... | ||||
Boundary | getCenteringBoundary () const | |||
Returns the boundary to which the view shall be centered in order to show the object. More... | ||||
void | drawOnPos (const GUIVisualizationSettings &s, const Position &pos, const SUMOReal angle) const | |||
Draws the object on the specified position with the specified angle. More... | ||||
void | drawGL (const GUIVisualizationSettings &s) const | |||
Draws the object. More... | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additionally triggered visualisations. More... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
const std::string & | getFullName () const | |||
virtual const std::string & | getParentName () const | |||
Returns the name of the parent object (if any) More... | ||||
GUIGlID | getGlID () const | |||
Returns the numerical id of the object. More... | ||||
interfaces to be implemented by derived classes | ||||
virtual const std::string & | getMicrosimID () const | |||
Returns the id of the object as known to microsim. More... | ||||
virtual void | setMicrosimID (const std::string &newID) | |||
Changes the microsimID of the object. More... | ||||
GUIGlObjectType | getType () const | |||
Returns the type of the object as coded in GUIGlObjectType. More... | ||||
Parameter table window I/O | ||||
Lets this object know a parameter window showing the object's values was opened
| ||||
void | addParameterTable (GUIParameterTableWindow *w) | |||
void | removeParameterTable (GUIParameterTableWindow *w) | |||
Lets this object know a parameter window showing the object's values was closed. More... | ||||
Static Public Member Functions | |
static bool | setFunctionalColor (int activeScheme, const MSBaseVehicle *veh) |
sets the color according to the current scheme index and some vehicle function More... | |
Static Public Attributes | |
static const GUIGlID | INVALID_ID = 0 |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Member Functions | |
void | calculateArrivalParams () |
(Re-)Calculates the arrival position and lane from the vehicle parameters More... | |
const Position & | getSeatPosition (int personIndex) const |
returns the seat position for the person with the given index More... | |
void | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the currente settings More... | |
void | setPrefix (const std::string &prefix) |
usually names are prefixed by a type-specific string. this method can be used to change the default More... | |
helper methods for building popup-menus | |
void | buildPopupHeader (GUIGLObjectPopupMenu *ret, GUIMainWindow &app, bool addSeparator=true) |
Builds the header. More... | |
void | buildCenterPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to center to the object. More... | |
void | buildNameCopyPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds entries which allow to copy the name / typed name into the clipboard. More... | |
void | buildSelectionPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to (de)select the object. More... | |
void | buildShowParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the parameter window. More... | |
void | buildShowTypeParamsPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the type parameter window. More... | |
void | buildPositionCopyEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position. More... | |
void | buildShowManipulatorPopupEntry (GUIGLObjectPopupMenu *ret, bool addSeparator=true) |
Builds an entry which allows to open the manipulator window. More... | |
Static Protected Member Functions | |
static void | drawLinkItem (const Position &pos, SUMOTime arrivalTime, SUMOTime leaveTime, SUMOReal exagerate) |
Protected Attributes | |
int | myArrivalLane |
The destination lane where the vehicle stops. More... | |
SUMOReal | myArrivalPos |
The position on the destination lane where the vehicle stops. More... | |
SUMOTime | myBlockTime |
The time at which the vehicle was blocked on its current segment. More... | |
SUMOReal | myCarriageLength |
Variable to set with the length of the last drawn carriage or the vehicle length. More... | |
SUMOReal | myChosenSpeedFactor |
A precomputed factor by which the driver wants to be faster than the speed limit. More... | |
MSRouteIterator | myCurrEdge |
Iterator to current route-edge. More... | |
SUMOReal | myDepartPos |
The real depart position. More... | |
SUMOTime | myDeparture |
The real departure time. More... | |
std::vector< MSDevice * > | myDevices |
The devices this vehicle has. More... | |
SUMOTime | myEventTime |
The (planned) time of leaving the segment (cell) More... | |
SUMOTime | myLastEntryTime |
The time the vehicle entered its current segment. More... | |
MFXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
int | myNumberReroutes |
The number of reroutings. More... | |
const SUMOVehicleParameter * | myParameter |
This Vehicle's parameter. More... | |
int | myQueIndex |
Index of the que the vehicle is in (important for multiqueue extension) More... | |
const MSRoute * | myRoute |
This Vehicle's route. More... | |
PositionVector | mySeatPositions |
positions of seats in the vehicle (updated at every drawing step) More... | |
MESegment * | mySegment |
The segment the vehicle is at. More... | |
std::map< const MESegment *const, SUMOTime > | myStops |
where to stop More... | |
const MSVehicleType * | myType |
This Vehicle's type. More... | |
Static Protected Attributes | |
static const SUMOTime | NOT_YET_DEPARTED = SUMOTime_MAX |
Additional visualisations | |
bool | hasActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) const |
Returns whether the named feature is enabled in the given view. More... | |
void | addActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) |
Adds the named visualisation feature to the given view. More... | |
void | removeActiveAddVisualisation (GUISUMOAbstractView *const parent, int which) |
Adds the named visualisation feature to the given view. More... | |
void | drawRoute (const GUIVisualizationSettings &s, int routeNo, SUMOReal darken) const |
Chooses the route to draw and draws it, darkening it as given. More... | |
enum | VisualisationFeatures { VO_SHOW_BEST_LANES = 1, VO_SHOW_ROUTE = 2, VO_SHOW_ALL_ROUTES = 4, VO_TRACKED = 8, VO_SHOW_LFLINKITEMS = 16, VO_DRAW_OUTSIDE_NETWORK = 32 } |
Additional visualisation feature ids. More... | |
std::map< GUISUMOAbstractView *, int > | myAdditionalVisualizations |
Enabled visualisations, per view. More... | |
drawing helper methods | |
void | drawAction_drawVehicleAsBoxPlus () const |
void | drawAction_drawVehicleAsTrianglePlus () const |
void | drawAction_drawVehicleAsPoly (const GUIVisualizationSettings &s) const |
bool | drawAction_drawVehicleAsImage (const GUIVisualizationSettings &s, SUMOReal length=-1) const |
static void | drawPoly (double *poses, SUMOReal offset) |
Move reminder structures | |
MoveReminderCont | myMoveReminders |
Currently relevant move reminders. More... | |
typedef std::vector< std::pair< MSMoveReminder *, SUMOReal > > | MoveReminderCont |
Definition of a move reminder container. More... | |
A MSVehicle extended by some values for usage within the gui.
A visualisable MSVehicle. Extended by the possibility to retrieve names of all available vehicles (static) and the possibility to retrieve the color of the vehicle which is available in different forms allowing an easier recognition of done actions such as lane changing.
Definition at line 61 of file GUIMEVehicle.h.
|
inherited |
Definition at line 79 of file SUMOVehicle.h.
|
protectedinherited |
Definition of a move reminder container.
Definition at line 414 of file MSBaseVehicle.h.
|
inherited |
Additional visualisation feature ids.
Definition at line 288 of file GUIBaseVehicle.h.
GUIMEVehicle::GUIMEVehicle | ( | SUMOVehicleParameter * | pars, |
const MSRoute * | route, | ||
const MSVehicleType * | type, | ||
const SUMOReal | speedFactor | ||
) |
Constructor.
[in] | pars | The vehicle description |
[in] | route | The vehicle's route |
[in] | type | The vehicle's type |
[in] | speedFactor | The factor for driven lane's speed limits |
ProcessError | If a value is wrong |
Definition at line 54 of file GUIMEVehicle.cpp.
GUIMEVehicle::~GUIMEVehicle | ( | ) |
destructor
Definition at line 64 of file GUIMEVehicle.cpp.
|
virtualinherited |
"Activates" all current move reminder
For all move reminder stored in "myMoveReminders", their method "MSMoveReminder::notifyEnter" is called.
[in] | reason | The reason for changing the reminders' states |
Reimplemented in MSVehicle.
Definition at line 347 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myMoveReminders.
Referenced by MSBaseVehicle::getDevices(), MESegment::receive(), and MELoop::teleportVehicle().
|
inherited |
Adds the named visualisation feature to the given view.
[in] | parent | The view for which the feature shall be enabled |
[in] | which | The visualisation feature to enable |
Definition at line 1126 of file GUIBaseVehicle.cpp.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), and GUIBaseVehicle::myAdditionalVisualizations.
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), and GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack().
|
virtualinherited |
Adds a container to this vehicle.
The default implementation does nothing since containers are not supported by default
[in] | container | The container to add |
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 288 of file MSBaseVehicle.cpp.
Referenced by MSBaseVehicle::getDevices().
|
inherited |
Definition at line 260 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
virtualinherited |
Adds a person to this vehicle.
The default implementation does nothing since persons are not supported by default
[in] | person | The person to add |
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 284 of file MSBaseVehicle.cpp.
Referenced by MSBaseVehicle::getDevices().
|
inherited |
Adds a MoveReminder dynamically.
[in] | rem | the reminder to add |
Definition at line 320 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myMoveReminders.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MESegment::addReminders(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), and MSBaseVehicle::getDevices().
|
virtualinherited |
Adds a stop.
The stop is put into the sorted list.
[in] | stop | The stop to add |
Implements SUMOVehicle.
Definition at line 221 of file MEVehicle.cpp.
References MSEdge::dictionary(), SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::endPos, MELoop::getSegmentForEdge(), MSGlobals::gMesoNet, SUMOVehicleParameter::Stop::lane, and MEVehicle::myStops.
Referenced by MEVehicle::getLane().
|
inherited |
Adds stops to the built vehicle.
This code needs to be separated from the MSBaseVehicle constructor since it is not allowed to call virtual functions from a constructor
[in] | ignoreStopErrors | whether invalid stops trigger a warning only |
Definition at line 442 of file MSBaseVehicle.cpp.
References SUMOVehicle::addStop(), OutputDevice::closeTag(), MSMoveReminder::getDescription(), OutputDevice::getDeviceByOption(), MSBaseVehicle::getID(), MSNet::getInstance(), MSRoute::getStops(), OptionsCont::getStringVector(), OptionsCont::isSet(), MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, OutputDevice::openTag(), STEPS2TIME, SUMOVehicleParameter::stops, SUMO_ATTR_ID, SUMO_ATTR_TIME, SUMOReal, toString(), WRITE_WARNING, and OutputDevice::writeAttr().
Referenced by MEVehicleControl::buildVehicle(), GUIMEVehicleControl::buildVehicle(), GUIVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), and MSBaseVehicle::setChosenSpeedFactor().
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 189 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 198 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 179 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
Definition at line 239 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 208 of file GUIGlObject.cpp.
References GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 251 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
Definition at line 221 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
Definition at line 230 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIBaseVehicle::getPopUpMenu().
|
protectedinherited |
(Re-)Calculates the arrival position and lane from the vehicle parameters
Definition at line 369 of file MSBaseVehicle.cpp.
References ARRIVAL_LANE_GIVEN, ARRIVAL_POS_GIVEN, ARRIVAL_POS_RANDOM, ARRIVAL_SPEED_GIVEN, SUMOVehicleParameter::arrivalLane, SUMOVehicleParameter::arrivalLaneProcedure, SUMOVehicleParameter::arrivalPos, SUMOVehicleParameter::arrivalPosProcedure, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, Named::getID(), MSBaseVehicle::getID(), MSEdge::getLanes(), MSRoute::getLastEdge(), MSVehicleType::getVehicleClass(), MSEdge::isTaz(), MAX2(), MIN2(), MSBaseVehicle::myArrivalLane, MSBaseVehicle::myArrivalPos, MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, MSBaseVehicle::myType, RandHelper::rand(), SUMOReal, toString(), and WRITE_WARNING.
Referenced by MSBaseVehicle::MSBaseVehicle(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::reroute(), and MSBaseVehicle::setChosenSpeedFactor().
|
virtual |
draws the given guiShape if it has distinc carriages/modules and eturns true if so
Implements GUIBaseVehicle.
Definition at line 171 of file GUIMEVehicle.cpp.
References GUIBaseVehicle::drawAction_drawVehicleAsBoxPlus(), and SUMOReal.
Referenced by getAngle().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 142 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawGLAdditional().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 143 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawOnPos().
|
protectedinherited |
Definition at line 335 of file GUIBaseVehicle.cpp.
References MSVehicleType::getLength(), MSVehicleType::getWidth(), and GUIBaseVehicle::myVType.
Referenced by drawAction_drawCarriageClass(), GUIBaseVehicle::drawAction_drawVehicleAsTrianglePlus(), and GUIBaseVehicle::drawOnPos().
|
protectedinherited |
Definition at line 805 of file GUIBaseVehicle.cpp.
References GUITexturesHelper::drawTexturedBox(), GUIVisualizationSizeSettings::getExaggeration(), MSVehicleType::getImgFile(), MSVehicleType::getLength(), GUITexturesHelper::getTextureID(), MSVehicleType::getWidth(), GUIBaseVehicle::myVType, SUMOReal, and GUIVisualizationSettings::vehicleSize.
Referenced by GUIVehicle::drawAction_drawRailCarriages(), and GUIBaseVehicle::drawOnPos().
|
protectedinherited |
Definition at line 384 of file GUIBaseVehicle.cpp.
References RGBColor::changedBrightness(), GUIBaseVehicle::drawAction_drawCarriageClass(), GLHelper::drawBoxLine(), GLHelper::drawFilledCircle(), GUIBaseVehicle::drawPoly(), GLHelper::getColor(), MSVehicleType::getGuiShape(), MSVehicleType::getLength(), MSVehicleType::getWidth(), RGBColor::GREY, GUIBaseVehicle::myVType, GLHelper::setColor(), SUMOReal, SVS_ANT, SVS_BICYCLE, SVS_BUS, SVS_BUS_COACH, SVS_BUS_FLEXIBLE, SVS_BUS_TROLLEY, SVS_DELIVERY, SVS_E_VEHICLE, SVS_EMERGENCY, SVS_MOPED, SVS_MOTORCYCLE, SVS_PASSENGER, SVS_PASSENGER_HATCHBACK, SVS_PASSENGER_SEDAN, SVS_PASSENGER_VAN, SVS_PASSENGER_WAGON, SVS_PEDESTRIAN, SVS_RAIL, SVS_RAIL_CAR, SVS_RAIL_CARGO, SVS_SHIP, SVS_TRUCK, SVS_TRUCK_1TRAILER, SVS_TRUCK_SEMITRAILER, SVS_UNKNOWN, and vehiclePoly_PassengerCarBody.
Referenced by GUIBaseVehicle::drawOnPos().
|
protectedinherited |
Definition at line 350 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::drawAction_drawVehicleAsBoxPlus(), MSVehicleType::getLength(), MSVehicleType::getWidth(), GUIBaseVehicle::myVType, and SUMOReal.
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 137 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 146 of file GUIBaseVehicle.h.
References GUIBaseVehicle::addActiveAddVisualisation(), GUIBaseVehicle::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::getCenteringBoundary(), GUIBaseVehicle::getPopUpMenu(), GUIBaseVehicle::hasActiveAddVisualisation(), GUIBaseVehicle::removeActiveAddVisualisation(), and SUMOReal.
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 138 of file GUIBaseVehicle.h.
References UNUSED_PARAMETER.
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Draws the vehicle's best lanes.
Reimplemented in GUIVehicle.
Definition at line 145 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawGLAdditional().
|
virtualinherited |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 982 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::getAngle(), and GUIBaseVehicle::getPosition().
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight(), GUILane::drawGL(), and GUIBaseVehicle::drawGLAdditional().
|
virtualinherited |
Draws additionally triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented from GUIGlObject.
Definition at line 988 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawBestLanes(), GUIBaseVehicle::drawGL(), GUIBaseVehicle::drawRoute(), GUIGlObject::getGlID(), MSBaseVehicle::getNumberReroutes(), GUIGlObject::getType(), GUIBaseVehicle::hasActiveAddVisualisation(), MSBaseVehicle::isOnRoad(), GUIBaseVehicle::myVehicle, SUMOReal, GUIBaseVehicle::VO_SHOW_ALL_ROUTES, GUIBaseVehicle::VO_SHOW_BEST_LANES, GUIBaseVehicle::VO_SHOW_LFLINKITEMS, and GUIBaseVehicle::VO_SHOW_ROUTE.
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight().
|
staticprotectedinherited |
Definition at line 1021 of file GUIBaseVehicle.cpp.
References GLHelper::drawFilledCircle(), GLHelper::drawText(), RGBColor::GREEN, STEPS2TIME, toString(), Position::x(), and Position::y().
Referenced by GUIVehicle::drawAction_drawLinkItems().
|
inherited |
draw name of item
Definition at line 288 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), GUIPerson::drawGL(), GNEVariableSpeedSignal::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNERouteProbe::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNECalibrator::drawGL(), GUIBusStop::drawGL(), GUIEdge::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GNERerouter::drawGL(), and GUIBaseVehicle::drawOnPos().
|
inherited |
Draws the object on the specified position with the specified angle.
[in] | s | The settings for the current view (may influence drawing) |
[in] | pos | The position to draw the vehicle on |
[in] | angle | The drawing angle of the vehicle |
Definition at line 824 of file GUIBaseVehicle.cpp.
References GUIVisualizationTextSettings::color, GUIBaseVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIBaseVehicle::drawAction_drawVehicleAsBoxPlus(), GUIBaseVehicle::drawAction_drawVehicleAsImage(), GUIBaseVehicle::drawAction_drawVehicleAsPoly(), GUIBaseVehicle::drawAction_drawVehicleAsTrianglePlus(), GUIBaseVehicle::drawAction_drawVehicleBlinker(), GUIBaseVehicle::drawAction_drawVehicleBlueLight(), GUIBaseVehicle::drawAction_drawVehicleBrakeLight(), GUIVisualizationSettings::drawLaneChangePreference, GUIVisualizationSettings::drawMinGap, GUIGlObject::drawName(), GLHelper::drawOutlineCircle(), GLHelper::drawText(), MSLane::geometryPositionAtOffset(), MSBaseVehicle::getDevice(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSVehicleType::getGuiShape(), SUMOVehicle::getLane(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), MSBaseVehicle::getParameter(), SUMOVehicle::getPositionOnLane(), MSDevice_BTreceiver::getRange(), GUIGlObject::getType(), GLO_MAX, SUMOVehicleParameter::line, MIN2(), GUIBaseVehicle::myCarriageLength, GUIBaseVehicle::mySeatPositions, GUIBaseVehicle::myVehicle, GUIBaseVehicle::myVType, GUIVisualizationSettings::personName, PI, RAD2DEG, GUIVisualizationSettings::scale, GUIBaseVehicle::setColor(), GUIVisualizationTextSettings::show, GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showBTRange, GUIVisualizationTextSettings::size, SUMOReal, SVS_ANT, SVS_BICYCLE, SVS_EMERGENCY, SVS_MOPED, SVS_MOTORCYCLE, SVS_PEDESTRIAN, SVS_RAIL, SVS_RAIL_CARGO, SVS_SHIP, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, GUIVisualizationSettings::vehicleSize, Position::x(), and Position::y().
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight(), GUIBaseVehicle::drawGL(), and GUIEdge::drawMesoVehicles().
|
staticprotectedinherited |
Definition at line 368 of file GUIBaseVehicle.cpp.
Referenced by GUIBaseVehicle::drawAction_drawVehicleAsPoly().
|
inherited |
Chooses the route to draw and draws it, darkening it as given.
[in] | s | The visualisation settings, needed to determine the vehicle's color |
[in] | routeNo | The route to show (0: the current, >0: prior) |
[in] | darken | The amount to darken the route by |
Definition at line 1143 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::drawRouteHelper(), GUIVisualizationSizeSettings::getExaggeration(), MSBaseVehicle::getRoute(), MSDevice_Vehroutes::getRoute(), GUIBaseVehicle::myRoutes, GUIBaseVehicle::myVehicle, GUIBaseVehicle::setColor(), SUMOReal, and GUIVisualizationSettings::vehicleSize.
Referenced by GUIBaseVehicle::drawGLAdditional().
Draws the route.
[in] | r | The route to draw |
Implements GUIBaseVehicle.
Definition at line 224 of file GUIMEVehicle.cpp.
References MSRoute::begin(), GLHelper::drawBoxLines(), MSRoute::end(), GUILane::getShape(), GUILane::getShapeLengths(), GUILane::getShapeRotations(), and SUMOReal.
Referenced by getAngle().
Returns the vehicle's estimated speed after driving accross the link.
Definition at line 129 of file MEVehicle.cpp.
References MSVehicleType::getCarFollowModel(), MSLink::getLength(), MSCFModel::getMaxAccel(), MEVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSLink::getViaLaneOrLane(), MIN2(), and SUMOReal.
Referenced by MEVehicle::getLane(), and MESegment::isOpen().
|
virtualinherited |
Returns the vehicle's acceleration.
This default implementation returns always 0.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 253 of file MSBaseVehicle.cpp.
References SUMOReal.
Referenced by MSBaseVehicle::getCurrentRouteEdge().
|
inlinevirtual |
Return current angle.
Implements GUIBaseVehicle.
Definition at line 90 of file GUIMEVehicle.h.
References drawAction_drawCarriageClass(), drawRouteHelper(), MEVehicle::getAngle(), getColorValue(), getLastLaneChangeOffset(), getParameterWindow(), getStopInfo(), getTypeParameterWindow(), selectBlockingFoes(), and SUMOReal.
|
inlinevirtualinherited |
Returns this vehicle's desired arrivalPos for its current route (may change on reroute)
Implements SUMOVehicle.
Definition at line 258 of file MSBaseVehicle.h.
References MSBaseVehicle::myArrivalPos.
Referenced by MSLCM_SL2015::_wantsChangeSublane().
|
inherited |
Returns the vehicle's estimated average speed on the segment assuming no further delays.
Definition at line 123 of file MEVehicle.cpp.
References MESegment::getLength(), MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MEVehicle::mySegment, STEPS2TIME, and SUMOReal.
Referenced by MEVehicle::getLane(), and MEVehicle::getSpeed().
Get the vehicle's position relative to the given lane.
Implements SUMOVehicle.
Definition at line 78 of file MEVehicle.cpp.
References MSVehicleType::getLength(), MEVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), and SUMOReal.
|
inlineinherited |
Returns the time at which the vehicle was blocked.
Definition at line 254 of file MEVehicle.h.
References MEVehicle::myBlockTime.
Referenced by MELoop::checkCar(), and MEVehicle::getBlockTimeSeconds().
|
inlineinherited |
Returns the time at which the vehicle was blocked on the current segment.
Definition at line 287 of file MEVehicle.h.
References MEVehicle::getBlockTime(), MEVehicle::getCurrentTLSPenaltySeconds(), MEVehicle::loadState(), MEVehicle::mayProceed(), MSMoveReminder::NOTIFICATION_JUNCTION, MEVehicle::replaceRoute(), MEVehicle::saveState(), STEPS2TIME, SUMOReal, MEVehicle::updateDetectorForWriting(), and MEVehicle::updateDetectors().
Referenced by getParameterWindow().
|
virtualinherited |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 326 of file GUIBaseVehicle.cpp.
References Boundary::add(), MSVehicleType::getLength(), GUIBaseVehicle::getPosition(), MSBaseVehicle::getVehicleType(), Boundary::grow(), and GUIBaseVehicle::myVehicle.
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight().
|
inlinevirtualinherited |
Returns the precomputed factor by which the driver wants to be faster than the speed limit.
Implements SUMOVehicle.
Definition at line 348 of file MSBaseVehicle.h.
References MSBaseVehicle::myChosenSpeedFactor.
Referenced by getParameterWindow(), GUIVehicle::getParameterWindow(), and TraCIServerAPI_Vehicle::processGet().
|
virtual |
gets the color value according to the current scheme index
Implements GUIBaseVehicle.
Definition at line 178 of file GUIMEVehicle.cpp.
References MSBaseVehicle::getDepartDelay(), MESegment::getEdge(), GUIGlObject::getGlID(), MSBaseVehicle::getNumberReroutes(), MEVehicle::getSegment(), MEVehicle::getSpeed(), MSEdge::getVehicleMaxSpeed(), MEVehicle::getWaitingSeconds(), GLO_VEHICLE, gSelected, GUISelectedStorage::isSelected(), and STEPS2TIME.
Referenced by getAngle().
Returns the vehicle's estimated speed taking into account delays.
[in,out] | earliestArrival | A lower bound on leaveTime, modified to contain new lower bound on leave Time |
Definition at line 138 of file MEVehicle.cpp.
References DELTA_T, MESegment::getLength(), MAX2(), MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MEVehicle::mySegment, and STEPS2TIME.
Referenced by MEVehicle::getLane().
|
inlinevirtualinherited |
Returns an iterator pointing to the current edge in this vehicles route.
Implements SUMOVehicle.
Definition at line 182 of file MSBaseVehicle.h.
References MSBaseVehicle::getAcceleration(), MSBaseVehicle::getSlope(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::onDepart(), MSBaseVehicle::replaceRouteEdges(), MSBaseVehicle::reroute(), and SUMOReal.
Referenced by TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition().
|
inherited |
Returns the delay that is accrued due to option –meso-tls-penalty.
Definition at line 268 of file MEVehicle.cpp.
References MESegment::getTLSPenalty(), MEVehicle::mySegment, and STEPS2TIME.
Referenced by MEVehicle::getBlockTimeSeconds(), and getParameterWindow().
|
inlinevirtualinherited |
Returns the depart delay.
Implements SUMOVehicle.
Definition at line 242 of file MSBaseVehicle.h.
References SUMOVehicleParameter::depart, MSBaseVehicle::getDeparture(), and MSBaseVehicle::getParameter().
Referenced by getColorValue(), GUIVehicle::getColorValue(), getParameterWindow(), and GUIVehicle::getParameterWindow().
|
inlinevirtualinherited |
Returns this vehicle's real departure position.
Implements SUMOVehicle.
Definition at line 250 of file MSBaseVehicle.h.
References MSBaseVehicle::myDepartPos.
Referenced by TraCIServerAPI_Vehicle::processGet().
|
inlinevirtualinherited |
Returns this vehicle's real departure time.
Implements SUMOVehicle.
Definition at line 237 of file MSBaseVehicle.h.
References MSBaseVehicle::myDeparture.
Referenced by MSBaseVehicle::getDepartDelay().
|
virtualinherited |
Returns a device of the given type if it exists or 0.
Implements SUMOVehicle.
Definition at line 420 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myDevices.
Referenced by GUIBaseVehicle::drawOnPos(), MSBaseVehicle::setChosenSpeedFactor(), and MSBatteryExport::write().
|
inlinevirtualinherited |
Returns this vehicle's devices.
Implements SUMOVehicle.
Definition at line 291 of file MSBaseVehicle.h.
References MSBaseVehicle::activateReminders(), MSBaseVehicle::addContainer(), MSBaseVehicle::addPerson(), MSBaseVehicle::addReminder(), MSBaseVehicle::hasValidRoute(), MSBaseVehicle::myDevices, and MSBaseVehicle::removeReminder().
|
virtualinherited |
Returns the edge the vehicle is currently at.
Implements SUMOVehicle.
Definition at line 142 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myCurrEdge.
Referenced by MSVehicleTransfer::add(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), TraCIServerAPI_Vehicle::commandDistanceRequest(), MSVehicle::enterLaneAtLaneChange(), METriggeredCalibrator::execute(), MEVehicle::getAngle(), getParameterWindow(), MEVehicle::getPosition(), MEVehicle::getSlope(), MSBaseVehicle::getVClass(), TraCIServerAPI_Vehicle::processSet(), MESegment::receive(), MELoop::teleportVehicle(), and TraCIServerAPI_Vehicle::vtdMap().
|
inlineinherited |
Returns the (planned) time at which the vehicle leaves his current cell.
Definition at line 195 of file MEVehicle.h.
References MEVehicle::myEventTime.
Referenced by MELoop::addLeaderCar(), MELoop::checkCar(), MEVehicle::getEventTimeSeconds(), MESegment::isOpen(), MESegment::receive(), MELoop::removeLeaderCar(), MESegment::send(), MELoop::setApproaching(), MESegment::setSpeedForQueue(), MELoop::teleportVehicle(), and MEVehicle::updateDetectors().
|
inlineinherited |
Returns the earliest leave time for the current segment.
Definition at line 277 of file MEVehicle.h.
References MEVehicle::getEventTime(), and STEPS2TIME.
Referenced by getParameterWindow().
|
inherited |
Definition at line 113 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inherited |
Returns the numerical id of the object.
Definition at line 125 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteConnection(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIVehicle::drawAction_drawPersonsAndContainers(), GNEDetectorExit::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEDetectorE3::drawGL(), GNEInternalLane::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignal::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNERouteProbe::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNELane::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNEPoly::drawGL(), GNEConnection::drawGL(), GUIBusStop::drawGL(), GNECalibrator::drawGL(), GUIEdge::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNERerouter::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNEJunction::getColorValue(), GUILane::getColorValue(), GNELane::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GNECalibrator::GNECalibrator(), GNERouteProbe::GNERouteProbe(), GNEVaporizer::GNEVaporizer(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEViewNet::onCmdRevertRestriction(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().
|
virtualinherited |
Returns the name of the vehicle.
Implements SUMOVehicle.
Definition at line 114 of file MSBaseVehicle.cpp.
References SUMOVehicleParameter::id, and MSBaseVehicle::myParameter.
Referenced by MSLCM_SL2015::_patchSpeed(), MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSVehicleTransfer::add(), MSBaseVehicle::addStops(), MSVehicle::addTraciBusOrContainerStop(), MSBaseVehicle::calculateArrivalParams(), MSLaneChangerSublane::change(), MSLaneChanger::change(), MSLCM_SL2015::changed(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeSublane(), MSLane::checkFailure(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSAbstractLaneChangeModel::cleanupShadowLane(), MSVehicle::computeAngle(), MSLaneChanger::continueChange(), MSLCM_SL2015::decideDirection(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), MSLane::getFirstVehicleInformation(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), MSLink::getInternalLengthsAfter(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), getParameterWindow(), GUIVehicle::getParameterWindow(), MSLane::getPartialBehind(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), MSAbstractLaneChangeModel::getShadowLane(), MSLane::handleCollisionBetween(), MSLCM_SL2015::inform(), MSLCM_LC2013::inform(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MESegment::initialise(), MSPedestrianPushButton::isActiveForEdge(), MSLane::isInsertionSuccess(), MSVehicle::leaveLane(), MSCFModel_Daniel1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSLCM_LC2013::MSLCM_LC2013(), MSCalibrator::VehicleRemover::notifyEnter(), MSLCM_DK2008::patchSpeed(), MSLCM_SL2015::patchSpeed(), MSLCM_LC2013::patchSpeed(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSAbstractLaneChangeModel::primaryLaneChanged(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), MSBaseVehicle::replaceRouteEdges(), MSBaseVehicle::reroute(), MSLane::resetPartialOccupation(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSCalibrator::scheduleRemoval(), MSLane::setPartialOccupation(), TraCIServer::setVTDControlled(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateGaps(), MSAbstractLaneChangeModel::updateShadowLane(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSBatteryExport::write(), and MSXMLRawOut::writeVehicle().
|
virtualinherited |
Returns this vehicles impatience.
Implements SUMOVehicle.
Definition at line 411 of file MSBaseVehicle.cpp.
References MSBaseVehicle::getVehicleType(), SUMOVehicle::getWaitingTime(), MSGlobals::gTimeToGridlock, MAX2(), MIN2(), and SUMOReal.
Referenced by MSLCM_SL2015::checkBlockingVehicles(), MSVehicle::checkRewindLinkLanes(), MSVehicle::executeMove(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSBaseVehicle::getNumberReroutes(), GUIVehicle::getParameterWindow(), MSLane::isInsertionSuccess(), MESegment::isOpen(), and GUIVehicle::selectBlockingFoes().
|
inlinevirtualinherited |
Returns the lane the vehicle is on.
Implements SUMOVehicle.
Definition at line 91 of file MEVehicle.h.
References MEVehicle::addStop(), MEVehicle::estimateLeaveSpeed(), MEVehicle::getAverageSpeed(), MEVehicle::getConservativeSpeed(), MEVehicle::getPosition(), MEVehicle::getSpeed(), MEVehicle::getStopEdges(), MEVehicle::getStoptime(), MEVehicle::hasArrived(), MEVehicle::isOnRoad(), MEVehicle::isParking(), MEVehicle::isStopped(), MEVehicle::isStoppedTriggered(), MEVehicle::moveRoutePointer(), and SUMOReal.
|
inlineinherited |
Returns the time the vehicle entered the current segment.
Definition at line 237 of file MEVehicle.h.
References MEVehicle::myLastEntryTime.
Referenced by MEVehicle::getLastEntryTimeSeconds(), MESegment::newArrival(), MEVehicle::updateDetectorForWriting(), and MEVehicle::updateDetectors().
|
inlineinherited |
Returns the entry time for the current segment.
Definition at line 282 of file MEVehicle.h.
References MEVehicle::getLastEntryTime(), and STEPS2TIME.
Referenced by getParameterWindow().
|
virtual |
Returns the time since the last lane change in seconds.
Implements GUIBaseVehicle.
Definition at line 235 of file GUIMEVehicle.cpp.
Referenced by getAngle().
|
inlinevirtualinherited |
Get the vehicle's lateral position on the lane.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 165 of file MSBaseVehicle.h.
|
virtualinherited |
Returns the maximum speed.
Implements SUMOVehicle.
Definition at line 126 of file MSBaseVehicle.cpp.
References MSVehicleType::getMaxSpeed(), and MSBaseVehicle::myType.
Referenced by MSCFModel_Wiedemann::_v(), MSVehicleTransfer::checkInsertions(), getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), MSBaseVehicle::getVClass(), MSVehicle::Influencer::implicitDeltaPosVTD(), and MSVehicle::Influencer::implicitSpeedVTD().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 139 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::changeEdge(), GNEAdditional::changeLane(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNEConnection::getAttribute(), GNEJunction::getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNELane::getAttribute(), GNELane::getParentName(), GNENetElement::getParentName(), GNEDetectorE3::getParentName(), GNEVariableSpeedSignal::getParentName(), GNEVaporizer::getParentName(), GNEStoppingPlace::getParentName(), GNERouteProbe::getParentName(), GNEDetector::getParentName(), GNECalibrator::getParentName(), GNEAdditional::getParentName(), GNERerouter::getParentName(), GNEAdditional::getPopUpMenu(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspectorFrame::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEAdditional::setAdditionalID(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnectorFrame::updateDescription().
|
inlineinherited |
return the current angle in navigational degrees
Definition at line 93 of file GUIBaseVehicle.h.
References GUIBaseVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawRouteHelper(), GUIBaseVehicle::getAngle(), GUIBaseVehicle::getColorValue(), GUIBaseVehicle::getLastLaneChangeOffset(), GUIBaseVehicle::getParameterWindow(), GUIBaseVehicle::getStopInfo(), GUIBaseVehicle::getTypeParameterWindow(), GeomHelper::naviDegree(), GUIBaseVehicle::selectBlockingFoes(), and SUMOReal.
Referenced by getParameterWindow(), and GUIVehicle::getParameterWindow().
|
inlinevirtualinherited |
Returns the number of new routes this vehicle got.
Implements SUMOVehicle.
Definition at line 280 of file MSBaseVehicle.h.
References MSBaseVehicle::getImpatience(), MSBaseVehicle::myNumberReroutes, and SUMOReal.
Referenced by GUIBaseVehicle::drawGLAdditional(), getColorValue(), GUIVehicle::getColorValue(), and MSBaseVehicle::replaceRouteEdges().
|
virtualinherited |
Returns the vehicle's parameter (including departure definition)
Implements SUMOVehicle.
Definition at line 120 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myParameter, and SUMOReal.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSTransportableControl::boardAnyWaiting(), GUIBaseVehicle::drawOnPos(), MSBaseVehicle::getDepartDelay(), MSEdge::getDepartLane(), MSLane::getDepartSpeed(), getParameterWindow(), GUIVehicle::getParameterWindow(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSTransportableControl::loadAnyWaiting(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Vehicle::processSet(), GUIBaseVehicle::setFunctionalColor(), and METriggeredCalibrator::tryEmit().
|
virtual |
Returns an own parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIBaseVehicle.
Definition at line 68 of file GUIMEVehicle.cpp.
References GUIParameterTableWindow::closeBuilding(), MEVehicle::getBlockTimeSeconds(), MSBaseVehicle::getChosenSpeedFactor(), MEVehicle::getCurrentTLSPenaltySeconds(), MSBaseVehicle::getDepartDelay(), MSBaseVehicle::getEdge(), MEVehicle::getEventTimeSeconds(), MSBaseVehicle::getID(), MEVehicle::getLastEntryTimeSeconds(), GUIBaseVehicle::getNaviDegree(), MSBaseVehicle::getParameter(), MEVehicle::getPositionOnLane(), MEVehicle::getSegment(), MEVehicle::getSpeed(), MEVehicle::getWaitingSeconds(), SUMOVehicleParameter::line, GUIParameterTableWindow::mkItem(), MSBaseVehicle::myDevices, MSBaseVehicle::myParameter, time2string(), and toString().
Referenced by getAngle().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNERerouter, GNEAdditional, GNEAdditionalSet, GNECalibrator, GNEDetector, GNERouteProbe, GNEStoppingPlace, GNEVaporizer, GNEVariableSpeedSignal, GUILane, GNEDetectorE3, GNELane, and GNENetElement.
Definition at line 119 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
virtualinherited |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 280 of file GUIBaseVehicle.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUIGlObject::buildShowTypeParamsPopupEntry(), GUIGlObject::getGlID(), GUISUMOAbstractView::getTrackedID(), GUIBaseVehicle::hasActiveAddVisualisation(), MID_HIDE_ALLROUTES, MID_HIDE_BEST_LANES, MID_HIDE_CURRENTROUTE, MID_HIDE_LFLINKITEMS, MID_SHOW_ALLROUTES, MID_SHOW_BEST_LANES, MID_SHOW_CURRENTROUTE, MID_SHOW_FOES, MID_SHOW_LFLINKITEMS, MID_START_TRACK, MID_STOP_TRACK, GUIBaseVehicle::myAdditionalVisualizations, GUIBaseVehicle::VO_SHOW_ALL_ROUTES, GUIBaseVehicle::VO_SHOW_BEST_LANES, GUIBaseVehicle::VO_SHOW_LFLINKITEMS, and GUIBaseVehicle::VO_SHOW_ROUTE.
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight().
Return current position (x/y, cartesian)
Implements GUIBaseVehicle.
Definition at line 82 of file GUIMEVehicle.h.
References MEVehicle::getPosition().
|
virtualinherited |
Get the vehicle's position along the lane.
Implements SUMOVehicle.
Definition at line 84 of file MEVehicle.cpp.
References MESegment::getIndex(), MESegment::getLength(), MEVehicle::mySegment, and SUMOReal.
Referenced by MEVehicle::getAngle(), MEVehicle::getBackPositionOnLane(), getParameterWindow(), MEVehicle::getPosition(), MEVehicle::getSlope(), and MEVehicle::hasArrived().
|
virtualinherited |
Returns the vehicle's previous speed.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 65 of file MSBaseVehicle.cpp.
|
inlineinherited |
Returns the index of the que the vehicle is in.
Definition at line 221 of file MEVehicle.h.
References MEVehicle::myQueIndex.
Referenced by MESegment::getLink(), MESegment::removeCar(), MEVehicle::saveState(), and MESegment::send().
|
inlinevirtualinherited |
Returns the starting point for reroutes (usually the current edge)
This differs from *myCurrEdge only if the vehicle is on an internal edge
Reimplemented in MSVehicle.
Definition at line 174 of file MSBaseVehicle.h.
References MSBaseVehicle::myCurrEdge.
Referenced by MSBaseVehicle::replaceRouteEdges(), and MSBaseVehicle::reroute().
|
inlinevirtualinherited |
Returns the current route.
Implements SUMOVehicle.
Definition at line 97 of file MSBaseVehicle.h.
References MSBaseVehicle::myRoute.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), TraCIServerAPI_Vehicle::commandDistanceRequest(), GUIBaseVehicle::drawRoute(), MSEdge::getDepartLane(), MSLane::isInsertionSuccess(), MSVehicle::Influencer::postProcessVTD(), TraCIServerAPI_Vehicle::processGet(), GUIBaseVehicle::setFunctionalColor(), TraCIServerAPI_Vehicle::vtdMap(), and TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition().
|
protectedinherited |
returns the seat position for the person with the given index
if there are not enough seats in the vehicle people have to squeeze onto the last seat
Definition at line 1178 of file GUIBaseVehicle.cpp.
References MIN2(), and GUIBaseVehicle::mySeatPositions.
Referenced by GUIVehicle::drawAction_drawPersonsAndContainers().
|
inlineinherited |
Returns the current segment the vehicle is on.
Definition at line 213 of file MEVehicle.h.
References MEVehicle::mySegment.
Referenced by MELoop::changeSegment(), MELoop::checkCar(), getColorValue(), getParameterWindow(), MEVehicle::isOnRoad(), MESegment::loadState(), MELoop::setApproaching(), and MELoop::teleportVehicle().
|
virtualinherited |
Returns the slope of the road at vehicle's position.
Reimplemented from MSBaseVehicle.
Definition at line 99 of file MEVehicle.cpp.
References MSBaseVehicle::getEdge(), MSEdge::getLanes(), MEVehicle::getPositionOnLane(), MSLane::getShape(), MSLane::interpolateLanePosToGeometryPos(), and PositionVector::slopeDegreeAtOffset().
|
virtualinherited |
Returns the vehicle's estimated speed assuming no delays.
Implements SUMOVehicle.
Definition at line 113 of file MEVehicle.cpp.
References MEVehicle::getAverageSpeed(), MEVehicle::getWaitingTime(), and SUMOReal.
Referenced by MEVehicle::estimateLeaveSpeed(), getColorValue(), MEVehicle::getLane(), getParameterWindow(), MESegment::isOpen(), MESegment::newArrival(), MESegment::receive(), and MELoop::setApproaching().
|
virtualinherited |
Returns the list of still pending stop edges.
Implements MSBaseVehicle.
Definition at line 252 of file MEVehicle.cpp.
References MEVehicle::myStops.
Referenced by MEVehicle::getLane().
|
virtual |
retrieve information about the current stop state
Implements GUIBaseVehicle.
Definition at line 242 of file GUIMEVehicle.cpp.
References MEVehicle::isParking(), and MEVehicle::isStopped().
Referenced by getAngle().
Returns how long to stop at the given segment.
[in] | seg | The segment in question |
Definition at line 243 of file MEVehicle.cpp.
References MEVehicle::myStops.
Referenced by MEVehicle::getLane(), and MESegment::receive().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 152 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditionalSet::drawConnections(), GNEDetector::drawDetectorIcon(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignal::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GNERouteProbe::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNELane::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNEConnection::drawGL(), GNECalibrator::drawGL(), GUIBusStop::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNERerouter::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::drawLockIcon(), GUIBaseVehicle::drawOnPos(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE2::getAttribute(), GNEContainerStop::getAttribute(), GNEBusStop::getAttribute(), GNEDetectorE3::getAttribute(), GNEVariableSpeedSignal::getAttribute(), GNEVaporizer::getAttribute(), GNERouteProbe::getAttribute(), GNEChargingStation::getAttribute(), GNECalibrator::getAttribute(), GNEJunction::getAttribute(), GNERerouter::getAttribute(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEJunction::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUILane::getScaleValue(), GNESelectorFrame::handleIDs(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEDetectorE1::isValid(), GNEDetectorE2::isValid(), GNEContainerStop::isValid(), GNEBusStop::isValid(), GNEDetectorE3::isValid(), GNEVariableSpeedSignal::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEChargingStation::isValid(), GNECalibrator::isValid(), GNERerouter::isValid(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnectorFrame::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onDoubleClicked(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEDetectorExit::setAttribute(), GNEDetectorEntry::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE2::setAttribute(), GNEBusStop::setAttribute(), GNEContainerStop::setAttribute(), GNEDetectorE3::setAttribute(), GNEVariableSpeedSignal::setAttribute(), GNEVaporizer::setAttribute(), GNERouteProbe::setAttribute(), GNEChargingStation::setAttribute(), GNECalibrator::setAttribute(), GNERerouter::setAttribute(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().
|
virtual |
Returns an own type parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIBaseVehicle.
Definition at line 144 of file GUIMEVehicle.cpp.
References GUIParameterTableWindow::closeBuilding(), MSVehicleType::getContainerCapacity(), MSVehicleType::getEmissionClass(), MSVehicleType::getID(), MSVehicleType::getLength(), Parameterised::getMap(), MSBaseVehicle::getMaxSpeed(), MSVehicleType::getMinGap(), PollutantsInterface::getName(), MSVehicleType::getParameter(), MSVehicleType::getPersonCapacity(), MSVehicleType::getVehicleClass(), GUIParameterTableWindow::mkItem(), MSBaseVehicle::myType, SumoVehicleClassStrings, and toString().
Referenced by getAngle().
|
inlinevirtualinherited |
Returns the vehicle's access class.
Implements SUMOVehicle.
Definition at line 113 of file MSBaseVehicle.h.
References MSBaseVehicle::getEdge(), MSBaseVehicle::getMaxSpeed(), MSVehicleType::getParameter(), MSBaseVehicle::myType, MSBaseVehicle::succEdge(), SUMOReal, and SUMOVTypeParameter::vehicleClass.
Referenced by MSPedestrianPushButton::isActiveForEdge(), and MSBaseVehicle::reroute().
|
inlinevirtualinherited |
Returns the vehicle's type definition.
Implements SUMOVehicle.
Definition at line 105 of file MSBaseVehicle.h.
References MSBaseVehicle::myType.
Referenced by MSLCM_SL2015::_patchSpeed(), MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::adaptToLeaders(), MSVehicle::addStop(), MSLane::basePos(), MSTransportableControl::boardAnyWaiting(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::checkBlockingVehicles(), MSLaneChanger::checkChange(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkRewindLinkLanes(), MSLaneChanger::computeOvertakingTime(), MSLaneChanger::continueChange(), MSLane::detectCollisionBetween(), GUIVehicle::drawAction_drawLinkItems(), GUIVehicle::drawAction_drawRailCarriages(), GUIVehicle::drawAction_drawVehicleBlinker(), GUIVehicle::drawAction_drawVehicleBrakeLight(), GUIEdge::drawMesoVehicles(), MSLane::enteredByLaneChange(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MEVehicle::estimateLeaveSpeed(), MSVehicle::estimateLeaveSpeed(), MSVehicle::executeMove(), MSLane::executeMovements(), MSLane::freeInsertion(), MEVehicle::getBackPositionOnLane(), MSLane::getBruttoOccupancy(), GUIBaseVehicle::getCenteringBoundary(), MSLane::getCriticalLeader(), MSEdge::getDepartLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), MSBaseVehicle::getImpatience(), MSVehicle::getLateralOverlap(), MSLane::getLeader(), MSVehicle::getLeader(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSLane::getNettoOccupancy(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), MSVehicle::getRightSideOnEdge(), MSVehicle::getRightSideOnLane(), MSLeaderInfo::getSubLanes(), MSVehicle::getTimeGap(), MSLink::getZipperSpeed(), MESegment::hasSpaceFor(), MSLane::incorporateVehicle(), MSLCM_SL2015::informFollower(), MSLCM_SL2015::informLeader(), MSLane::insertVehicle(), MSLane::integrateNewVehicle(), MSLane::isInsertionSuccess(), MESegment::isOpen(), MSLCM_SL2015::keepLatGap(), MSLane::lastInsertion(), MSLane::leftByLaneChange(), MSTransportableControl::loadAnyWaiting(), MESegment::loadState(), MSVehicle::overlap(), MSLCM_LC2013::overtakeDistance(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessVTD(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), MESegment::receive(), MSLaneChanger::registerUnchanged(), MESegment::removeCar(), MSLane::removeVehicle(), MSLane::safeInsertionSpeed(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), GUIVehicle::selectBlockingFoes(), MESegment::send(), GUIBaseVehicle::setFunctionalColor(), MSVehicle::setTentativeLaneAndPosition(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChanger::startChange(), MSLaneChangerSublane::startChangeSublane(), MSVehicle::unsafeLinkAhead(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSVehicle::updateFurtherLanes(), MSLCM_SL2015::updateGaps(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSBatteryExport::write(), and MSQueueExport::writeLane().
|
inlineinherited |
Returns the number of seconds waited (speed was lesser than 0.1m/s)
The value is reset if the vehicle moves faster than 0.1m/s Intentional stopping does not count towards this time.
Definition at line 271 of file MEVehicle.h.
References MEVehicle::getWaitingTime(), and STEPS2TIME.
Referenced by getColorValue(), and getParameterWindow().
|
inlinevirtualinherited |
Returns the duration for which the vehicle was blocked.
Implements SUMOVehicle.
Definition at line 260 of file MEVehicle.h.
References MAX2(), MEVehicle::myBlockTime, and MEVehicle::myEventTime.
Referenced by MELoop::checkCar(), MEVehicle::getSpeed(), MEVehicle::getWaitingSeconds(), MESegment::isOpen(), and MELoop::setApproaching().
|
inherited |
Returns whether the named feature is enabled in the given view.
[in] | parent | The view for which the feature may be enabled |
[in] | which | The visualisation feature |
Definition at line 1120 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::myAdditionalVisualizations.
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight(), GUIBaseVehicle::drawGLAdditional(), and GUIBaseVehicle::getPopUpMenu().
|
virtualinherited |
Returns whether this vehicle has already arived (reached the arrivalPosition on its final edge)
Reimplemented from MSBaseVehicle.
Definition at line 159 of file MEVehicle.cpp.
References MSRoute::end(), MEVehicle::getPositionOnLane(), MSBaseVehicle::myArrivalPos, MSBaseVehicle::myCurrEdge, MEVehicle::myEventTime, MSBaseVehicle::myRoute, MEVehicle::mySegment, POSITION_EPS, and SUMOTime_MIN.
Referenced by MEVehicle::getLane(), MEVehicle::moveRoutePointer(), and MESegment::receive().
|
virtualinherited |
Returns whether this vehicle has already departed.
Implements SUMOVehicle.
Definition at line 273 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myDeparture, and MSBaseVehicle::NOT_YET_DEPARTED.
Referenced by MSVehicle::addStop(), MSLane::forceVehicleInsertion(), MEVehicle::loadState(), MSVehicle::loadState(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Vehicle::processSet(), and MSBaseVehicle::setArrivalPos().
|
virtualinherited |
Validates the current or given route.
[out] | msg | Description why the route is not valid (if it is the case) |
[in] | route | The route to check (or 0 if the current route shall be checked) |
Implements SUMOVehicle.
Definition at line 292 of file MSBaseVehicle.cpp.
References MSRoute::begin(), MSRoute::end(), MSVehicleType::getVehicleClass(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::myRoute, and MSBaseVehicle::myType.
Referenced by MSBaseVehicle::getDevices(), MESegment::initialise(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Vehicle::processSet(), and MSBaseVehicle::replaceRouteEdges().
|
inlinevirtualinherited |
Returns the information whether the front of the vehhicle is on the given lane.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 157 of file MSBaseVehicle.h.
|
virtualinherited |
Returns the information whether the vehicle is on a road (is simulated)
Reimplemented from MSBaseVehicle.
Definition at line 168 of file MEVehicle.cpp.
References MEVehicle::getSegment().
Referenced by MEVehicle::getLane().
|
virtualinherited |
Returns whether the vehicle is parking.
Implements SUMOVehicle.
Definition at line 174 of file MEVehicle.cpp.
Referenced by MEVehicle::getLane(), and getStopInfo().
|
inlinevirtualinherited |
Returns the information whether the vehicle is fully controlled via TraCI.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 150 of file MSBaseVehicle.h.
|
virtualinherited |
Returns whether the vehicle is at a stop.
Implements SUMOVehicle.
Definition at line 231 of file MEVehicle.cpp.
References MEVehicle::mySegment, and MEVehicle::myStops.
Referenced by MELoop::checkCar(), MEVehicle::getLane(), and getStopInfo().
|
virtualinherited |
Returns whether the vehicle is on a triggered stop.
Implements SUMOVehicle.
Definition at line 237 of file MEVehicle.cpp.
Referenced by MEVehicle::getLane().
|
virtualinherited |
Loads the state of this vehicle from the given description.
Implements SUMOVehicle.
Definition at line 347 of file MEVehicle.cpp.
References MELoop::addLeaderCar(), MESegment::getIndex(), MESegment::getNextSegment(), MELoop::getSegmentForEdge(), SUMOSAXAttributes::getString(), MSGlobals::gMesoNet, SUMOSAXAttributes::hasAttribute(), MSBaseVehicle::hasDeparted(), MEVehicle::myBlockTime, MSBaseVehicle::myCurrEdge, MSBaseVehicle::myDeparture, MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MEVehicle::setSegment(), SUMO_ATTR_POSITION, SUMO_ATTR_STATE, SUMOTime_MAX, and SUMOTime_MIN.
Referenced by MEVehicle::getBlockTimeSeconds().
|
inherited |
Returns whether the vehicle is allowed to pass the next junction.
Definition at line 262 of file MEVehicle.cpp.
References MESegment::isOpen(), MEVehicle::mySegment, and SUMOReal.
Referenced by MELoop::changeSegment(), MELoop::checkCar(), and MEVehicle::getBlockTimeSeconds().
|
inherited |
Update when the vehicle enters a new edge in the move step.
Definition at line 145 of file MEVehicle.cpp.
References MSRoute::end(), MEVehicle::hasArrived(), MSBaseVehicle::myCurrEdge, and MSBaseVehicle::myRoute.
Referenced by METriggeredCalibrator::execute(), MEVehicle::getLane(), MESegment::receive(), and MELoop::teleportVehicle().
|
virtualinherited |
Called when the vehicle is inserted into the network.
Sets optional information about departure time, informs the vehicle control about a further running vehicle.
Implements SUMOVehicle.
Definition at line 265 of file MSBaseVehicle.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), SUMOVehicle::getPositionOnLane(), MSNet::getVehicleControl(), MSBaseVehicle::myDepartPos, MSBaseVehicle::myDeparture, and MSVehicleControl::vehicleDeparted().
Referenced by MSVehicle::enterLaneAtInsertion(), MSBaseVehicle::getCurrentRouteEdge(), and MESegment::receive().
|
inherited |
Adds the named visualisation feature to the given view.
[in] | parent | The view for which the feature shall be enabled |
[in] | which | The visualisation feature to enable |
Definition at line 1136 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().
Referenced by GUIBaseVehicle::drawAction_drawVehicleBlueLight(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), and GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 266 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
inherited |
Removes a MoveReminder dynamically.
[in] | rem | the reminder to remove |
Definition at line 331 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myMoveReminders.
Referenced by MSBaseVehicle::getDevices().
|
virtualinherited |
Replaces the current route by the given one.
Implements SUMOVehicle.
Definition at line 180 of file MEVehicle.cpp.
References MSRoute::addReference(), MSRoute::begin(), MSBaseVehicle::calculateArrivalParams(), MSRoute::contains(), MSRoute::getEdges(), MSNet::getInstance(), MESegment::getLink(), MSNet::informVehicleStateListener(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::myNumberReroutes, MSBaseVehicle::myRoute, MEVehicle::mySegment, MSRoute::release(), MSLink::removeApproaching(), MELoop::setApproaching(), and MSNet::VEHICLE_STATE_NEWROUTE.
Referenced by MEVehicle::getBlockTimeSeconds().
|
virtualinherited |
Replaces the current route by the given edges.
It is possible that the new route is not accepted, if a) it does not contain the vehicle's current edge, or b) something fails on insertion into the routes container (see in-line comments).
[in] | edges | The new list of edges to pass |
[in] | onInit | Whether the vehicle starts with this route |
[in] | check | Whether the route should be checked for validity |
Implements SUMOVehicle.
Definition at line 199 of file MSBaseVehicle.cpp.
References MSRoute::addReference(), MSRoute::begin(), RGBColor::DEFAULT_COLOR, MSRoute::dictionary(), MSGlobals::gCheckRoutes, MSRoute::getColor(), MSRoute::getEdges(), Named::getID(), MSBaseVehicle::getID(), MSBaseVehicle::getNumberReroutes(), MSBaseVehicle::getRerouteOrigin(), MSRoute::getStops(), MSBaseVehicle::hasValidRoute(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::myRoute, MSRoute::release(), SUMOVehicle::replaceRoute(), MSRoute::size(), SUMOReal, toString(), and WRITE_WARNING.
Referenced by MSBaseVehicle::getCurrentRouteEdge(), MSVehicle::Influencer::postProcessVTD(), TraCIServerAPI_Vehicle::processSet(), and MSBaseVehicle::reroute().
|
virtualinherited |
Performs a rerouting using the given router.
Tries to find a new route between the current edge and the destination edge, first. Tries to replace the current route by the new one using replaceRoute.
[in] | t | The time for which the route is computed |
[in] | router | The router to use |
Implements SUMOVehicle.
Definition at line 148 of file MSBaseVehicle.cpp.
References MSEdge::allowedLanes(), MSBaseVehicle::calculateArrivalParams(), SUMOAbstractRouter< E, V >::compute(), MSEdge::dictionary(), MSEdge::EDGEFUNCTION_DISTRICT, SUMOVehicleParameter::fromTaz, Named::getID(), MSBaseVehicle::getID(), MSRoute::getLastEdge(), MSBaseVehicle::getRerouteOrigin(), MSBaseVehicle::getStopEdges(), MSBaseVehicle::getVClass(), MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, MSBaseVehicle::replaceRouteEdges(), SUMOVehicleParameter::toTaz, and SUMOVehicleParameter::via.
Referenced by MSBaseVehicle::getCurrentRouteEdge(), and TraCIServerAPI_Vehicle::processSet().
|
virtualinherited |
Saves the states of a vehicle.
Reimplemented from MSBaseVehicle.
Definition at line 330 of file MEVehicle.cpp.
References MSRoute::begin(), OutputDevice::closeTag(), MESegment::getEdge(), MESegment::getIndex(), MEVehicle::getQueIndex(), MEVehicle::myBlockTime, MSBaseVehicle::myCurrEdge, MSBaseVehicle::myDeparture, MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MSBaseVehicle::myRoute, MEVehicle::mySegment, MSBaseVehicle::saveState(), SUMO_ATTR_STATE, toString(), and OutputDevice::writeAttr().
Referenced by MEVehicle::getBlockTimeSeconds().
|
virtual |
adds the blocking foes to the current selection
Implements GUIBaseVehicle.
Definition at line 256 of file GUIMEVehicle.cpp.
Referenced by getAngle().
|
inlinevirtualinherited |
Sets this vehicle's desired arrivalPos for its current route.
Implements SUMOVehicle.
Definition at line 264 of file MSBaseVehicle.h.
References MSBaseVehicle::hasArrived(), MSBaseVehicle::hasDeparted(), and MSBaseVehicle::myArrivalPos.
|
inlineinherited |
Sets the time at which the vehicle was blocked.
[in] | t | The blocking time |
Definition at line 245 of file MEVehicle.h.
References MEVehicle::myBlockTime, and MEVehicle::myLastEntryTime.
Referenced by MELoop::checkCar(), and MESegment::receive().
|
inlinevirtualinherited |
Returns the precomputed factor by which the driver wants to be faster than the speed limit.
Implements SUMOVehicle.
Definition at line 355 of file MSBaseVehicle.h.
References MSBaseVehicle::addStops(), MSBaseVehicle::calculateArrivalParams(), MSBaseVehicle::getDevice(), MSBaseVehicle::getStopEdges(), MSBaseVehicle::myChosenSpeedFactor, and MSBaseVehicle::saveState().
Referenced by TraCIServerAPI_Vehicle::processSet().
|
protectedinherited |
sets the color according to the currente settings
Definition at line 1031 of file GUIBaseVehicle.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), GUIBaseVehicle::getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), GUIBaseVehicle::myVehicle, GLHelper::setColor(), GUIBaseVehicle::setFunctionalColor(), and GUIVisualizationSettings::vehicleColorer.
Referenced by GUIBaseVehicle::drawOnPos(), and GUIBaseVehicle::drawRoute().
|
inlineinherited |
Sets the (planned) time at which the vehicle leaves his current cell.
[in] | t | The leaving time |
Definition at line 183 of file MEVehicle.h.
References MESegment::getEdge(), MSEdge::markDelayed(), MEVehicle::myEventTime, MEVehicle::myLastEntryTime, and MEVehicle::mySegment.
Referenced by MELoop::checkCar(), METriggeredCalibrator::execute(), MESegment::receive(), MESegment::send(), MESegment::setSpeedForQueue(), and MELoop::teleportVehicle().
|
staticinherited |
sets the color according to the current scheme index and some vehicle function
Definition at line 1040 of file GUIBaseVehicle.cpp.
References SUMOVehicleParameter::color, RGBColor::DEFAULT_COLOR, Position::distanceTo(), RGBColor::fromHSV(), Boundary::getCenter(), MSRoute::getColor(), MSVehicleType::getColor(), MSRoute::getEdges(), MSNet::getInstance(), MSBaseVehicle::getParameter(), MSBaseVehicle::getRoute(), MSBaseVehicle::getVehicleType(), PI, GLHelper::setColor(), SUMOReal, VEHPARS_COLOR_SET, VTYPEPARS_COLOR_SET, MSVehicleType::wasSet(), SUMOVehicleParameter::wasSet(), Position::x(), Boundary::xmax(), Boundary::xmin(), Position::y(), Boundary::ymax(), and Boundary::ymin().
Referenced by GUIBaseVehicle::setColor().
|
inlineinherited |
Sets the entry time for the current segment.
[in] | t | The entry time |
Definition at line 229 of file MEVehicle.h.
References MEVehicle::myLastEntryTime.
Referenced by MESegment::receive().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 145 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENet::renameJunction(), GNEAdditional::setAdditionalID(), GNELane::setIndex(), and GNEEdge::setMicrosimID().
|
protectedinherited |
usually names are prefixed by a type-specific string. this method can be used to change the default
Definition at line 275 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
inlinevirtualinherited |
Sets the current segment the vehicle is at together with its que.
[in] | s | The current segment |
[in] | q | The current que |
Definition at line 204 of file MEVehicle.h.
References MEVehicle::myQueIndex, and MEVehicle::mySegment.
Referenced by MELoop::changeSegment(), METriggeredCalibrator::execute(), MEVehicle::loadState(), MESegment::receive(), and MELoop::teleportVehicle().
|
virtualinherited |
Returns the nSuccs'th successor of edge the vehicle is currently at.
If the rest of the route (counted from the current edge) has less than nSuccs edges, 0 is returned.
[in] | nSuccs | The number of edge to look forward |
Implements SUMOVehicle.
Definition at line 132 of file MSBaseVehicle.cpp.
References MSRoute::begin(), MSBaseVehicle::myCurrEdge, and MSBaseVehicle::myRoute.
Referenced by MSVehicleTransfer::add(), MSLane::appropriate(), MSVehicleTransfer::checkInsertions(), MESegment::getLink(), MSBaseVehicle::getVClass(), MSBaseVehicle::hasArrived(), MSPedestrianPushButton::isActiveForEdge(), MELoop::nextSegment(), TraCIServerAPI_Vehicle::processSet(), and MESegment::receive().
|
inherited |
Updates a single vehicle detector if present.
Definition at line 278 of file MEVehicle.cpp.
References MESegment::getIndex(), MEVehicle::getLastEntryTime(), MESegment::getLength(), MSBaseVehicle::myMoveReminders, MEVehicle::mySegment, and MSMoveReminder::updateDetector().
Referenced by MEVehicle::getBlockTimeSeconds().
|
inherited |
Updates all vehicle detectors.
Definition at line 296 of file MEVehicle.cpp.
References MEVehicle::getEventTime(), MESegment::getIndex(), MEVehicle::getLastEntryTime(), MESegment::getLength(), MSBaseVehicle::myMoveReminders, MEVehicle::mySegment, and MSMoveReminder::NOTIFICATION_SEGMENT.
Referenced by MEVehicle::getBlockTimeSeconds(), MESegment::setSpeedForQueue(), and MESegment::updateDetectorsOnLeave().
|
staticinherited |
Definition at line 77 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
|
inherited |
Enabled visualisations, per view.
Definition at line 304 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::getPopUpMenu(), GUIBaseVehicle::hasActiveAddVisualisation(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIBaseVehicle::~GUIBaseVehicle().
|
protectedinherited |
The destination lane where the vehicle stops.
Definition at line 433 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), and MSVehicle::updateBestLanes().
|
protectedinherited |
The position on the destination lane where the vehicle stops.
Definition at line 430 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), MSBaseVehicle::getArrivalPos(), MEVehicle::hasArrived(), MSVehicle::hasArrived(), MSVehicle::planMoveInternal(), MSVehicle::resetRoutePosition(), MSBaseVehicle::setArrivalPos(), and MSVehicle::updateBestLanes().
|
protectedinherited |
The time at which the vehicle was blocked on its current segment.
Definition at line 338 of file MEVehicle.h.
Referenced by MEVehicle::getBlockTime(), MEVehicle::getWaitingTime(), MEVehicle::loadState(), MEVehicle::saveState(), and MEVehicle::setBlockTime().
|
mutableprotectedinherited |
Variable to set with the length of the last drawn carriage or the vehicle length.
Definition at line 349 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawOnPos().
|
protectedinherited |
A precomputed factor by which the driver wants to be faster than the speed limit.
Definition at line 403 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getChosenSpeedFactor(), and MSBaseVehicle::setChosenSpeedFactor().
|
protectedinherited |
Iterator to current route-edge.
Definition at line 400 of file MSBaseVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), MSBaseVehicle::getCurrentRouteEdge(), MSVehicle::getDistanceToPosition(), MSBaseVehicle::getEdge(), MSBaseVehicle::getRerouteOrigin(), MSVehicle::getRerouteOrigin(), MSVehicle::getRoutePosition(), MEVehicle::hasArrived(), MSVehicle::hasArrived(), MSBaseVehicle::hasValidRoute(), MSVehicle::leaveLane(), MEVehicle::loadState(), MSVehicle::loadState(), MEVehicle::moveRoutePointer(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessVTD(), MSVehicle::processNextStop(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), MSVehicle::resetRoutePosition(), MEVehicle::saveState(), MSVehicle::saveState(), MSBaseVehicle::succEdge(), MSVehicle::updateBestLanes(), and MSVehicle::willPass().
|
protectedinherited |
The real depart position.
Definition at line 427 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getDepartPos(), and MSBaseVehicle::onDepart().
|
protectedinherited |
The real departure time.
Definition at line 424 of file MSBaseVehicle.h.
Referenced by MSVehicle::enterLaneAtInsertion(), MSBaseVehicle::getDeparture(), MSBaseVehicle::hasDeparted(), MEVehicle::loadState(), MSVehicle::loadState(), MSBaseVehicle::onDepart(), MEVehicle::saveState(), and MSVehicle::saveState().
|
protectedinherited |
The devices this vehicle has.
Definition at line 421 of file MSBaseVehicle.h.
Referenced by MSVehicle::addContainer(), MSVehicle::addPerson(), MSBaseVehicle::getDevice(), MSBaseVehicle::getDevices(), getParameterWindow(), GUIVehicle::getParameterWindow(), GUIBaseVehicle::GUIBaseVehicle(), MSBaseVehicle::MSBaseVehicle(), and MSBaseVehicle::~MSBaseVehicle().
|
protectedinherited |
The (planned) time of leaving the segment (cell)
Definition at line 332 of file MEVehicle.h.
Referenced by MEVehicle::getAverageSpeed(), MEVehicle::getConservativeSpeed(), MEVehicle::getEventTime(), MEVehicle::getWaitingTime(), MEVehicle::hasArrived(), MEVehicle::loadState(), MEVehicle::saveState(), and MEVehicle::setEventTime().
|
protectedinherited |
The time the vehicle entered its current segment.
Definition at line 335 of file MEVehicle.h.
Referenced by MEVehicle::getAverageSpeed(), MEVehicle::getConservativeSpeed(), MEVehicle::getLastEntryTime(), MEVehicle::loadState(), MEVehicle::saveState(), MEVehicle::setBlockTime(), MEVehicle::setEventTime(), and MEVehicle::setLastEntryTime().
|
mutableprotectedinherited |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 346 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::drawBestLanes(), and GUIBaseVehicle::~GUIBaseVehicle().
|
protectedinherited |
Currently relevant move reminders.
Definition at line 417 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::activateReminders(), MSVehicle::activateReminders(), MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::addContainer(), MSVehicle::addPerson(), MSBaseVehicle::addReminder(), GUIBaseVehicle::GUIBaseVehicle(), MSVehicle::leaveLane(), MSBaseVehicle::MSBaseVehicle(), MSBaseVehicle::removeReminder(), MEVehicle::updateDetectorForWriting(), MEVehicle::updateDetectors(), and MSVehicle::workOnMoveReminders().
|
protectedinherited |
The number of reroutings.
Definition at line 436 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getNumberReroutes(), MSVehicle::replaceRoute(), and MEVehicle::replaceRoute().
|
protectedinherited |
This Vehicle's parameter.
Definition at line 391 of file MSBaseVehicle.h.
Referenced by MSVehicle::addStop(), MSBaseVehicle::addStops(), MSBaseVehicle::calculateArrivalParams(), MSVehicle::getContainerNumber(), MSBaseVehicle::getID(), MSBaseVehicle::getParameter(), getParameterWindow(), GUIVehicle::getParameterWindow(), MSVehicle::getPersonNumber(), MSVehicle::planMoveInternal(), MSBaseVehicle::reroute(), MSBaseVehicle::saveState(), MSVehicle::updateBestLanes(), and MSBaseVehicle::~MSBaseVehicle().
|
protectedinherited |
Index of the que the vehicle is in (important for multiqueue extension)
Definition at line 329 of file MEVehicle.h.
Referenced by MEVehicle::getQueIndex(), and MEVehicle::setSegment().
|
protectedinherited |
This Vehicle's route.
Definition at line 394 of file MSBaseVehicle.h.
Referenced by MSVehicle::addStop(), MSBaseVehicle::addStops(), MSBaseVehicle::calculateArrivalParams(), GUIVehicle::drawRouteHelper(), MSVehicle::executeMove(), MSVehicle::getDistanceToPosition(), MSVehicle::getRerouteOrigin(), MSBaseVehicle::getRoute(), MSVehicle::getRoutePosition(), MEVehicle::hasArrived(), MSVehicle::hasArrived(), MSBaseVehicle::hasValidRoute(), MEVehicle::moveRoutePointer(), MSBaseVehicle::MSBaseVehicle(), MSVehicle::planMoveInternal(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), MSBaseVehicle::reroute(), MSVehicle::resetRoutePosition(), MEVehicle::saveState(), MSBaseVehicle::saveState(), MSVehicle::saveState(), MSBaseVehicle::succEdge(), MSVehicle::updateBestLanes(), MSVehicle::willPass(), and MSBaseVehicle::~MSBaseVehicle().
|
mutableprotectedinherited |
positions of seats in the vehicle (updated at every drawing step)
Definition at line 352 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::computeSeats(), GUIVehicle::drawAction_drawRailCarriages(), GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::getSeatPosition(), and GUIBaseVehicle::GUIBaseVehicle().
|
protectedinherited |
The segment the vehicle is at.
Definition at line 326 of file MEVehicle.h.
Referenced by MEVehicle::getAverageSpeed(), MEVehicle::getConservativeSpeed(), MEVehicle::getCurrentTLSPenaltySeconds(), MEVehicle::getPositionOnLane(), MEVehicle::getSegment(), MEVehicle::hasArrived(), MEVehicle::isStopped(), MEVehicle::mayProceed(), MEVehicle::replaceRoute(), MEVehicle::saveState(), MEVehicle::setEventTime(), MEVehicle::setSegment(), MEVehicle::updateDetectorForWriting(), and MEVehicle::updateDetectors().
where to stop
Definition at line 341 of file MEVehicle.h.
Referenced by MEVehicle::addStop(), MEVehicle::getStopEdges(), MEVehicle::getStoptime(), and MEVehicle::isStopped().
|
protectedinherited |
This Vehicle's type.
Definition at line 397 of file MSBaseVehicle.h.
Referenced by MSVehicle::addStop(), MSBaseVehicle::calculateArrivalParams(), MSVehicle::enterLaneAtInsertion(), MSVehicle::executeMove(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBoundingBox(), MSVehicle::getBoundingPoly(), MSVehicle::getCarFollowModel(), MSVehicle::getCO2Emissions(), MSVehicle::getCOEmissions(), MSVehicle::getElectricityConsumption(), MSVehicle::getFuelConsumption(), MSVehicle::getHarmonoise_NoiseEmissions(), MSVehicle::getHCEmissions(), MSBaseVehicle::getMaxSpeed(), MSVehicle::getMaxSpeedOnLane(), MSVehicle::getNOxEmissions(), MSVehicle::getPMxEmissions(), MSVehicle::getPositionOnLane(), getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), MSBaseVehicle::getVClass(), MSBaseVehicle::getVehicleType(), MSBaseVehicle::hasValidRoute(), MSVehicle::processNextStop(), MSVehicle::replaceVehicleType(), MSBaseVehicle::saveState(), MSVehicle::updateBestLanes(), and MSVehicle::~MSVehicle().
|
staticprotectedinherited |
Definition at line 441 of file MSBaseVehicle.h.
Referenced by MSVehicle::enterLaneAtInsertion(), and MSBaseVehicle::hasDeparted().
|
staticinherited |
associates object types with strings
Definition at line 76 of file GUIGlObject.h.