![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A MSVehicle extended by some values for usage within the gui. More...
#include <GUIMEVehicle.h>
Public Types | |
typedef long long int | NumericalID |
Public Member Functions | ||||
virtual void | activateReminders (const MSMoveReminder::Notification reason, const MSLane *enteredLane=0) | |||
"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, bool collision=false, MSRouteIterator *searchStart=0) | |||
Adds a stop. More... | ||||
void | createDevice (const std::string &deviceName) | |||
create device of the given type More... | ||||
void | drawAction_drawCarriageClass (const GUIVisualizationSettings &s, bool asImage) const | |||
draws the given guiShape with distinct carriages/modules More... | ||||
virtual void | drawAction_drawLinkItems (const GUIVisualizationSettings &) const | |||
virtual void | drawAction_drawPersonsAndContainers (const GUIVisualizationSettings &s) const | |||
virtual void | drawAction_drawVehicleBlinker (double) const | |||
virtual void | drawAction_drawVehicleBlueLight () const | |||
virtual void | drawAction_drawVehicleBrakeLight (double length, bool onlyOne=false) const | |||
virtual void | drawBestLanes () const | |||
Draws the vehicle's best lanes. More... | ||||
void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const | |||
draw name of item More... | ||||
void | drawRouteHelper (const GUIVisualizationSettings &s, const MSRoute &r, bool future, const RGBColor &col) const | |||
Draws the route. More... | ||||
double | estimateLeaveSpeed (const MSLink *link) const | |||
Returns the vehicle's estimated speed after driving accross the link. More... | ||||
virtual double | getAcceleration () const | |||
Returns the vehicle's acceleration. More... | ||||
SUMOTime | getAccumulatedWaitingTime () const | |||
Returns the duration for which the vehicle was blocked. More... | ||||
double | getAngle () const | |||
Return current angle. More... | ||||
virtual double | getArrivalPos () const | |||
Returns this vehicle's desired arrivalPos for its current route (may change on reroute) More... | ||||
double | getAverageSpeed () const | |||
Returns the vehicle's estimated average speed on the segment assuming no further delays. More... | ||||
double | 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... | ||||
double | getBlockTimeSeconds () const | |||
Returns the time at which the vehicle was blocked on the current segment. More... | ||||
double | getBrakeGap () const | |||
get distance for coming to a stop (used for rerouting checks) More... | ||||
double | getChosenSpeedFactor () const | |||
Returns the precomputed factor by which the driver wants to be faster than the speed limit. More... | ||||
double | getColorValue (const GUIVisualizationSettings &s, int activeScheme) const | |||
gets the color value according to the current scheme index More... | ||||
double | getConservativeSpeed (SUMOTime &earliestArrival) const | |||
Returns the vehicle's estimated speed taking into account delays. More... | ||||
int | getContainerNumber () const | |||
Returns the number of containers. More... | ||||
const std::vector< MSTransportable * > & | getContainers () const | |||
retrieve riding containers More... | ||||
double | getCurrentLinkPenaltySeconds () const | |||
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty. More... | ||||
const MSRouteIterator & | getCurrentRouteEdge () const | |||
Returns an iterator pointing to the current edge in this vehicles route. More... | ||||
double | getCurrentStoppingTimeSeconds () const | |||
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty. More... | ||||
SUMOTime | getDepartDelay () const | |||
Returns the depart delay. More... | ||||
double | getDepartPos () const | |||
Returns this vehicle's real departure position. More... | ||||
SUMOTime | getDeparture () const | |||
Returns this vehicle's real departure time. More... | ||||
MSVehicleDevice * | getDevice (const std::type_info &type) const | |||
Returns a device of the given type if it exists or 0. More... | ||||
std::string | getDeviceParameter (const std::string &deviceName, const std::string &key) const | |||
try to retrieve the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists More... | ||||
const std::vector< MSVehicleDevice * > & | getDevices () const | |||
Returns this vehicle's devices. More... | ||||
const MSEdge * | getEdge () const | |||
Returns the edge the vehicle is currently at. More... | ||||
std::string | getEdgeID () const | |||
const std::map< int, double > * | getEmissionParameters () const | |||
Returns the vehicle's emission model parameter. More... | ||||
SUMOTime | getEventTime () const | |||
Returns the (planned) time at which the vehicle leaves his current cell. More... | ||||
double | getEventTimeSeconds () const | |||
Returns the earliest leave time for the current segment. More... | ||||
const std::string & | getID () const | |||
Returns the name of the vehicle. More... | ||||
double | 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... | ||||
double | getLastEntryTimeSeconds () const | |||
Returns the entry time for the current segment. More... | ||||
double | getLastLaneChangeOffset () const | |||
Returns the time since the last lane change in seconds. More... | ||||
virtual double | getLateralPositionOnLane () const | |||
Get the vehicle's lateral position on the lane. More... | ||||
double | getLength () const | |||
Returns the vehicle's length. More... | ||||
double | getMaxSpeed () const | |||
Returns the maximum speed. More... | ||||
double | getNaviDegree () const | |||
return the current angle in navigational degrees More... | ||||
MSParkingArea * | getNextParkingArea () | |||
get the current parking area stop More... | ||||
int | getNumberReroutes () const | |||
Returns the number of new routes this vehicle got. More... | ||||
int | getNumContainers () const | |||
return the number of passengers More... | ||||
int | getNumPassengers () const | |||
return the number of passengers More... | ||||
double | getOdometer () const | |||
Returns the distance that was already driven by this vehicle. 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... | ||||
std::vector< std::string > | getPersonIDList () const | |||
Returns the list of persons. More... | ||||
int | getPersonNumber () const | |||
Returns the number of persons. More... | ||||
const std::vector< MSTransportable * > & | getPersons () const | |||
retrieve riding persons More... | ||||
Position | getPosition (const double offset=0) const | |||
Return current position (x/y, cartesian) More... | ||||
double | getPositionOnLane () const | |||
Get the vehicle's position along the lane. More... | ||||
double | 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... | ||||
int | getRoutePosition () const | |||
return index of edge within route More... | ||||
MESegment * | getSegment () const | |||
Returns the current segment the vehicle is on. More... | ||||
int | getSegmentIndex () const | |||
MSVehicleType & | getSingularType () | |||
Replaces the current vehicle type with a new one used by this vehicle only. More... | ||||
double | getSlope () const | |||
Returns the slope of the road at vehicle's position. More... | ||||
double | getSpeed () const | |||
Returns the vehicle's estimated speed assuming no delays. More... | ||||
const ConstMSEdgeVector | getStopEdges (double &firstPos, double &lastPos) const | |||
Returns the list of still pending stop edges. More... | ||||
std::vector< std::pair< int, double > > | getStopIndices () const | |||
return list of route indices for the remaining stops More... | ||||
std::string | getStopInfo () const | |||
retrieve information about the current stop state More... | ||||
SUMOTime | getStoptime (const MESegment *const seg, SUMOTime time) const | |||
Returns until when 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... | ||||
double | 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... | ||||
double | getWidth () const | |||
Returns the vehicle's width. More... | ||||
GUIMEVehicle (SUMOVehicleParameter *pars, const MSRoute *route, MSVehicleType *type, const double 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 | hasDevice (const std::string &deviceName) const | |||
check whether the vehicle is equiped with a device of the given type 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 | isStoppedInRange (const double pos, const double tolerance) const | |||
return whether the given position is within range of the current stop More... | ||||
bool | isStoppedTriggered () const | |||
Returns whether the vehicle is on a triggered stop. More... | ||||
bool | isVehicle () const | |||
Get the vehicle's ID. 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... | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click More... | ||||
void | processStop () | |||
ends the current stop and performs loading/unloading More... | ||||
SUMOTime | remainingStopDuration () const | |||
Returns the remaining stop duration for a stopped vehicle or 0. More... | ||||
void | removeReminder (MSMoveReminder *rem) | |||
Removes a MoveReminder dynamically. More... | ||||
void | removeTransportable (MSTransportable *t) | |||
removes a person or container More... | ||||
void | replaceParameter (const SUMOVehicleParameter *newParameter) | |||
replace the vehicle parameter (deleting the old one) More... | ||||
bool | replaceParkingArea (MSParkingArea *, std::string &) | |||
replace the current parking area stop with a new stop with merge duration More... | ||||
bool | replaceRoute (const MSRoute *route, const std::string &info, bool onInit=false, int offset=0, bool addStops=true, bool removeStops=true) | |||
Replaces the current route by the given one. More... | ||||
bool | replaceRouteEdges (ConstMSEdgeVector &edges, double cost, double savings, const std::string &info, bool onInit=false, bool check=false, bool removeStops=true) | |||
Replaces the current route by the given edges. More... | ||||
void | replaceVehicleType (MSVehicleType *type) | |||
Replaces the current vehicle type by the one given. More... | ||||
void | reroute (SUMOTime t, const std::string &info, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, const bool onInit=false, const bool withTaz=false, const bool silent=false) | |||
Performs a rerouting using the given router. More... | ||||
void | resetRoutePosition (int index, DepartLaneDefinition departLaneProcedure) | |||
reset index of edge within route More... | ||||
void | selectBlockingFoes () const | |||
adds the blocking foes to the current selection More... | ||||
virtual void | setArrivalPos (double 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 double factor) | |||
Returns the precomputed factor by which the driver wants to be faster than the speed limit. More... | ||||
void | setDeviceParameter (const std::string &deviceName, const std::string &key, const std::string &value) | |||
try to set the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists 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... | ||||
bool | stopsAt (MSStoppingPlace *) const | |||
Returns whether the vehicle stops at the given stopping place. More... | ||||
bool | stopsAtEdge (const MSEdge *) const | |||
Returns whether the vehicle stops at the given edge. 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... | ||||
virtual bool | wasRemoteControlled (SUMOTime lookBack=DELTA_T) const | |||
Returns the information whether the vehicle is fully controlled via TraCI. More... | ||||
~GUIMEVehicle () | ||||
destructor More... | ||||
inherited from GUIGlObject | ||||
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own popup-menu. More... | ||||
void | removedPopupMenu () | |||
notify object about popup menu removal More... | ||||
Boundary | getCenteringBoundary () const | |||
Returns the boundary to which the view shall be centered in order to show the object. More... | ||||
const std::string | getOptionalName () const | |||
Returns the value for generic parameter 'name' or ''. More... | ||||
void | drawOnPos (const GUIVisualizationSettings &s, const Position &pos, const double 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 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, RGBColor &col) |
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 | buildAdditionalsPopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
void | buildShapePopupOptions (GUIMainWindow &app, GUIGLObjectPopupMenu *ret, const std::string &type) |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI More... | |
void | computeSeats (const Position &front, const Position &back, int maxSeats, double exaggeration, int &requiredSeats) const |
add seats to mySeatPositions and update requiredSeats More... | |
bool | drawAction_drawVehicleAsPolyWithCarriagges (const GUIVisualizationSettings &s, bool asImage=false) const |
draw vehicle body and return whether carriages are being drawn More... | |
const Position & | getSeatPosition (int personIndex) const |
returns the seat position for the person with the given index More... | |
const MSVehicleType & | getVType () const |
A shortcut to myVehicle.myType. More... | |
RGBColor | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the currente settings 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, double exagerate) |
Protected Attributes | |
int | myArrivalLane |
The destination lane where the vehicle stops. More... | |
double | myArrivalPos |
The position on the destination lane where the vehicle stops. More... | |
MSDevice_Transportable * | myContainerDevice |
The containers this vehicle may have. More... | |
double | myDepartPos |
The real depart position. More... | |
SUMOTime | myDeparture |
The real departure time. More... | |
std::vector< MSVehicleDevice * > | myDevices |
The devices this vehicle has. More... | |
FXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
int | myNumberReroutes |
The number of reroutings. More... | |
double | myOdometer |
A simple odometer to keep track of the length of the route already driven. More... | |
MSDevice_Transportable * | myPersonDevice |
The passengers this vehicle may have. More... | |
PositionVector | mySeatPositions |
positions of seats in the vehicle (updated at every drawing step) More... | |
Static Protected Attributes | |
static std::vector< MSTransportable * > | myEmptyTransportableVector |
static const SUMOTime | NOT_YET_DEPARTED = SUMOTime_MAX |
Private Member Functions | |
std::string | createFullName () const |
create full name More... | |
Private Attributes | |
std::string | myFullName |
full name of GL Object More... | |
GUIGlID | myGlID |
The numerical id of the object. More... | |
const GUIGlObjectType | myGLObjectType |
The type of the object. More... | |
std::string | myMicrosimID |
ID of GL object. More... | |
const NumericalID | myNumericalID |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. More... | |
GUIGLObjectPopupMenu * | myPopup |
current popup (to clean up in destructor). GUIBaseVehicle is not responsible for removal More... | |
MSDevice_Vehroutes * | myRoutes |
MSBaseVehicle & | myVehicle |
The vehicle to which all calls should be delegated. More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
LinkStates (Currently unused) More... | |
static NumericalID | myCurrentNumericalIndex = 0 |
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, double darken, bool future=false) 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_SHOW_LFLINKITEMS = 8, VO_DRAW_OUTSIDE_NETWORK = 16, VO_SHOW_FUTURE_ROUTE = 32 } |
Additional visualisation feature ids. More... | |
std::map< GUISUMOAbstractView *, int > | myAdditionalVisualizations |
Enabled visualisations, per view. 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... | |
MESegment * | mySegment |
The segment the vehicle is at. More... | |
int | myQueIndex |
Index of the que the vehicle is in (important for multiqueue extension) More... | |
SUMOTime | myEventTime |
The (planned) time of leaving the segment (cell) More... | |
SUMOTime | myLastEntryTime |
The time the vehicle entered its current segment. More... | |
SUMOTime | myBlockTime |
The time at which the vehicle was blocked on its current segment. More... | |
std::map< const MESegment *const, std::vector< SUMOVehicleParameter::Stop > > | myStops |
where to stop More... | |
ConstMSEdgeVector | myStopEdges |
edges to stop More... | |
state io | |
void | addStops (const bool ignoreStopErrors) |
Adds stops to the built vehicle. More... | |
virtual bool | isSelected () const |
whether this vehicle is selected in the GUI More... | |
int | getRNGIndex () const |
std::mt19937 * | getRNG () const |
NumericalID | getNumericalID () const |
return the numerical ID which is only for internal usage More... | |
const MSDevice_Transportable * | getPersonDevice () const |
const MSDevice_Transportable * | getContainerDevice () const |
const SUMOVehicleParameter * | myParameter |
This vehicle's parameter. More... | |
const MSRoute * | myRoute |
This vehicle's route. More... | |
MSVehicleType * | myType |
This vehicle's type. More... | |
MSRouteIterator | myCurrEdge |
Iterator to current route-edge. More... | |
double | myChosenSpeedFactor |
A precomputed factor by which the driver wants to be faster than the speed limit. More... | |
void | calculateArrivalParams () |
(Re-)Calculates the arrival position and lane from the vehicle parameters More... | |
Move reminder structures | |
MoveReminderCont | myMoveReminders |
Currently relevant move reminders. More... | |
typedef std::vector< std::pair< MSMoveReminder *, double > > | 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 54 of file GUIMEVehicle.h.
|
protectedinherited |
Definition of a move reminder container.
Definition at line 535 of file MSBaseVehicle.h.
|
inherited |
Definition at line 62 of file SUMOVehicle.h.
|
inherited |
Additional visualisation feature ids.
Definition at line 287 of file GUIBaseVehicle.h.
GUIMEVehicle::GUIMEVehicle | ( | SUMOVehicleParameter * | pars, |
const MSRoute * | route, | ||
MSVehicleType * | type, | ||
const double | 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 47 of file GUIMEVehicle.cpp.
GUIMEVehicle::~GUIMEVehicle | ( | ) |
destructor
Definition at line 57 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 |
[in] | enteredLane | The lane, which is entered (if applicable) |
Reimplemented in MSVehicle.
Definition at line 490 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myMoveReminders.
Referenced by 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 701 of file GUIBaseVehicle.cpp.
References GUISUMOAbstractView::addAdditionalGLVisualisation(), and GUIBaseVehicle::myAdditionalVisualizations.
Referenced by GUIViewTraffic::onGamingClick().
|
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 423 of file MSBaseVehicle.cpp.
References MSDevice_Transportable::addTransportable(), MSDevice_Transportable::buildVehicleDevices(), SUMOVehicleParameter::depart, DEPART_TRIGGERED, SUMOVehicleParameter::departProcedure, MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSBaseVehicle::myContainerDevice, MSBaseVehicle::myDevices, MSBaseVehicle::myMoveReminders, and MSBaseVehicle::myParameter.
Referenced by MSVehicle::addContainer().
|
inherited |
Definition at line 287 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
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 411 of file MSBaseVehicle.cpp.
References MSDevice_Transportable::addTransportable(), MSDevice_Transportable::buildVehicleDevices(), SUMOVehicleParameter::depart, DEPART_TRIGGERED, SUMOVehicleParameter::departProcedure, MSNet::getCurrentTimeStep(), MSNet::getInstance(), MSBaseVehicle::myDevices, MSBaseVehicle::myMoveReminders, MSBaseVehicle::myParameter, and MSBaseVehicle::myPersonDevice.
Referenced by MSVehicle::addPerson().
|
inherited |
Adds a MoveReminder dynamically.
[in] | rem | the reminder to add |
Definition at line 463 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myMoveReminders.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MESegment::addReminders(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), and MSVehicle::processNextStop().
|
virtualinherited |
Adds a stop.
The stop is put into the sorted list.
[in] | stop | The stop to add |
Implements SUMOVehicle.
Definition at line 220 of file MEVehicle.cpp.
References MSEdge::dictionary(), SUMOVehicleParameter::Stop::endPos, MELoop::getSegmentForEdge(), MSGlobals::gMesoNet, SUMOVehicleParameter::Stop::index, SUMOVehicleParameter::Stop::lane, MEVehicle::myStopEdges, MEVehicle::myStops, and STOP_INDEX_FIT.
|
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 593 of file MSBaseVehicle.cpp.
References SUMOVehicle::addStop(), SUMOVehicleParameter::depart, MSRoute::getStops(), MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, SUMOVehicleParameter::repetitionOffset, SUMOVehicleParameter::repetitionsDone, SUMOVehicleParameter::stops, and WRITE_WARNING.
Referenced by GUIMEVehicleControl::buildVehicle(), MEVehicleControl::buildVehicle(), GUIVehicleControl::buildVehicle(), MSVehicleControl::buildVehicle(), MSVehicle::replaceRoute(), and MEVehicle::replaceRoute().
|
protectedinherited |
build basic additional popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 325 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
|
protectedinherited |
Builds an entry which allows to center to the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 216 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEWalk::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNERoute::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 225 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPOI::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
Builds the header.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 207 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEWalk::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNERoute::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 266 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEWalk::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNERoute::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 235 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 GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and GUILane::getPopUpMenu().
|
protectedinherited |
build basic shape popup options. Used to unify pop-ups menu in netedit and SUMO-GUI
Definition at line 302 of file GUIGlObject.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), and GUIGlObject::buildShowParamsPopupEntry().
Referenced by GUIPointOfInterest::getPopUpMenu(), and GNEPOI::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 278 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.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 248 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIGlObject::buildAdditionalsPopupOptions(), GUIGlObject::buildShapePopupOptions(), GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNELane::getPopUpMenu(), GUINet::getPopUpMenu(), GNERide::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEWalk::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNERoute::getPopUpMenu(), GUILane::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPerson::GNESelectedPersonsPopupMenu::GNESelectedPersonsPopupMenu(), and GNEVehicle::GNESelectedVehiclesPopupMenu::GNESelectedVehiclesPopupMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
[in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 257 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().
|
protectedinherited |
(Re-)Calculates the arrival position and lane from the vehicle parameters
Definition at line 512 of file MSBaseVehicle.cpp.
References ARRIVAL_LANE_GIVEN, ARRIVAL_POS_CENTER, 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::isTazConnector(), MAX2(), MIN2(), MSBaseVehicle::myArrivalLane, MSBaseVehicle::myArrivalPos, MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, MSBaseVehicle::myType, RandHelper::rand(), toString(), and WRITE_WARNING.
Referenced by MSBaseVehicle::MSBaseVehicle(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), and MSBaseVehicle::reroute().
|
protectedinherited |
add seats to mySeatPositions and update requiredSeats
Definition at line 817 of file GUIBaseVehicle.cpp.
References Position::distanceTo2D(), GUIBaseVehicle::getVType(), MSVehicleType::getWidth(), MAX2(), GUIBaseVehicle::mySeatPositions, PositionVector::positionAtOffset2D(), and SUMO_const_waitingPersonWidth.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and GUIBaseVehicle::drawOnPos().
|
inherited |
create device of the given type
Definition at line 684 of file MSBaseVehicle.cpp.
References MSDevice_Routing::buildVehicleDevices(), MSBaseVehicle::getDevice(), MSBaseVehicle::hasDeparted(), MSBaseVehicle::hasDevice(), MSBaseVehicle::myDevices, MSBaseVehicle::myParameter, MSMoveReminder::NOTIFICATION_DEPARTED, and MSDevice_Routing::notifyEnter().
Referenced by libsumo::Vehicle::setParameter().
|
privateinherited |
create full name
Definition at line 348 of file GUIGlObject.cpp.
References GUIGlObject::getMicrosimID(), StringBijection< T >::getString(), GUIGlObject::myGLObjectType, and GUIGlObject::TypeNames.
Referenced by GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
virtual |
draws the given guiShape with distinct carriages/modules
Implements GUIBaseVehicle.
Definition at line 152 of file GUIMEVehicle.cpp.
References GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus(), MSBaseVehicle::getLength(), GUIBaseVehicle::getVType(), and MSBaseVehicle::getWidth().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 134 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawGLAdditional().
|
virtualinherited |
Definition at line 743 of file GUIBaseVehicle.cpp.
References GUIPerson::drawGL(), GUIContainer::drawGL(), GLHelper::drawLine(), GUIGlObject::getGlID(), GUIBaseVehicle::getSeatPosition(), MSDevice_Transportable::getTransportables(), GUIGlObject::getType(), MSBaseVehicle::myContainerDevice, MSBaseVehicle::myPersonDevice, GUIBaseVehicle::myVehicle, GUIPerson::setPositionInVehicle(), and GUIContainer::setPositionInVehicle().
Referenced by GUIBaseVehicle::drawOnPos().
|
protectedinherited |
draw vehicle body and return whether carriages are being drawn
Definition at line 783 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::drawAction_drawCarriageClass(), GUIBaseVehicleHelper::drawAction_drawVehicleAsImage(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), and GUIBaseVehicle::getVType().
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 129 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 138 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Reimplemented in GUIVehicle.
Definition at line 130 of file GUIBaseVehicle.h.
References UNUSED_PARAMETER.
Referenced by GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
Draws the vehicle's best lanes.
Reimplemented in GUIVehicle.
Definition at line 137 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 535 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::getAngle(), and GUIBaseVehicle::getPosition().
Referenced by 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 541 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, GUIBaseVehicle::VO_SHOW_ALL_ROUTES, GUIBaseVehicle::VO_SHOW_BEST_LANES, GUIBaseVehicle::VO_SHOW_FUTURE_ROUTE, GUIBaseVehicle::VO_SHOW_LFLINKITEMS, and GUIBaseVehicle::VO_SHOW_ROUTE.
|
staticprotectedinherited |
Definition at line 577 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 354 of file GUIGlObject.cpp.
References GLHelper::drawTextSettings(), GUIGlObject::getMicrosimID(), and GUIVisualizationTextSettings::show.
Referenced by GNEEdge::drawEdgeName(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEVariableSpeedSign::drawGL(), GNEDetectorE1Instant::drawGL(), GNERerouter::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GUIContainer::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GNETAZ::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GNEStop::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), and GNEEdge::drawPartialTripFromTo().
|
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 339 of file GUIBaseVehicle.cpp.
References GUIVisualizationSettings::angle, GUIBaseVehicle::computeSeats(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIBaseVehicleHelper::drawAction_drawVehicleAsBoxPlus(), GUIBaseVehicle::drawAction_drawVehicleAsPolyWithCarriagges(), GUIBaseVehicleHelper::drawAction_drawVehicleAsTrianglePlus(), GUIBaseVehicle::drawAction_drawVehicleBlinker(), GUIBaseVehicle::drawAction_drawVehicleBlueLight(), GUIBaseVehicle::drawAction_drawVehicleBrakeLight(), GUIVisualizationSettings::drawBrakeGap, GUIVisualizationSettings::drawLaneChangePreference, GUIVisualizationSettings::drawMinGap, GUIGlObject::drawName(), GLHelper::drawOutlineCircle(), GLHelper::drawTextSettings(), GUIPropertySchemeStorage< T >::getActive(), GUIBaseVehicle::getColorValue(), MSVehicleType::getContainerCapacity(), MSBaseVehicle::getDevice(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), GUIBaseVehicle::getNumContainers(), GUIBaseVehicle::getNumPassengers(), Parameterised::getParameter(), MSBaseVehicle::getParameter(), MSVehicleType::getPersonCapacity(), MSDevice_BTreceiver::getRange(), SUMOTrafficObject::getSpeed(), GUIGlObject::getType(), StringTokenizer::getVector(), GUIBaseVehicle::getVType(), MSGlobals::gUseMesoSim, SUMOVehicleParameter::line, M_PI, MAX2(), MIN2(), GUIBaseVehicle::mySeatPositions, GUIBaseVehicle::myVehicle, StringTokenizer::NEWLINE, RAD2DEG, GUIVisualizationSettings::scale, GUIVisualizationTextSettings::scaledSize(), GUIBaseVehicle::setColor(), GUIVisualizationTextSettings::show, GUIVisualizationSettings::showBlinker, GUIVisualizationSettings::showBTRange, SVS_ANT, SVS_BICYCLE, SVS_EMERGENCY, SVS_MOPED, SVS_MOTORCYCLE, SVS_PEDESTRIAN, SVS_RAIL, SVS_RAIL_CAR, SVS_RAIL_CARGO, SVS_SHIP, toString(), GUIVisualizationSettings::vehicleColorer, GUIVisualizationSettings::vehicleName, GUIVisualizationSettings::vehicleQuality, GUIVisualizationSettings::vehicleSize, GUIVisualizationSettings::vehicleText, GUIVisualizationSettings::vehicleTextParam, GUIVisualizationSettings::vehicleValue, Position::x(), and Position::y().
Referenced by GUIBaseVehicle::drawGL(), and GUIEdge::drawMesoVehicles().
|
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 721 of file GUIBaseVehicle.cpp.
References RGBColor::changedBrightness(), GUIBaseVehicle::drawRouteHelper(), MSBaseVehicle::getRoute(), MSDevice_Vehroutes::getRoute(), GUIBaseVehicle::myRoutes, GUIBaseVehicle::myVehicle, GLHelper::setColor(), and GUIBaseVehicle::setColor().
Referenced by GUIBaseVehicle::drawGLAdditional().
|
virtual |
Draws the route.
[in] | r | The route to draw |
Implements GUIBaseVehicle.
Definition at line 214 of file GUIMEVehicle.cpp.
References MSRoute::begin(), GLHelper::drawBoxLines(), MSRoute::end(), GUIVisualizationSizeSettings::getExaggeration(), GUILane::getShape(), GUILane::getShapeLengths(), GUILane::getShapeRotations(), MSBaseVehicle::myCurrEdge, and GUIVisualizationSettings::vehicleSize.
|
inherited |
Returns the vehicle's estimated speed after driving accross the link.
Definition at line 122 of file MEVehicle.cpp.
References MSVehicleType::getCarFollowModel(), MSLink::getLength(), MSCFModel::getMaxAccel(), MEVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSLink::getViaLaneOrLane(), and MIN2().
Referenced by MESegment::isOpen().
|
virtualinherited |
Returns the vehicle's acceleration.
This default implementation returns always 0.
Implements SUMOTrafficObject.
Reimplemented in MSVehicle.
Definition at line 359 of file MSBaseVehicle.cpp.
|
inlinevirtualinherited |
Returns the duration for which the vehicle was blocked.
Implements SUMOVehicle.
Definition at line 299 of file MEVehicle.h.
References MEVehicle::getWaitingTime().
|
inlinevirtual |
Return current angle.
Implements GUIBaseVehicle.
Definition at line 83 of file GUIMEVehicle.h.
References MEVehicle::getAngle().
|
inlinevirtualinherited |
Returns this vehicle's desired arrivalPos for its current route (may change on reroute)
Implements SUMOVehicle.
Definition at line 282 of file MSBaseVehicle.h.
References MSBaseVehicle::myArrivalPos.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLane::isInsertionSuccess(), and MSVehicle::rerouteParkingArea().
|
inherited |
Returns the vehicle's estimated average speed on the segment assuming no further delays.
Definition at line 116 of file MEVehicle.cpp.
References MESegment::getLength(), MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MEVehicle::mySegment, and STEPS2TIME.
Referenced by MEVehicle::getSpeed().
|
virtualinherited |
Get the vehicle's position relative to the given lane.
Implements SUMOTrafficObject.
Definition at line 71 of file MEVehicle.cpp.
References MSVehicleType::getLength(), MEVehicle::getPositionOnLane(), and MSBaseVehicle::getVehicleType().
|
inlineinherited |
Returns the time at which the vehicle was blocked.
Definition at line 288 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 326 of file MEVehicle.h.
References MEVehicle::getBlockTime(), and STEPS2TIME.
Referenced by getParameterWindow().
|
inlinevirtualinherited |
get distance for coming to a stop (used for rerouting checks)
Implements SUMOVehicle.
Definition at line 198 of file MEVehicle.h.
|
virtualinherited |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 324 of file GUIBaseVehicle.cpp.
References Boundary::add(), MSVehicleType::getLength(), GUIBaseVehicle::getPosition(), MSBaseVehicle::getVehicleType(), Boundary::grow(), and GUIBaseVehicle::myVehicle.
|
inlinevirtualinherited |
Returns the precomputed factor by which the driver wants to be faster than the speed limit.
Implements SUMOTrafficObject.
Definition at line 426 of file MSBaseVehicle.h.
References MSBaseVehicle::myChosenSpeedFactor.
Referenced by MSLane::getDepartSpeed(), GUIVehicle::getParameterWindow(), getParameterWindow(), and GUISUMOViewParent::onUpdSpeedFactor().
|
virtual |
gets the color value according to the current scheme index
Implements GUIBaseVehicle.
Definition at line 158 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.
|
inherited |
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 131 of file MEVehicle.cpp.
References DELTA_T, MESegment::getLength(), MAX2(), MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MEVehicle::mySegment, and STEPS2TIME.
|
inlineinherited |
Definition at line 497 of file MSBaseVehicle.h.
References MSBaseVehicle::myContainerDevice.
Referenced by GUIBaseVehicle::getNumContainers().
|
virtualinherited |
Returns the number of containers.
Implements SUMOVehicle.
Definition at line 633 of file MSBaseVehicle.cpp.
References SUMOVehicleParameter::containerNumber, MSBaseVehicle::myContainerDevice, MSBaseVehicle::myParameter, and MSDevice_Transportable::size().
Referenced by GUIVehicle::getParameterWindow(), MSVehicle::processNextStop(), MEVehicle::processStop(), and MSXMLRawOut::writeVehicle().
|
virtualinherited |
retrieve riding containers
Implements SUMOVehicle.
Definition at line 662 of file MSBaseVehicle.cpp.
References MSDevice_Transportable::getTransportables(), MSBaseVehicle::myContainerDevice, and MSBaseVehicle::myEmptyTransportableVector.
Referenced by MSXMLRawOut::writeVehicle().
|
inherited |
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty.
Definition at line 368 of file MEVehicle.cpp.
References MESegment::getLinkPenalty(), MEVehicle::mySegment, and STEPS2TIME.
Referenced by getParameterWindow().
|
inlinevirtualinherited |
Returns an iterator pointing to the current edge in this vehicles route.
Implements SUMOVehicle.
Definition at line 205 of file MSBaseVehicle.h.
References MSBaseVehicle::myCurrEdge.
Referenced by MSDevice_SSM::findFoeConflictLane(), libsumo::Vehicle::getNextTLS(), MSRailSignal::hasOncomingRailTraffic(), libsumo::Vehicle::moveTo(), and libsumo::Vehicle::moveToXY().
|
inherited |
Returns the delay that is accrued due to option –meso-tls-penalty or –meso-minor-penalty.
Definition at line 275 of file MEVehicle.cpp.
References MEVehicle::getStoptime(), MEVehicle::myLastEntryTime, MEVehicle::mySegment, and STEPS2TIME.
Referenced by getParameterWindow(), and MSDevice_Tripinfo::notifyMoveInternal().
|
inlinevirtualinherited |
Returns the depart delay.
Implements SUMOVehicle.
Definition at line 266 of file MSBaseVehicle.h.
References SUMOVehicleParameter::depart, MSBaseVehicle::getDeparture(), and MSBaseVehicle::getParameter().
Referenced by getColorValue(), GUIVehicle::getColorValue(), GUIVehicle::getParameterWindow(), and getParameterWindow().
|
inlinevirtualinherited |
Returns this vehicle's real departure position.
Implements SUMOVehicle.
Definition at line 274 of file MSBaseVehicle.h.
References MSBaseVehicle::myDepartPos.
|
inlinevirtualinherited |
Returns this vehicle's real departure time.
Implements SUMOVehicle.
Definition at line 261 of file MSBaseVehicle.h.
References MSBaseVehicle::myDeparture.
Referenced by MSBaseVehicle::getDepartDelay(), and MSVehicle::Influencer::postProcessRemoteControl().
|
virtualinherited |
Returns a device of the given type if it exists or 0.
Implements SUMOVehicle.
Definition at line 564 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myDevices.
Referenced by MSBaseVehicle::createDevice(), GUIBaseVehicle::drawOnPos(), MSBaseVehicle::getEmissionParameters(), MSVehicle::MSVehicle(), MEVehicle::processStop(), GUIVehicle::rerouteDRTStop(), MSVehicle::resumeFromStopping(), and MSBatteryExport::write().
|
inherited |
try to retrieve the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists
Definition at line 703 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myDevices.
Referenced by libsumo::Vehicle::getParameter().
|
inlinevirtualinherited |
Returns this vehicle's devices.
Implements SUMOVehicle.
Definition at line 341 of file MSBaseVehicle.h.
References MSBaseVehicle::myDevices.
|
virtualinherited |
Returns the edge the vehicle is currently at.
Implements SUMOTrafficObject.
Definition at line 181 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myCurrEdge.
Referenced by MSVehicleTransfer::add(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::enterLaneAtLaneChange(), METriggeredCalibrator::execute(), MSDevice_SSM::findFoeConflictLane(), MSVehicle::Influencer::gapControlSpeed(), MEVehicle::getAngle(), libsumo::Vehicle::getDrivingDistance2D(), getEdgeID(), MSVehicle::getLatOffset(), MSCFModel_CC::getParameter(), MEVehicle::getPosition(), MSBaseVehicle::getRNG(), MSBaseVehicle::getRNGIndex(), MEVehicle::getSlope(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), MESegment::receive(), MSVehicle::rerouteParkingArea(), MELoop::teleportVehicle(), MEVehicle::updateDetectors(), MSBatteryExport::write(), and MSFCDExport::write().
std::string GUIMEVehicle::getEdgeID | ( | ) | const |
Definition at line 246 of file GUIMEVehicle.cpp.
References MSBaseVehicle::getEdge(), and Named::getID().
Referenced by getParameterWindow().
|
virtualinherited |
Returns the vehicle's emission model parameter.
Implements SUMOVehicle.
Definition at line 149 of file MSBaseVehicle.cpp.
References MSBaseVehicle::getDevice(), and MSDevice_Battery::getEnergyParams().
|
inlineinherited |
Returns the (planned) time at which the vehicle leaves his current cell.
Definition at line 229 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(), MEVehicle::updateDetectors(), and MELoop::vaporizeCar().
|
inlineinherited |
Returns the earliest leave time for the current segment.
Definition at line 316 of file MEVehicle.h.
References MEVehicle::getEventTime(), and STEPS2TIME.
Referenced by getParameterWindow().
|
inherited |
Definition at line 137 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by SUMORTree::addAdditionalGLObject(), GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), SUMORTree::removeAdditionalGLObject(), and GUISelectedStorage::save().
|
inherited |
Returns the numerical id of the object.
Definition at line 149 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GNEEdge::drawEdgeName(), GNEEdge::drawGeometryPoints(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEInternalLane::drawGL(), GNEParkingSpace::drawGL(), GNEVariableSpeedSign::drawGL(), GNEDetectorE1Instant::drawGL(), GNERerouter::drawGL(), GNEAccess::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GNECrossing::drawGL(), GUIContainer::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GNECalibrator::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GNETAZ::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GNELane::drawGL(), GNEStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GUIPerson::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNEPoly::getGlID(), GNEPOI::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), GUILane::isLaneOrEdgeSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), GUIPerson::isSelected(), GUIEdge::isSelected(), GUILane::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIViewTraffic::onGamingClick(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNENetElement::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEAdditional::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPointOfInterest::setColor(), GUIPolygon::setColor(), GUIMessageWindow::setCursorPos(), GNENetElement::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEAdditional::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
|
virtualinherited |
Returns the name of the vehicle.
Implements SUMOTrafficObject.
Definition at line 138 of file MSBaseVehicle.cpp.
References SUMOVehicleParameter::id, and MSBaseVehicle::myParameter.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_Wiedemann::_v(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChangerSublane::abortLCManeuver(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSVehicleTransfer::add(), MSPModel_Striping::addCrossingVehs(), MSLCM_SL2015::addLCSpeedAdvice(), MSVehicle::addTraciStopAtStoppingPlace(), MSCFModel::applyHeadwayAndSpeedDifferencePerceptionErrors(), MSCFModel::applyHeadwayPerceptionError(), libsumo::Helper::applySubscriptionFilters(), MSBaseVehicle::calculateArrivalParams(), MSLaneChangerSublane::change(), MSLaneChanger::change(), MSLCM_SL2015::changed(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), libsumo::Vehicle::changeTarget(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeSublane(), MSLane::checkFailure(), MSLane::checkForPedestrians(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSLaneChanger::checkTraCICommands(), MSAbstractLaneChangeModel::checkTraCICommands(), MSDevice_SSM::classifyEncounter(), MSDevice_SSM::closeEncounter(), MSLCM_SL2015::commitManoeuvre(), MSVehicle::computeAngle(), MSLCM_SL2015::computeSpeedLat(), MSDevice_SSM::computeSSMs(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSLaneChanger::continueChange(), MSLaneChangerSublane::continueChangeSublane(), MSLCM_SL2015::decideDirection(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), MSDevice_SSM::Encounter::Encounter(), MSAbstractLaneChangeModel::endLaneChangeManeuver(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSCFModel_Daniel1::finalizeSpeed(), MSCFModel::finalizeSpeed(), MSLaneChanger::findCandidate(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushGlobalMeasures(), MSCFModel_W99::followSpeed(), MSCFModel_CACC::followSpeed(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), GUIVehicle::getColorValue(), MSLaneChanger::getColumnleader(), MSLane::getCriticalLeader(), MSLane::getFirstVehicleInformation(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getPartialBehind(), MSSimpleDriverState::getPerceivedHeadway(), MSSimpleDriverState::getPerceivedSpeedDifference(), MSCFModel_CC::getRadarMeasurements(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), MSVehicle::getSafeFollowSpeed(), MSAbstractLaneChangeModel::getShadowLane(), MSBaseVehicle::getSingularType(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSLink::getZipperSpeed(), MSLane::handleCollisionBetween(), MSVehicle::haveValidStopEdges(), libsumo::Vehicle::highlight(), MSVehicle::ignoreRed(), MSLCM_LC2013::inform(), MSLCM_SL2015::inform(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MESegment::initialise(), MSPedestrianPushButton::isActiveForEdge(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MSAbstractLaneChangeModel::laneChangeOutput(), MSVehicle::lateralDistanceToLane(), MSVehicle::leaveLane(), libsumo::Vehicle::moveToXY(), MSLCM_LC2013::MSLCM_LC2013(), MSSimpleDriverState::MSSimpleDriverState(), MSCalibrator::VehicleRemover::notifyEnter(), MSVehicle::onRemovalFromNet(), MSLaneChangerSublane::outputLCStarted(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), MSCFModel_CC::performAutoLaneChange(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLCM_SL2015::prepareStep(), MSAbstractLaneChangeModel::primaryLaneChanged(), TraCIServerAPI_GUI::processGet(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSVehicle::processTraCISpeedControl(), MSVehicle::removePassedDriveItems(), MSBaseVehicle::replaceRouteEdges(), MSBaseVehicle::reroute(), MSVehicle::rerouteParkingArea(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), libsumo::Vehicle::resume(), MSLane::safeInsertionSpeed(), MSLCM_LC2013::saveBlockerLength(), MSLCM_SL2015::saveBlockerLength(), MSBaseVehicle::saveState(), MSCalibrator::scheduleRemoval(), GUIVehicle::selectBlockingFoes(), MSVehicle::setAngle(), MSVehicle::setApproachingForAllLinks(), MSSimpleDriverState::setAwareness(), MSAbstractLaneChangeModel::setManeuverDist(), MSLane::setManeuverReservation(), MSLCM_SL2015::setOwnState(), MSDevice_ToC::setParameter(), MSCFModel_CC::setParameter(), MSLane::setPartialOccupation(), libsumo::Helper::setRemoteControlled(), libsumo::Vehicle::setRoute(), libsumo::Vehicle::setRouteID(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSimpleDriverState::update(), MSVehicle::updateBestLanes(), MSVehicle::updateDriveItems(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSVehicle::updateFurtherLanes(), MSLCM_SL2015::updateGaps(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSAbstractLaneChangeModel::updateTargetLane(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSBatteryExport::write(), and MSXMLRawOut::writeVehicle().
|
virtualinherited |
Returns this vehicles impatience.
Implements SUMOVehicle.
Definition at line 557 of file MSBaseVehicle.cpp.
References MSBaseVehicle::getVehicleType(), SUMOTrafficObject::getWaitingTime(), MSGlobals::gTimeToImpatience, MAX2(), and MIN2().
Referenced by MSVehicle::checkRewindLinkLanes(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), GUIVehicle::getParameterWindow(), MSLCM_LC2013::informFollower(), MSLane::isInsertionSuccess(), MESegment::isOpen(), MSVehicle::processLinkApproaches(), and GUIVehicle::selectBlockingFoes().
|
inlinevirtualinherited |
Returns the lane the vehicle is on.
Implements SUMOVehicle.
Definition at line 83 of file MEVehicle.h.
|
inlineinherited |
Returns the time the vehicle entered the current segment.
Definition at line 271 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 321 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 226 of file GUIMEVehicle.cpp.
|
inlinevirtualinherited |
Get the vehicle's lateral position on the lane.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 188 of file MSBaseVehicle.h.
|
inlineinherited |
Returns the vehicle's length.
Definition at line 410 of file MSBaseVehicle.h.
References MSVehicleType::getLength(), and MSBaseVehicle::myType.
Referenced by MSVehicle::addStop(), libsumo::Helper::applySubscriptionFilters(), MSVehicle::basePos(), MSDevice_SSM::checkConflictEntryAndExit(), MSDevice_SSM::classifyEncounter(), MSDevice_SSM::determineConflictPoint(), MSDevice_SSM::determineTTCandDRAC(), drawAction_drawCarriageClass(), MSVehicle::enterLaneAtInsertion(), MSDevice_SSM::findSurroundingVehicles(), MSVehicle::Influencer::gapControlSpeed(), MSLink::getLeaderInfo(), MSDevice_SSM::getUpstreamVehicles(), libsumo::Vehicle::highlight(), MSVehicle::updateFurtherLanes(), and MSDevice_SSM::updatePassedEncounter().
|
virtualinherited |
Returns the maximum speed.
Implements SUMOTrafficObject.
Definition at line 165 of file MSBaseVehicle.cpp.
References MSVehicleType::getMaxSpeed(), and MSBaseVehicle::myType.
Referenced by MSCFModel_Wiedemann::_v(), MSVehicleTransfer::checkInsertions(), MSCFModel_ACC::followSpeed(), GUIVehicle::getTypeParameterWindow(), getTypeParameterWindow(), and MSVehicle::Influencer::implicitDeltaPosRemote().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 163 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by SUMORTree::addAdditionalGLObject(), GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEConnection::getAttribute(), GNELane::getAttribute(), GNEJunction::getAttribute(), GNEEdge::getAttribute(), GNEDemandElement::getDemandElementID(), GNEDialogACChooser::getObjectName(), GUIDialog_GLObjChooser::getObjectName(), GNEDetectorE3::getParentName(), GNEVariableSpeedSign::getParentName(), GNERerouter::getParentName(), GNELane::getParentName(), GNEVehicleType::getParentName(), GNETAZ::getParentName(), GNEDetector::getParentName(), GNEPoly::getParentName(), GNEPOI::getParentName(), GNERide::getParentName(), GNEPersonTrip::getParentName(), GNEWalk::getParentName(), GNERoute::getParentName(), GNEPerson::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnection::updateID().
|
inlineinherited |
return the current angle in navigational degrees
Definition at line 85 of file GUIBaseVehicle.h.
References GUIBaseVehicle::getAngle(), and GeomHelper::naviDegree().
Referenced by GUIVehicle::getParameterWindow(), and getParameterWindow().
|
inlinevirtualinherited |
get the current parking area stop
Implements SUMOVehicle.
Definition at line 210 of file MEVehicle.h.
|
inlinevirtualinherited |
Returns the number of new routes this vehicle got.
Implements SUMOVehicle.
Definition at line 315 of file MSBaseVehicle.h.
References MSBaseVehicle::myNumberReroutes.
Referenced by GUIBaseVehicle::drawGLAdditional(), getColorValue(), GUIVehicle::getColorValue(), and MSBaseVehicle::replaceRouteEdges().
|
inherited |
return the number of passengers
Definition at line 808 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getContainerDevice(), GUIBaseVehicle::myVehicle, and MSDevice_Transportable::size().
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and GUIBaseVehicle::drawOnPos().
|
inlinevirtualinherited |
return the numerical ID which is only for internal usage
Implements SUMOVehicle.
Definition at line 489 of file MSBaseVehicle.h.
References MSBaseVehicle::myNumericalID.
Referenced by MSLane::vehicle_position_sorter::operator()(), and MSVehicleTransfer::VehicleInformation::operator<().
|
inherited |
return the number of passengers
Definition at line 799 of file GUIBaseVehicle.cpp.
References MSBaseVehicle::getPersonDevice(), GUIBaseVehicle::myVehicle, and MSDevice_Transportable::size().
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and GUIBaseVehicle::drawOnPos().
|
inherited |
Returns the distance that was already driven by this vehicle.
Definition at line 405 of file MSBaseVehicle.cpp.
References SUMOTrafficObject::getPositionOnLane(), MSBaseVehicle::hasArrived(), MSBaseVehicle::myArrivalPos, MSBaseVehicle::myDepartPos, and MSBaseVehicle::myOdometer.
Referenced by libsumo::Vehicle::getDistance().
|
virtualinherited |
Returns the value for generic parameter 'name' or ''.
Reimplemented from GUIGlObject.
Definition at line 333 of file GUIBaseVehicle.cpp.
References Parameterised::getParameter(), MSBaseVehicle::getParameter(), and GUIBaseVehicle::myVehicle.
|
virtualinherited |
Returns the vehicle's parameter (including departure definition)
Implements SUMOVehicle.
Definition at line 144 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myParameter.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), GUIBaseVehicle::drawOnPos(), MSBaseVehicle::getDepartDelay(), MSEdge::getDepartLane(), MSEdge::getDepartPosBound(), MSLane::getDepartPosLat(), MSLane::getDepartSpeed(), libsumo::Vehicle::getLine(), GUIBaseVehicle::getOptionalName(), libsumo::Vehicle::getParameter(), GUIVehicle::getParameterWindow(), getParameterWindow(), libsumo::Vehicle::getVia(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), libsumo::Vehicle::moveTo(), GUIViewTraffic::onGamingClick(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSVehicle::rerouteParkingArea(), GUIBaseVehicle::setFunctionalColor(), libsumo::Vehicle::setLine(), libsumo::Vehicle::setParameter(), libsumo::Vehicle::setVia(), 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 61 of file GUIMEVehicle.cpp.
References GUIParameterTableWindow::closeBuilding(), MEVehicle::getBlockTimeSeconds(), MSBaseVehicle::getChosenSpeedFactor(), MEVehicle::getCurrentLinkPenaltySeconds(), MEVehicle::getCurrentStoppingTimeSeconds(), MSBaseVehicle::getDepartDelay(), getEdgeID(), MEVehicle::getEventTimeSeconds(), MEVehicle::getLastEntryTimeSeconds(), GUIBaseVehicle::getNaviDegree(), MSBaseVehicle::getParameter(), MEVehicle::getPositionOnLane(), getSegmentIndex(), MEVehicle::getSpeed(), MEVehicle::getWaitingSeconds(), SUMOVehicleParameter::line, GUIParameterTableWindow::mkItem(), MSBaseVehicle::myDevices, MSBaseVehicle::myParameter, time2string(), and toString().
|
virtualinherited |
Returns the name of the parent object (if any)
Reimplemented in GNEVehicle, GNEPerson, GNERoute, GNEWalk, GNEPersonTrip, GNERide, GNEPOI, GNEPoly, GNEDetector, GNEStop, GNETAZ, GNEVehicleType, GNECalibrator, GNELane, GNEStoppingPlace, GNERerouter, GUILane, GNEAccess, GNEVariableSpeedSign, GNERerouterInterval, GNETAZSourceSink, GNECalibratorFlow, GNEVariableSpeedSignStep, GNEParkingAreaReroute, GNEParkingSpace, GNEClosingLaneReroute, GNEDestProbReroute, GNEDetectorE3, GNERouteProbReroute, GNEClosingReroute, GNERouteProbe, and GNEVaporizer.
Definition at line 143 of file GUIGlObject.cpp.
References StringUtils::emptyString.
Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().
|
inlineinherited |
Definition at line 493 of file MSBaseVehicle.h.
References MSBaseVehicle::myPersonDevice.
Referenced by GUIBaseVehicle::getNumPassengers().
|
virtualinherited |
Returns the list of persons.
Implements SUMOVehicle.
Definition at line 623 of file MSBaseVehicle.cpp.
References MSBaseVehicle::getPersons().
Referenced by libsumo::Vehicle::getPersonIDList().
|
virtualinherited |
Returns the number of persons.
Implements SUMOVehicle.
Definition at line 617 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myParameter, MSBaseVehicle::myPersonDevice, SUMOVehicleParameter::personNumber, and MSDevice_Transportable::size().
Referenced by GUIVehicle::getParameterWindow(), libsumo::Vehicle::getPersonNumber(), MSVehicle::processNextStop(), MEVehicle::processStop(), and MSXMLRawOut::writeVehicle().
|
virtualinherited |
retrieve riding persons
Implements SUMOVehicle.
Definition at line 652 of file MSBaseVehicle.cpp.
References MSDevice_Transportable::getTransportables(), MSBaseVehicle::myEmptyTransportableVector, and MSBaseVehicle::myPersonDevice.
Referenced by MSBaseVehicle::getPersonIDList(), MSVehicle::rerouteParkingArea(), and MSXMLRawOut::writeVehicle().
|
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 265 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_FUTUREROUTE, MID_HIDE_LFLINKITEMS, MID_REMOVE_OBJECT, MID_SHOW_ALLROUTES, MID_SHOW_BEST_LANES, MID_SHOW_CURRENTROUTE, MID_SHOW_FOES, MID_SHOW_FUTUREROUTE, MID_SHOW_LFLINKITEMS, MID_START_TRACK, MID_STOP_TRACK, GUIBaseVehicle::myPopup, GUIBaseVehicle::VO_SHOW_ALL_ROUTES, GUIBaseVehicle::VO_SHOW_BEST_LANES, GUIBaseVehicle::VO_SHOW_FUTURE_ROUTE, GUIBaseVehicle::VO_SHOW_LFLINKITEMS, and GUIBaseVehicle::VO_SHOW_ROUTE.
|
inlinevirtual |
Return current position (x/y, cartesian)
Implements GUIBaseVehicle.
Definition at line 75 of file GUIMEVehicle.h.
References MEVehicle::getPosition().
|
virtualinherited |
Get the vehicle's position along the lane.
Implements SUMOTrafficObject.
Definition at line 77 of file MEVehicle.cpp.
References MESegment::getIndex(), MESegment::getLength(), and MEVehicle::mySegment.
Referenced by MEVehicle::getAngle(), MEVehicle::getBackPositionOnLane(), getParameterWindow(), MEVehicle::getPosition(), MEVehicle::getSlope(), and MEVehicle::hasArrived().
|
virtualinherited |
Returns the vehicle's previous speed.
Implements SUMOTrafficObject.
Reimplemented in MSVehicle.
Definition at line 68 of file MSBaseVehicle.cpp.
|
inlineinherited |
Returns the index of the que the vehicle is in.
Definition at line 255 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 197 of file MSBaseVehicle.h.
References MSBaseVehicle::myCurrEdge.
Referenced by MSBaseVehicle::replaceRouteEdges(), and MSBaseVehicle::reroute().
|
virtualinherited |
Implements SUMOVehicle.
Definition at line 758 of file MSBaseVehicle.cpp.
References MSBaseVehicle::getEdge(), SUMOVehicle::getLane(), MSEdge::getLanes(), and MSLane::getRNG().
Referenced by MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSCFModel_Daniel1::finalizeSpeed(), MSCFModel_Kerner::finalizeSpeed(), MSCFModel_W99::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_KraussX::patchSpeedBeforeLC(), MSCFModel_Krauss::patchSpeedBeforeLC(), MSCFModel_KraussOrig1::patchSpeedBeforeLC(), MSCFModel_SmartSK::patchSpeedBeforeLC(), MSVehicle::planMoveInternal(), MSVehicle::setApproachingForAllLinks(), and MSCFModel_SmartSK::updateMyHeadway().
|
virtualinherited |
Implements SUMOVehicle.
Definition at line 747 of file MSBaseVehicle.cpp.
References MSBaseVehicle::getEdge(), SUMOVehicle::getLane(), MSEdge::getLanes(), and MSLane::getRNGIndex().
Referenced by libsumo::Vehicle::changeTarget(), GUIVehicle::rerouteDRTStop(), libsumo::Vehicle::rerouteEffort(), MSVehicle::rerouteParkingArea(), and libsumo::Vehicle::rerouteTraveltime().
|
inlinevirtualinherited |
Returns the current route.
Implements SUMOVehicle.
Definition at line 115 of file MSBaseVehicle.h.
References MSBaseVehicle::myRoute.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), GUIBaseVehicle::drawRoute(), MSDevice_SSM::findFoeConflictLane(), MSEdge::getDepartLane(), libsumo::Vehicle::getDrivingDistance(), libsumo::Vehicle::getDrivingDistance2D(), libsumo::Vehicle::getNextTLS(), MSCFModel_CC::getParameter(), libsumo::Vehicle::getRoute(), libsumo::Vehicle::getRouteID(), MSRailSignal::hasOncomingRailTraffic(), MSLane::isInsertionSuccess(), libsumo::Vehicle::moveTo(), libsumo::Vehicle::moveToXY(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::rerouteParkingArea(), GUIBaseVehicle::setFunctionalColor(), and MSFCDExport::write().
|
inherited |
return index of edge within route
Definition at line 391 of file MSBaseVehicle.cpp.
References MSRoute::begin(), MSBaseVehicle::myCurrEdge, and MSBaseVehicle::myRoute.
Referenced by libsumo::Vehicle::getDrivingDistance(), libsumo::Vehicle::getDrivingDistance2D(), GUIVehicle::getPreviousLane(), libsumo::Vehicle::getRouteIndex(), libsumo::Vehicle::moveToXY(), MSDevice_BTsender::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyMove(), MSDevice_BTreceiver::notifyMove(), GUIVehicle::rerouteDRTStop(), and MSFCDExport::write().
|
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 736 of file GUIBaseVehicle.cpp.
References MIN2(), and GUIBaseVehicle::mySeatPositions.
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers().
|
inlineinherited |
Returns the current segment the vehicle is on.
Definition at line 247 of file MEVehicle.h.
References MEVehicle::mySegment.
Referenced by MELoop::changeSegment(), MELoop::checkCar(), getColorValue(), getSegmentIndex(), MEVehicle::isOnRoad(), MESegment::loadState(), MELoop::setApproaching(), MELoop::teleportVehicle(), and MELoop::vaporizeCar().
int GUIMEVehicle::getSegmentIndex | ( | ) | const |
Definition at line 251 of file GUIMEVehicle.cpp.
References MESegment::getIndex(), and MEVehicle::getSegment().
Referenced by getParameterWindow().
|
inherited |
Replaces the current vehicle type with a new one used by this vehicle only.
If the currently used vehicle type is already marked as being used by this vehicle only, no new type is created.
Definition at line 736 of file MSBaseVehicle.cpp.
References MSVehicleType::buildSingularType(), MSBaseVehicle::getID(), MSVehicleType::getID(), MSVehicleType::isVehicleSpecific(), MSBaseVehicle::myType, and MSBaseVehicle::replaceVehicleType().
Referenced by TraCIServerAPI_Vehicle::processSet(), MSVehicle::setActionStepLength(), MSDevice_ToC::setState(), and MSDevice_ToC::triggerMRM().
|
virtualinherited |
Returns the slope of the road at vehicle's position.
Reimplemented from MSBaseVehicle.
Definition at line 92 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 SUMOTrafficObject.
Definition at line 106 of file MEVehicle.cpp.
References MEVehicle::getAverageSpeed(), and MEVehicle::getWaitingTime().
Referenced by MEVehicle::estimateLeaveSpeed(), getColorValue(), getParameterWindow(), MESegment::isOpen(), MESegment::newArrival(), MESegment::receive(), and MELoop::setApproaching().
|
virtualinherited |
Returns the list of still pending stop edges.
Implements MSBaseVehicle.
Definition at line 281 of file MEVehicle.cpp.
References MEVehicle::myStopEdges.
|
virtualinherited |
return list of route indices for the remaining stops
Implements SUMOVehicle.
Definition at line 292 of file MEVehicle.cpp.
References MSRoute::begin(), MSRoute::end(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::myRoute, and MEVehicle::myStopEdges.
|
virtual |
retrieve information about the current stop state
Implements GUIBaseVehicle.
Definition at line 233 of file GUIMEVehicle.cpp.
References MEVehicle::isParking(), and MEVehicle::isStopped().
Returns until when to stop at the given segment.
[in] | seg | The segment in question |
[in] | time | the current time |
Definition at line 259 of file MEVehicle.cpp.
References MEVehicle::myStops.
Referenced by MEVehicle::getCurrentStoppingTimeSeconds(), and MESegment::receive().
|
inherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 180 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIPerson::drawAction_drawWalkingareaPath(), GNECalibrator::drawCalibratorSymbol(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEParkingArea::drawGL(), GNEVaporizer::drawGL(), GNERouteProbe::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingSpace::drawGL(), GNEVariableSpeedSign::drawGL(), GNEDetectorE1Instant::drawGL(), GNEAccess::drawGL(), GNERerouter::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPerson::drawGL(), GNECrossing::drawGL(), GUIContainer::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEDetectorE2::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GNELane::drawGL(), GNEStop::drawGL(), GNEPoly::drawGL(), GNEPOI::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNEPerson::drawGL(), GNEVehicle::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNELane::drawVSSSymbol(), GNEJunction::getAttribute(), GNEViewNet::getAttributeCarriersInBoundary(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUIGlChildWindow::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), GNENetElement::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNENetElement::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), and GNEVehicle::unselectAttributeCarrier().
|
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 127 of file GUIMEVehicle.cpp.
References GUIParameterTableWindow::closeBuilding(), MSVehicleType::getContainerCapacity(), MSVehicleType::getEmissionClass(), MSVehicleType::getID(), MSVehicleType::getLength(), MSBaseVehicle::getMaxSpeed(), MSVehicleType::getMinGap(), PollutantsInterface::getName(), MSVehicleType::getParameter(), Parameterised::getParametersMap(), MSVehicleType::getPersonCapacity(), MSVehicleType::getVehicleClass(), GUIParameterTableWindow::mkItem(), MSBaseVehicle::myType, and SumoVehicleClassStrings.
|
inlinevirtualinherited |
Returns the vehicle's access class.
Implements SUMOTrafficObject.
Definition at line 131 of file MSBaseVehicle.h.
References MSVehicleType::getParameter(), MSBaseVehicle::myType, and SUMOVTypeParameter::vehicleClass.
Referenced by MSVehicle::canReverse(), MSLaneChanger::changeOpposite(), GUIVehicle::drawRouteHelper(), libsumo::Vehicle::getNextTLS(), MSLane::getStopOffset(), MSPedestrianPushButton::isActiveForEdge(), libsumo::Vehicle::moveToXY(), and MSBaseVehicle::reroute().
|
inlinevirtualinherited |
Returns the vehicle's type definition.
Implements SUMOTrafficObject.
Definition at line 123 of file MSBaseVehicle.h.
References MSBaseVehicle::myType.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSCFModel_ACC::accelGapControl(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeaders(), MSPModel_Striping::addCrossingVehs(), libsumo::Helper::applySubscriptionFilters(), MSVehicle::basePos(), MSLaneChanger::change(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::checkBlocking(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeToNewLane(), MSLane::checkFailure(), MSLane::checkForPedestrians(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSDevice_SSM::classifyEncounter(), MSLCM_SL2015::commitManoeuvre(), MSLaneChanger::computeOvertakingTime(), MSLCM_SL2015::computeSpeedLat(), MSAbstractLaneChangeModel::computeSpeedLat(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawLinkItems(), GUIVehicle::drawAction_drawVehicleBlinker(), GUIVehicle::drawAction_drawVehicleBrakeLight(), GUIEdge::drawMesoVehicles(), MSLane::enteredByLaneChange(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSDevice_SSM::estimateConflictTimes(), MSAbstractLaneChangeModel::estimateLCDuration(), MEVehicle::estimateLeaveSpeed(), MSVehicle::estimateLeaveSpeed(), MSLane::executeMovements(), MSLane::freeInsertion(), MSVehicle::Influencer::gapControlSpeed(), MEVehicle::getBackPositionOnLane(), MSLane::getBruttoOccupancy(), GUIBaseVehicle::getCenteringBoundary(), MSLaneChanger::getColumnleader(), MSLane::getCriticalLeader(), MSEdge::getDepartLane(), MSEdge::getDepartPosBound(), MSLane::getDepartPosLat(), libsumo::Vehicle::getDrivingDistance2D(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), MSBaseVehicle::getImpatience(), MSVehicle::getLateralOverlap(), MSLane::getLeader(), MSVehicle::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), GUIVehicle::getLeftSideOnEdge(), MSLane::getNettoOccupancy(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), MSVehicle::getRightSideOnEdge(), MSVehicle::getRightSideOnLane(), MSVehicle::getSafeFollowSpeed(), MSLeaderInfo::getSubLanes(), MSVehicle::getTimeGapOnLane(), MESegment::getTimeHeadway(), MSPModel_Striping::getVehicleObstacles(), libsumo::Helper::getVehicleType(), GUIBaseVehicle::getVType(), MSLCM_SL2015::getWidth(), MSLink::getZipperSpeed(), MSLane::handleCollisionBetween(), MESegment::hasSpaceFor(), MSVehicle::ignoreRed(), MSVehicle::Influencer::implicitSpeedRemote(), MSLane::incorporateVehicle(), MSLCM_SL2015::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_SL2015::informLeaders(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MESegment::isOpen(), MSVehicle::keepClear(), MSLCM_SL2015::keepLatGap(), MSAbstractLaneChangeModel::laneChangeOutput(), MSLane::lastInsertion(), MSLane::leftByLaneChange(), MESegment::loadState(), MSPModel_Striping::moveInDirection(), libsumo::Vehicle::moveToXY(), libsumo::Vehicle::openGap(), MSVehicle::overlap(), MSLCM_LC2013::overtakeDistance(), MSLCM_DK2008::patchSpeed(), MSCFModel_Krauss::patchSpeedBeforeLC(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSVehicle::processTraCISpeedControl(), MESegment::receive(), MSLaneChanger::ChangeElem::registerHop(), MSLaneChanger::registerUnchanged(), MSAbstractLaneChangeModel::remainingTime(), MESegment::removeCar(), MSLane::removeVehicle(), MSLane::safeInsertionSpeed(), MSLCM_LC2013::saveBlockerLength(), MSLCM_SL2015::saveBlockerLength(), MSBaseVehicle::saveState(), GUIVehicle::selectBlockingFoes(), MSVehicleType::setActionStepLength(), MSAbstractLaneChangeModel::setFollowerGaps(), GUIBaseVehicle::setFunctionalColor(), MSAbstractLaneChangeModel::setLeaderGaps(), MSAbstractLaneChangeModel::setOrigLeaderGaps(), MSVehicle::setTentativeLaneAndPosition(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSCFModel_CACC::speedGapControl(), MSLaneChangerSublane::startChangeSublane(), MSVehicle::unsafeLinkAhead(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSLCM_SL2015::updateGaps(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSBatteryExport::write(), and MSQueueExport::writeLane().
|
inlineprotectedinherited |
A shortcut to myVehicle.myType.
Definition at line 329 of file GUIBaseVehicle.h.
References MSBaseVehicle::getVehicleType(), and GUIBaseVehicle::myVehicle.
Referenced by GUIBaseVehicle::computeSeats(), drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawAction_drawVehicleAsPolyWithCarriagges(), and GUIBaseVehicle::drawOnPos().
|
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 310 of file MEVehicle.h.
References MEVehicle::getWaitingTime(), and STEPS2TIME.
Referenced by getColorValue(), getParameterWindow(), and MSEmissionExport::write().
|
inlinevirtualinherited |
Returns the duration for which the vehicle was blocked.
Implements SUMOTrafficObject.
Definition at line 294 of file MEVehicle.h.
References MAX2(), MEVehicle::myBlockTime, and MEVehicle::myEventTime.
Referenced by MELoop::checkCar(), MEVehicle::getAccumulatedWaitingTime(), MEVehicle::getSpeed(), MEVehicle::getWaitingSeconds(), MESegment::isOpen(), and MELoop::setApproaching().
|
inlineinherited |
Returns the vehicle's width.
Definition at line 418 of file MSBaseVehicle.h.
References MSVehicleType::getWidth(), and MSBaseVehicle::myType.
Referenced by MSDevice_SSM::classifyEncounter(), MSAbstractLaneChangeModel::determineTargetLane(), drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawVehicleBlinker(), GUIVehicle::drawAction_drawVehicleBrakeLight(), MSVehicle::getLateralOverlap(), MSVehicle::lateralDistanceToLane(), MSVehicle::planMoveInternal(), MSLaneChangerSublane::startChangeSublane(), and MSDevice_SSM::updatePassedEncounter().
|
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 695 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::myAdditionalVisualizations.
Referenced by 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 156 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::moveRoutePointer(), and MESegment::receive().
|
virtualinherited |
Returns whether this vehicle has already departed.
Implements SUMOVehicle.
Definition at line 379 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myDeparture, and MSBaseVehicle::NOT_YET_DEPARTED.
Referenced by MSVehicle::addStop(), MSBaseVehicle::createDevice(), MSLane::forceVehicleInsertion(), libsumo::Vehicle::getRouteIndex(), MEVehicle::loadState(), MSVehicle::loadState(), libsumo::Vehicle::moveTo(), libsumo::Vehicle::remove(), and MSBaseVehicle::saveState().
|
inherited |
check whether the vehicle is equiped with a device of the given type
Definition at line 673 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myDevices.
Referenced by MSBaseVehicle::createDevice(), and libsumo::Vehicle::getParameter().
|
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 435 of file MSBaseVehicle.cpp.
References MSRoute::begin(), MSRoute::end(), MSVehicleType::getVehicleClass(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::myRoute, and MSBaseVehicle::myType.
Referenced by MESegment::initialise(), libsumo::Vehicle::isRouteValid(), MSBaseVehicle::MSBaseVehicle(), MSBaseVehicle::replaceRouteEdges(), and libsumo::Vehicle::setRouteID().
|
inlinevirtualinherited |
Returns the information whether the front of the vehhicle is on the given lane.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 180 of file MSBaseVehicle.h.
|
virtualinherited |
Returns the information whether the vehicle is on a road (is simulated)
Reimplemented from MSBaseVehicle.
Definition at line 165 of file MEVehicle.cpp.
References MEVehicle::getSegment().
|
virtualinherited |
Returns whether the vehicle is parking.
Implements SUMOVehicle.
Definition at line 171 of file MEVehicle.cpp.
Referenced by getStopInfo().
|
inlinevirtualinherited |
Returns the information whether the vehicle is fully controlled via TraCI.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 168 of file MSBaseVehicle.h.
|
inlinevirtualinherited |
whether this vehicle is selected in the GUI
Implements SUMOVehicle.
Reimplemented in GUIVehicle.
Definition at line 479 of file MSBaseVehicle.h.
Referenced by MSCFModel_Wiedemann::_v(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), and MSCFModel_IDM::followSpeed().
|
virtualinherited |
Returns whether the vehicle is at a stop.
Implements SUMOTrafficObject.
Definition at line 241 of file MEVehicle.cpp.
References MEVehicle::mySegment, and MEVehicle::myStops.
Referenced by getStopInfo(), MEVehicle::isStoppedInRange(), MEVehicle::processStop(), MESegment::receive(), and MESegment::send().
|
virtualinherited |
return whether the given position is within range of the current stop
Implements SUMOVehicle.
Definition at line 253 of file MEVehicle.cpp.
References MEVehicle::isStopped().
|
virtualinherited |
Returns whether the vehicle is on a triggered stop.
Implements SUMOVehicle.
Definition at line 247 of file MEVehicle.cpp.
|
inlinevirtualinherited |
Get the vehicle's ID.
Implements SUMOTrafficObject.
Definition at line 78 of file MSBaseVehicle.h.
|
virtualinherited |
Loads the state of this vehicle from the given description.
Implements SUMOVehicle.
Definition at line 465 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::myDepartPos, MSBaseVehicle::myDeparture, MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MEVehicle::setSegment(), SUMO_ATTR_POSITION, SUMO_ATTR_STATE, SUMOTime_MAX, and SUMOTime_MIN.
|
inherited |
Returns whether the vehicle is allowed to pass the next junction.
Definition at line 362 of file MEVehicle.cpp.
References MESegment::isOpen(), and MEVehicle::mySegment.
Referenced by MELoop::changeSegment(), and MELoop::checkCar().
|
inherited |
Update when the vehicle enters a new edge in the move step.
Definition at line 138 of file MEVehicle.cpp.
References MSRoute::end(), MEVehicle::hasArrived(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, and SUMOVehicleParameter::via.
Referenced by METriggeredCalibrator::execute(), 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 371 of file MSBaseVehicle.cpp.
References MSNet::getCurrentTimeStep(), MSNet::getInstance(), SUMOTrafficObject::getPositionOnLane(), MSNet::getVehicleControl(), MSBaseVehicle::myDepartPos, MSBaseVehicle::myDeparture, and MSVehicleControl::vehicleDeparted().
Referenced by MSVehicle::enterLaneAtInsertion(), MSVehicle::Influencer::postProcessRemoteControl(), and MESegment::receive().
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 165 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
|
inherited |
ends the current stop and performs loading/unloading
Definition at line 306 of file MEVehicle.cpp.
References MSStopOut::active(), MSTransportableControl::boardAnyWaiting(), SUMOVehicleParameter::Stop::endPos, MSNet::getContainerControl(), MSBaseVehicle::getContainerNumber(), MSBaseVehicle::getDevice(), MSBaseVehicle::getEdge(), MESegment::getEdge(), Named::getID(), MSStopOut::getInstance(), MSNet::getInstance(), MESegment::getNextSegment(), MSNet::getPersonControl(), MSBaseVehicle::getPersonNumber(), MSNet::hasContainers(), MSNet::hasPersons(), MEVehicle::isStopped(), MSTransportableControl::loadAnyWaiting(), MEVehicle::myLastEntryTime, MEVehicle::mySegment, MEVehicle::myStopEdges, MEVehicle::myStops, MSEdge::removeWaiting(), MSStopOut::stopEnded(), MSDevice_Vehroutes::stopEnded(), and MSStopOut::stopStarted().
Referenced by MESegment::send().
|
inlinevirtualinherited |
Returns the remaining stop duration for a stopped vehicle or 0.
Implements SUMOVehicle.
Definition at line 157 of file MEVehicle.h.
|
virtualinherited |
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 |
Reimplemented from GUIGlObject.
Definition at line 711 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::myAdditionalVisualizations, and GUISUMOAbstractView::removeAdditionalGLVisualisation().
Referenced by GUIViewTraffic::onGamingRightClick().
|
virtualinherited |
notify object about popup menu removal
Reimplemented from GUIGlObject.
Definition at line 319 of file GUIBaseVehicle.cpp.
References GUIBaseVehicle::myPopup.
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 293 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 474 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myMoveReminders.
|
virtualinherited |
removes a person or container
Implements SUMOVehicle.
Definition at line 640 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myContainerDevice, MSBaseVehicle::myPersonDevice, and MSDevice_Transportable::removeTransportable().
|
virtualinherited |
replace the vehicle parameter (deleting the old one)
Implements SUMOVehicle.
Definition at line 159 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myParameter.
Referenced by MSVehicle::rerouteParkingArea().
|
inlinevirtualinherited |
replace the current parking area stop with a new stop with merge duration
Implements SUMOVehicle.
Definition at line 204 of file MEVehicle.h.
|
virtualinherited |
Replaces the current route by the given one.
Implements SUMOVehicle.
Definition at line 177 of file MEVehicle.cpp.
References MSRoute::addReference(), MSBaseVehicle::addStops(), 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(), UNUSED_PARAMETER, and MSNet::VEHICLE_STATE_NEWROUTE.
|
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 |
[in] | removeStops | Whether stops should be removed if they do not fit onto the new route |
Implements SUMOVehicle.
Definition at line 303 of file MSBaseVehicle.cpp.
References MSRoute::addReference(), MSRoute::begin(), RGBColor::DEFAULT_COLOR, MSRoute::dictionary(), StringUtils::endsWith(), MSGlobals::gCheckRoutes, MSRoute::getColor(), MSRoute::getEdges(), Named::getID(), MSBaseVehicle::getID(), MSBaseVehicle::getNumberReroutes(), MSBaseVehicle::getRerouteOrigin(), MSBaseVehicle::hasValidRoute(), MSBaseVehicle::myCurrEdge, MSBaseVehicle::myRoute, MSRoute::release(), SUMOVehicle::replaceRoute(), MSRoute::setCosts(), MSRoute::setSavings(), MSRoute::size(), SUMO_TAG_PARKING_ZONE_REROUTE, toString(), and WRITE_WARNING.
Referenced by libsumo::Vehicle::changeTarget(), MSVehicle::Influencer::postProcessRemoteControl(), MSBaseVehicle::reroute(), GUIVehicle::rerouteDRTStop(), MSVehicle::rerouteParkingArea(), and libsumo::Vehicle::setRoute().
|
inherited |
Replaces the current vehicle type by the one given.
If the currently used vehicle type is marked as being used by this vehicle only, it is deleted, first. The new, given type is then assigned to "myType".
[in] | type | The new vehicle type |
Definition at line 726 of file MSBaseVehicle.cpp.
References MSNet::getInstance(), MSNet::getVehicleControl(), MSVehicleType::isVehicleSpecific(), MSBaseVehicle::myType, and MSVehicleControl::removeVType().
Referenced by MSBaseVehicle::getSingularType(), libsumo::Vehicle::setType(), and MSDevice_ToC::switchHolderType().
|
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 187 of file MSBaseVehicle.cpp.
References MSEdge::allowedLanes(), MSBaseVehicle::calculateArrivalParams(), SUMOAbstractRouter< E, V >::compute(), SUMOAbstractRouter< E, V >::computeLooped(), DEBUG_COND, MSInsertionControl::descheduleDeparture(), MSEdge::dictionary(), MSRoute::end(), SUMOVehicleParameter::fromTaz, MSGlobals::gCheckRoutes, MSRoute::getEdges(), Named::getID(), MSBaseVehicle::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), SUMOVehicle::getLane(), MSRoute::getLastEdge(), SUMOTrafficObject::getPositionOnLane(), MSBaseVehicle::getRerouteOrigin(), MSBaseVehicle::getStopEdges(), MSBaseVehicle::getVClass(), MSEdge::isTazConnector(), MSBaseVehicle::myArrivalPos, MSBaseVehicle::myCurrEdge, MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, SUMOAbstractRouter< E, V >::recomputeCosts(), MSBaseVehicle::replaceRouteEdges(), SIMTIME, toString(), SUMOVehicleParameter::toTaz, SUMOVehicleParameter::via, and WRITE_WARNING.
Referenced by libsumo::Vehicle::changeTarget(), GUIVehicle::rerouteDRTStop(), libsumo::Vehicle::rerouteEffort(), and libsumo::Vehicle::rerouteTraveltime().
|
inherited |
reset index of edge within route
Definition at line 397 of file MSBaseVehicle.cpp.
References MSRoute::begin(), MSRoute::end(), MSBaseVehicle::myArrivalPos, MSBaseVehicle::myCurrEdge, MSBaseVehicle::myParameter, and MSBaseVehicle::myRoute.
Referenced by MSCalibrator::execute(), and libsumo::Vehicle::moveTo().
|
virtualinherited |
Saves the states of a vehicle.
Reimplemented from MSBaseVehicle.
Definition at line 433 of file MEVehicle.cpp.
References MSRoute::begin(), OutputDevice::closeTag(), MESegment::getEdge(), MESegment::getIndex(), MEVehicle::getQueIndex(), MESegment::isInvalid(), MEVehicle::myBlockTime, MSBaseVehicle::myCurrEdge, MSBaseVehicle::myDepartPos, MSBaseVehicle::myDeparture, MSBaseVehicle::myDevices, MEVehicle::myEventTime, MEVehicle::myLastEntryTime, MSBaseVehicle::myParameter, MSBaseVehicle::myRoute, MEVehicle::mySegment, MEVehicle::myStops, MSBaseVehicle::saveState(), SUMO_ATTR_STATE, toString(), SUMOVehicleParameter::Stop::write(), OutputDevice::writeAttr(), and Parameterised::writeParams().
|
virtual |
adds the blocking foes to the current selection
Implements GUIBaseVehicle.
Definition at line 257 of file GUIMEVehicle.cpp.
|
inlinevirtualinherited |
Sets this vehicle's desired arrivalPos for its current route.
Implements SUMOVehicle.
Definition at line 288 of file MSBaseVehicle.h.
References MSBaseVehicle::myArrivalPos.
|
inlineinherited |
Sets the time at which the vehicle was blocked.
[in] | t | The blocking time |
Definition at line 279 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 433 of file MSBaseVehicle.h.
References MSBaseVehicle::myChosenSpeedFactor.
Referenced by MSCFModel_CC::finalizeSpeed(), and GUISUMOViewParent::onCmdSpeedFactor().
|
protectedinherited |
sets the color according to the currente settings
Definition at line 587 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().
|
inherited |
try to set the given parameter from any of the vehicles devices, raise InvalidArgument if no device parameter by that name exists
Definition at line 714 of file MSBaseVehicle.cpp.
References MSBaseVehicle::myDevices.
Referenced by libsumo::Vehicle::setParameter().
|
inlineinherited |
Sets the (planned) time at which the vehicle leaves his current cell.
[in] | t | The leaving time |
Definition at line 217 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 599 of file GUIBaseVehicle.cpp.
References RGBColor::BLUE, SUMOVehicleParameter::color, RGBColor::DEFAULT_COLOR, Position::distanceTo(), RGBColor::fromHSV(), Boundary::getCenter(), MSRoute::getColor(), MSVehicleType::getColor(), MSRoute::getEdges(), MSVehicleType::getGuiShape(), MSNet::getInstance(), MSBaseVehicle::getParameter(), MSBaseVehicle::getRoute(), MSBaseVehicle::getVehicleType(), M_PI, RGBColor::RED, SVS_EMERGENCY, SVS_FIREBRIGADE, SVS_POLICE, VEHPARS_COLOR_SET, VTYPEPARS_COLOR_SET, MSVehicleType::wasSet(), SUMOVehicleParameter::wasSet(), RGBColor::WHITE, 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 263 of file MEVehicle.h.
References MEVehicle::myLastEntryTime.
Referenced by MESegment::receive().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 173 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::changeAdditionalID(), GNEDemandElement::changeDemandElementID(), GNENet::renameJunction(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
|
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 238 of file MEVehicle.h.
References MEVehicle::myQueIndex, and MEVehicle::mySegment.
Referenced by MELoop::changeSegment(), METriggeredCalibrator::execute(), MEVehicle::loadState(), MESegment::receive(), and MELoop::teleportVehicle().
|
inlinevirtualinherited |
Returns whether the vehicle stops at the given stopping place.
Implements SUMOVehicle.
Definition at line 174 of file MEVehicle.h.
|
inlinevirtualinherited |
Returns whether the vehicle stops at the given edge.
Implements SUMOVehicle.
Definition at line 178 of file MEVehicle.h.
|
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 171 of file MSBaseVehicle.cpp.
References MSRoute::begin(), MSBaseVehicle::myCurrEdge, and MSBaseVehicle::myRoute.
Referenced by MSVehicleTransfer::add(), MSLane::appropriate(), MSVehicleTransfer::checkInsertions(), MESegment::getLink(), MSBaseVehicle::hasArrived(), MSPedestrianPushButton::isActiveForEdge(), MELoop::nextSegment(), and MESegment::receive().
|
inherited |
Updates a single vehicle detector if present.
Definition at line 378 of file MEVehicle.cpp.
References MESegment::getIndex(), MEVehicle::getLastEntryTime(), MESegment::getLength(), MSBaseVehicle::myMoveReminders, MEVehicle::mySegment, and MSMoveReminder::updateDetector().
|
inherited |
Updates all vehicle detectors.
Definition at line 396 of file MEVehicle.cpp.
References MSBaseVehicle::getEdge(), MEVehicle::getEventTime(), MESegment::getIndex(), MEVehicle::getLastEntryTime(), MESegment::getLength(), MSEdge::getLength(), MSBaseVehicle::myMoveReminders, MSBaseVehicle::myOdometer, MEVehicle::mySegment, MSMoveReminder::NOTIFICATION_JUNCTION, MSMoveReminder::NOTIFICATION_SEGMENT, and MSMoveReminder::NOTIFICATION_TELEPORT.
Referenced by MESegment::receive(), MESegment::removeCar(), and MESegment::setSpeedForQueue().
|
inlinevirtualinherited |
Returns the information whether the vehicle is fully controlled via TraCI.
Implements SUMOVehicle.
Reimplemented in MSVehicle.
Definition at line 172 of file MSBaseVehicle.h.
References UNUSED_PARAMETER.
|
staticprivateinherited |
LinkStates (Currently unused)
vector for TypeNames Initializer
Definition at line 277 of file GUIGlObject.h.
|
staticinherited |
Definition at line 69 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOViewParent::onCmdSpeedFactor(), GUISUMOViewParent::onUpdSpeedFactor(), GUISUMOAbstractView::paintGL(), TraCIServerAPI_GUI::processGet(), and GUIViewTraffic::stopTrack().
|
inherited |
Enabled visualisations, per view.
Definition at line 303 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::addActiveAddVisualisation(), GUIVehicle::drawOutsideNetwork(), GUIBaseVehicle::hasActiveAddVisualisation(), GUIBaseVehicle::removeActiveAddVisualisation(), and GUIBaseVehicle::~GUIBaseVehicle().
|
protectedinherited |
The destination lane where the vehicle stops.
Definition at line 560 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 557 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::calculateArrivalParams(), MSBaseVehicle::getArrivalPos(), MSBaseVehicle::getOdometer(), MEVehicle::hasArrived(), MSVehicle::hasArrived(), MSVehicle::planMoveInternal(), MSBaseVehicle::reroute(), MSBaseVehicle::resetRoutePosition(), MSBaseVehicle::setArrivalPos(), and MSVehicle::updateBestLanes().
|
protectedinherited |
The time at which the vehicle was blocked on its current segment.
Definition at line 379 of file MEVehicle.h.
Referenced by MEVehicle::getBlockTime(), MEVehicle::getWaitingTime(), MEVehicle::loadState(), MEVehicle::saveState(), and MEVehicle::setBlockTime().
|
protectedinherited |
A precomputed factor by which the driver wants to be faster than the speed limit.
Definition at line 524 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getChosenSpeedFactor(), MSBaseVehicle::saveState(), and MSBaseVehicle::setChosenSpeedFactor().
|
protectedinherited |
The containers this vehicle may have.
Definition at line 548 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::addContainer(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), MSBaseVehicle::getContainerDevice(), MSBaseVehicle::getContainerNumber(), MSBaseVehicle::getContainers(), MSVehicle::processNextStop(), and MSBaseVehicle::removeTransportable().
|
protectedinherited |
Iterator to current route-edge.
Definition at line 521 of file MSBaseVehicle.h.
Referenced by MSVehicle::addStop(), MSVehicle::canReverse(), GUIVehicle::drawRouteHelper(), drawRouteHelper(), MSVehicle::enterLaneAtMove(), MSBaseVehicle::getCurrentRouteEdge(), MSVehicle::getDistanceToPosition(), MSBaseVehicle::getEdge(), MSBaseVehicle::getRerouteOrigin(), MSVehicle::getRerouteOrigin(), MSBaseVehicle::getRoutePosition(), MEVehicle::getStopIndices(), MEVehicle::hasArrived(), MSVehicle::hasArrived(), MSBaseVehicle::hasValidRoute(), MSVehicle::haveValidStopEdges(), MSVehicle::leaveLane(), MEVehicle::loadState(), MSVehicle::loadState(), MEVehicle::moveRoutePointer(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessRemoteControl(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), MSBaseVehicle::reroute(), MSVehicle::rerouteParkingArea(), MSBaseVehicle::resetRoutePosition(), MEVehicle::saveState(), MSVehicle::saveState(), MSBaseVehicle::succEdge(), and MSVehicle::updateBestLanes().
|
staticprivateinherited |
Definition at line 578 of file MSBaseVehicle.h.
|
protectedinherited |
The real depart position.
Definition at line 554 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getDepartPos(), MSBaseVehicle::getOdometer(), MEVehicle::loadState(), MSVehicle::loadState(), MSBaseVehicle::onDepart(), MEVehicle::saveState(), and MSVehicle::saveState().
|
protectedinherited |
The real departure time.
Definition at line 551 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 542 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::addContainer(), MSBaseVehicle::addPerson(), MSBaseVehicle::createDevice(), MSBaseVehicle::getDevice(), MSBaseVehicle::getDeviceParameter(), MSBaseVehicle::getDevices(), GUIVehicle::getParameterWindow(), getParameterWindow(), GUIBaseVehicle::GUIBaseVehicle(), MSBaseVehicle::hasDevice(), MSBaseVehicle::MSBaseVehicle(), MEVehicle::saveState(), MSVehicle::saveState(), MSBaseVehicle::setDeviceParameter(), and MSBaseVehicle::~MSBaseVehicle().
|
staticprotectedinherited |
Definition at line 573 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getContainers(), and MSBaseVehicle::getPersons().
|
protectedinherited |
The (planned) time of leaving the segment (cell)
Definition at line 373 of file MEVehicle.h.
Referenced by MEVehicle::getAverageSpeed(), MEVehicle::getConservativeSpeed(), MEVehicle::getEventTime(), MEVehicle::getWaitingTime(), MEVehicle::hasArrived(), MEVehicle::loadState(), MEVehicle::saveState(), and MEVehicle::setEventTime().
|
privateinherited |
full name of GL Object
Definition at line 260 of file GUIGlObject.h.
Referenced by GUIGlObject::getFullName(), GUIGlObject::GUIGlObject(), and GUIGlObject::setMicrosimID().
|
privateinherited |
The numerical id of the object.
Definition at line 251 of file GUIGlObject.h.
Referenced by GUIGlObject::getGlID(), and GUIGlObject::GUIGlObject().
|
privateinherited |
The type of the object.
Definition at line 254 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), GUIGlObject::getType(), and GUIGlObject::GUIGlObject().
|
protectedinherited |
The time the vehicle entered its current segment.
Definition at line 376 of file MEVehicle.h.
Referenced by MEVehicle::getAverageSpeed(), MEVehicle::getConservativeSpeed(), MEVehicle::getCurrentStoppingTimeSeconds(), MEVehicle::getLastEntryTime(), MEVehicle::loadState(), MEVehicle::processStop(), MEVehicle::saveState(), MEVehicle::setBlockTime(), MEVehicle::setEventTime(), and MEVehicle::setLastEntryTime().
|
mutableprotectedinherited |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 342 of file GUIBaseVehicle.h.
Referenced by GUIVehicle::drawBestLanes(), and GUIBaseVehicle::~GUIBaseVehicle().
|
privateinherited |
ID of GL object.
Definition at line 257 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
protectedinherited |
Currently relevant move reminders.
Definition at line 538 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::activateReminders(), MSVehicle::activateReminders(), MSVehicle::adaptLaneEntering2MoveReminder(), MSBaseVehicle::addContainer(), MSBaseVehicle::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 563 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getNumberReroutes(), MSVehicle::replaceRoute(), and MEVehicle::replaceRoute().
|
privateinherited |
Definition at line 576 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getNumericalID().
|
protectedinherited |
A simple odometer to keep track of the length of the route already driven.
Definition at line 566 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::getOdometer(), MSVehicle::leaveLane(), and MEVehicle::updateDetectors().
|
protectedinherited |
This vehicle's parameter.
Definition at line 512 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::addContainer(), MSBaseVehicle::addPerson(), MSVehicle::addStop(), MSBaseVehicle::addStops(), MSVehicle::addTraciStop(), MSBaseVehicle::calculateArrivalParams(), MSBaseVehicle::createDevice(), MSVehicle::enterLaneAtMove(), GUIVehicle::getColorValue(), MSBaseVehicle::getContainerNumber(), MSBaseVehicle::getID(), MSBaseVehicle::getParameter(), GUIVehicle::getParameterWindow(), getParameterWindow(), MSBaseVehicle::getPersonNumber(), MEVehicle::moveRoutePointer(), MSBaseVehicle::MSBaseVehicle(), MSVehicle::planMoveInternal(), MSBaseVehicle::replaceParameter(), MSBaseVehicle::reroute(), GUIVehicle::rerouteDRTStop(), MSBaseVehicle::resetRoutePosition(), MEVehicle::saveState(), MSBaseVehicle::saveState(), MSVehicle::saveState(), MSVehicle::updateBestLanes(), and MSBaseVehicle::~MSBaseVehicle().
|
privateinherited |
Parameter table windows which refer to this object.
Definition at line 263 of file GUIGlObject.h.
Referenced by GUIGlObject::addParameterTable(), GUIGlObject::removeParameterTable(), and GUIGlObject::~GUIGlObject().
|
protectedinherited |
The passengers this vehicle may have.
Definition at line 545 of file MSBaseVehicle.h.
Referenced by MSBaseVehicle::addPerson(), GUIBaseVehicle::drawAction_drawPersonsAndContainers(), MSBaseVehicle::getPersonDevice(), MSBaseVehicle::getPersonNumber(), MSBaseVehicle::getPersons(), MSVehicle::processNextStop(), and MSBaseVehicle::removeTransportable().
|
privateinherited |
current popup (to clean up in destructor). GUIBaseVehicle is not responsible for removal
Definition at line 354 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::getPopUpMenu(), GUIBaseVehicle::removedPopupMenu(), and GUIBaseVehicle::~GUIBaseVehicle().
|
protectedinherited |
Index of the que the vehicle is in (important for multiqueue extension)
Definition at line 370 of file MEVehicle.h.
Referenced by MEVehicle::getQueIndex(), and MEVehicle::setSegment().
|
protectedinherited |
This vehicle's route.
Definition at line 515 of file MSBaseVehicle.h.
Referenced by MSVehicle::addStop(), MSBaseVehicle::addStops(), MSVehicle::basePos(), MSBaseVehicle::calculateArrivalParams(), MSVehicle::canReverse(), GUIVehicle::drawRouteHelper(), MSVehicle::getDistanceToPosition(), GUIVehicle::getPreviousLane(), MSVehicle::getRerouteOrigin(), MSBaseVehicle::getRoute(), MSBaseVehicle::getRoutePosition(), MEVehicle::getStopIndices(), MSVehicle::getStopIndices(), MEVehicle::hasArrived(), MSVehicle::hasArrived(), MSBaseVehicle::hasValidRoute(), MSVehicle::haveValidStopEdges(), MEVehicle::moveRoutePointer(), MSBaseVehicle::MSBaseVehicle(), MSVehicle::planMoveInternal(), MSVehicle::processLaneAdvances(), MSVehicle::replaceParkingArea(), MSVehicle::replaceRoute(), MEVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), MSBaseVehicle::reroute(), GUIVehicle::rerouteDRTStop(), MSVehicle::rerouteParkingArea(), MSBaseVehicle::resetRoutePosition(), MEVehicle::saveState(), MSBaseVehicle::saveState(), MSVehicle::saveState(), MSBaseVehicle::succEdge(), MSVehicle::updateBestLanes(), and MSBaseVehicle::~MSBaseVehicle().
|
privateinherited |
Definition at line 351 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawRoute(), GUIBaseVehicle::GUIBaseVehicle(), and GUIBaseVehicle::~GUIBaseVehicle().
|
mutableprotectedinherited |
positions of seats in the vehicle (updated at every drawing step)
Definition at line 345 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::computeSeats(), GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::getSeatPosition(), and GUIBaseVehicle::GUIBaseVehicle().
|
protectedinherited |
The segment the vehicle is at.
Definition at line 367 of file MEVehicle.h.
Referenced by MEVehicle::getAverageSpeed(), MEVehicle::getConservativeSpeed(), MEVehicle::getCurrentLinkPenaltySeconds(), MEVehicle::getCurrentStoppingTimeSeconds(), MEVehicle::getPositionOnLane(), MEVehicle::getSegment(), MEVehicle::hasArrived(), MEVehicle::isStopped(), MEVehicle::mayProceed(), MEVehicle::processStop(), MEVehicle::replaceRoute(), MEVehicle::saveState(), MEVehicle::setEventTime(), MEVehicle::setSegment(), MEVehicle::updateDetectorForWriting(), and MEVehicle::updateDetectors().
|
protectedinherited |
edges to stop
Definition at line 385 of file MEVehicle.h.
Referenced by MEVehicle::addStop(), MEVehicle::getStopEdges(), MEVehicle::getStopIndices(), and MEVehicle::processStop().
|
protectedinherited |
where to stop
Definition at line 382 of file MEVehicle.h.
Referenced by MEVehicle::addStop(), MEVehicle::getStoptime(), MEVehicle::isStopped(), MEVehicle::processStop(), and MEVehicle::saveState().
|
protectedinherited |
This vehicle's type.
Definition at line 518 of file MSBaseVehicle.h.
Referenced by MSVehicle::addStop(), MSBaseVehicle::calculateArrivalParams(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), MSVehicle::enterLaneAtInsertion(), MSVehicle::executeMove(), MSVehicle::getActionStepLength(), MSVehicle::getActionStepLengthSecs(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBoundingBox(), MSVehicle::getBoundingPoly(), MSVehicle::getCarFollowModel(), MSVehicle::getCO2Emissions(), MSVehicle::getCOEmissions(), MSVehicle::getElectricityConsumption(), MSVehicle::getFuelConsumption(), MSVehicle::getHarmonoise_NoiseEmissions(), MSVehicle::getHCEmissions(), MSBaseVehicle::getLength(), MSBaseVehicle::getMaxSpeed(), MSVehicle::getMaxSpeedOnLane(), MSVehicle::getNOxEmissions(), MSVehicle::getPMxEmissions(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getSingularType(), GUIVehicle::getTypeParameterWindow(), getTypeParameterWindow(), MSBaseVehicle::getVClass(), MSBaseVehicle::getVehicleType(), MSBaseVehicle::getWidth(), MSBaseVehicle::hasValidRoute(), MSVehicle::processLaneAdvances(), MSVehicle::processNextStop(), MSBaseVehicle::replaceVehicleType(), MSVehicle::updateBestLanes(), and MSVehicle::~MSVehicle().
|
privateinherited |
The vehicle to which all calls should be delegated.
Definition at line 349 of file GUIBaseVehicle.h.
Referenced by GUIBaseVehicle::drawAction_drawPersonsAndContainers(), GUIBaseVehicle::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GUIBaseVehicle::drawRoute(), GUIBaseVehicle::getCenteringBoundary(), GUIBaseVehicle::getNumContainers(), GUIBaseVehicle::getNumPassengers(), GUIBaseVehicle::getOptionalName(), GUIBaseVehicle::getVType(), GUIBaseVehicle::GUIBaseVehicle(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdRemoveObject(), and GUIBaseVehicle::setColor().
|
staticprotectedinherited |
Definition at line 571 of file MSBaseVehicle.h.
Referenced by MSVehicle::enterLaneAtInsertion(), MSBaseVehicle::hasDeparted(), and MSVehicle::Influencer::postProcessRemoteControl().
|
staticinherited |
associates object types with strings
Definition at line 68 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().