![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Representation of a lane in the micro simulation (gui-version) More...
#include <GUILane.h>
Public Types | |
enum | CollisionAction { COLLISION_ACTION_NONE, COLLISION_ACTION_WARN, COLLISION_ACTION_TELEPORT, COLLISION_ACTION_REMOVE } |
typedef std::vector< MSVehicle * > | VehCont |
Container for vehicles. More... | |
Public Member Functions | ||||
void | addApproachingLane (MSLane *lane, bool warnMultiCon) | |||
void | addIncomingLane (MSLane *lane, MSLink *viaLink) | |||
void | addParking (MSVehicle *veh) | |||
add parking vehicle. This should only used during state loading More... | ||||
void | addTo (const StoringVisitor &cont) const | |||
Adds this object to the given container. More... | ||||
bool | allowsVehicleClass (SUMOVehicleClass vclass) const | |||
virtual bool | appropriate (const MSVehicle *veh) | |||
void | changeLanes (const SUMOTime time) | |||
void | checkBufferType () | |||
void | clearParameter () | |||
Clears the parameter map. More... | ||||
void | detectCollisions (SUMOTime timestep, const std::string &stage) | |||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additional, user-triggered visualisations. More... | ||||
void | drawName (const Position &pos, const double scale, const GUIVisualizationTextSettings &settings, const double angle=0) const | |||
draw name of item More... | ||||
bool | empty () const | |||
Returns true if there is not a single vehicle on the lane. More... | ||||
void | enteredByLaneChange (MSVehicle *v) | |||
MSLane * | getBidiLane () const | |||
retrieve bidirectional lane or nullptr More... | ||||
MSLane * | getCanonicalPredecessorLane () const | |||
MSLane * | getCanonicalSuccessorLane () const | |||
double | getCenterOnEdge () const | |||
std::pair< MSVehicle *const, double > | getCriticalLeader (double dist, double seen, double speed, const MSVehicle &veh) const | |||
Returns the most dangerous leader and the distance to him. More... | ||||
int | getCrossingIndex () const | |||
return the index of the link to the next crossing if this is walkingArea, else -1 More... | ||||
double | getDouble (const std::string &key, const double defaultValue) const | |||
Returns the value for a given key converted to a double. More... | ||||
MSEdge & | getEdge () const | |||
Returns the lane's edge. More... | ||||
MSLink * | getEntryLink () const | |||
Returns the entry link if this is an internal lane, else 0. More... | ||||
MSVehicle * | getFirstAnyVehicle () const | |||
returns the first vehicle that is fully or partially on this lane More... | ||||
MSVehicle * | getFirstFullVehicle () const | |||
returns the first vehicle for which this lane is responsible or 0 More... | ||||
const MSLane * | getFirstInternalInConnection (double &offset) const | |||
Returns 0 if the lane is not internal. Otherwise the first part of the connection (sequence of internal lanes along junction) corresponding to the lane is returned and the offset is set to the distance of the begin of this lane to the begin of the returned. More... | ||||
std::pair< MSVehicle *const, double > | getFollower (const MSVehicle *ego, double egoPos, double dist, bool ignoreMinorLinks) const | |||
Find follower vehicle for the given ego vehicle (which may be on the opposite direction lane) More... | ||||
MSLeaderDistanceInfo | getFollowersOnConsecutive (const MSVehicle *ego, double backOffset, bool allSublanes, double searchDist=-1, bool ignoreMinorLinks=false) const | |||
return the sublane followers with the largest missing rear gap among all predecessor lanes (within dist) More... | ||||
const std::string & | getID () const | |||
Returns the id. More... | ||||
const std::vector< IncomingLaneInfo > & | getIncomingLanes () const | |||
LinkState | getIncomingLinkState () const | |||
get the state of the link from the logical predecessor to this lane More... | ||||
MSVehicle * | getLastAnyVehicle () const | |||
returns the last vehicle that is fully or partially on this lane More... | ||||
MSVehicle * | getLastFullVehicle () const | |||
returns the last vehicle for which this lane is responsible or 0 More... | ||||
std::pair< MSVehicle *const, double > | getLeader (const MSVehicle *veh, const double vehPos, const std::vector< MSLane * > &bestLaneConts, double dist=-1, bool checkTmpVehicles=false) const | |||
Returns the immediate leader of veh and the distance to veh starting on this lane. More... | ||||
std::pair< MSVehicle *const, double > | getLeaderOnConsecutive (double dist, double seen, double speed, const MSVehicle &veh, const std::vector< MSLane * > &bestLaneConts) const | |||
Returns the immediate leader and the distance to him. More... | ||||
void | getLeadersOnConsecutive (double dist, double seen, double speed, const MSVehicle *ego, const std::vector< MSLane * > &bestLaneConts, MSLeaderDistanceInfo &result) const | |||
Returns the immediate leaders and the distance to them (as getLeaderOnConsecutive but for the sublane case) More... | ||||
const MSLinkCont & | getLinkCont () const | |||
returns the container with all links !!! More... | ||||
MSLink * | getLinkTo (const MSLane *) const | |||
returns the link to the given lane or 0, if it is not connected More... | ||||
MSLane * | getLogicalPredecessorLane () const | |||
get the most likely precedecessor lane (sorted using by_connections_to_sorter). The result is cached in myLogicalPredecessorLane More... | ||||
MSLane * | getLogicalPredecessorLane (const MSEdge &fromEdge) const | |||
return the (first) predecessor lane from the given edge More... | ||||
double | getMissingRearGap (const MSVehicle *leader, double backOffset, double leaderSpeed) const | |||
return by how much further the leader must be inserted to avoid rear end collisions More... | ||||
const MSEdge * | getNextNormal () const | |||
Returns the lane's follower if it is an internal lane, the edge of the lane otherwise. More... | ||||
const MSLane * | getNormalPredecessorLane () const | |||
get normal lane leading to this internal lane, for normal lanes, the lane itself is returned More... | ||||
MSLane * | getOpposite () const | |||
return the opposite direction lane for lane changing or 0 More... | ||||
std::pair< MSVehicle *const, double > | getOppositeFollower (const MSVehicle *ego) const | |||
std::pair< MSVehicle *const, double > | getOppositeLeader (const MSVehicle *ego, double dist, bool oppositeDir) const | |||
double | getOppositePos (double pos) const | |||
return the corresponding position on the opposite lane More... | ||||
const std::vector< std::pair< const MSLane *, const MSEdge * > > | getOutgoingViaLanes () const | |||
get the list of outgoing lanes More... | ||||
MSLane * | getParallelLane (int offset, bool includeOpposite=true) const | |||
Returns the lane with the given offset parallel to this one or 0 if it does not exist. More... | ||||
const std::string | getParameter (const std::string &key, const std::string &defaultValue="") const | |||
Returns the value for a given key. More... | ||||
const std::map< std::string, std::string > & | getParametersMap () const | |||
Returns the inner key/value map. More... | ||||
std::string | getParametersStr () const | |||
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". More... | ||||
std::string | getParentName () const | |||
Returns the name of the parent object (if any) More... | ||||
const std::set< const MSVehicle * > & | getParkingVehicles () const | |||
retrieve the parking vehicles (see GUIParkingArea) More... | ||||
MSVehicle * | getPartialBehind (const MSVehicle *ego) const | |||
MSLeaderInfo | getPartialBeyond () const | |||
get all vehicles that are inlapping from consecutive edges More... | ||||
int | getRightmostSublane () const | |||
double | getRightSideOnEdge () const | |||
std::mt19937 * | getRNG () const | |||
return the associated RNG More... | ||||
int | getRNGIndex () const | |||
returns the associated RNG index More... | ||||
double | getStopOffset (const MSVehicle *veh) const | |||
Returns vehicle class specific stopOffset for the vehicle. More... | ||||
const std::map< SVCPermissions, double > & | getStopOffsets () const | |||
Returns vehicle class specific stopOffsets. More... | ||||
std::set< MSVehicle * > | getSurroundingVehicles (double startPos, double downstreamDist, double upstreamDist, std::shared_ptr< LaneCoverageInfo > checkedLanes) const | |||
Returns all vehicles closer than downstreamDist along the along the road network starting on the given position. Predecessor lanes are searched upstream for the given upstreamDistance. More... | ||||
std::vector< const MSJunction * > | getUpcomingJunctions (double pos, double range, const std::vector< MSLane * > &contLanes) const | |||
Returns all upcoming junctions within given range along the given (non-internal) continuation lanes measured from given position. More... | ||||
std::vector< const MSLink * > | getUpcomingLinks (double pos, double range, const std::vector< MSLane * > &contLanes) const | |||
Returns all upcoming junctions within given range along the given (non-internal) continuation lanes measured from given position. More... | ||||
std::set< MSVehicle * > | getVehiclesInRange (const double a, const double b) const | |||
Returns all vehicles on the lane overlapping with the interval [a,b]. More... | ||||
GUILane (const std::string &id, double maxSpeed, double length, MSEdge *const edge, int numericalID, const PositionVector &shape, double width, SVCPermissions permissions, int index, bool isRampAccel, const std::string &type) | ||||
Constructor. More... | ||||
void | initRestrictions () | |||
initialized vClass-specific speed limits More... | ||||
bool | isApproachedFrom (MSEdge *const edge) | |||
bool | isApproachedFrom (MSEdge *const edge, MSLane *const lane) | |||
bool | isEmpty () const | |||
bool | isInternal () const | |||
bool | isLinkEnd (MSLinkCont::const_iterator &i) const | |||
bool | isLinkEnd (MSLinkCont::iterator &i) | |||
bool | knowsParameter (const std::string &key) const | |||
Returns whether the parameter is known. More... | ||||
void | leftByLaneChange (MSVehicle *v) | |||
bool | mustCheckJunctionCollisions () const | |||
whether this lane must check for junction collisions More... | ||||
bool | needsCollisionCheck () const | |||
short-circut collision check if nothing changed since the last check More... | ||||
virtual void | onLeftBtnPress (void *) | |||
notify object about left click More... | ||||
virtual void | removeActiveAddVisualisation (GUISUMOAbstractView *const, int) | |||
remove additional user-griggered visualisations More... | ||||
void | removeParking (MSVehicle *veh) | |||
remove parking vehicle More... | ||||
MSVehicle * | removeVehicle (MSVehicle *remVehicle, MSMoveReminder::Notification notification, bool notify) | |||
void | requireCollisionCheck () | |||
require another collision check due to relevant changes in the simulation More... | ||||
void | resetPartialOccupation (MSVehicle *v) | |||
Removes the information about a vehicle lapping into this lane. More... | ||||
void | resetPermissions (long long transientID) | |||
void | setID (const std::string &newID) | |||
resets the id More... | ||||
void | setLength (double val) | |||
Sets a new length for the lane (used by TraCI only) More... | ||||
void | setMaxSpeed (double val) | |||
Sets a new maximum speed for the lane (used by TraCI and MSCalibrator) More... | ||||
void | setParameter (const std::string &key, const std::string &value) | |||
Sets a parameter. More... | ||||
void | setParameters (const Parameterised ¶ms) | |||
set the inner key/value map in map<string, string> format More... | ||||
void | setParametersMap (const std::map< std::string, std::string > ¶msMap) | |||
set the inner key/value map in map<string, string> format More... | ||||
void | setParametersStr (const std::string ¶msString) | |||
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" More... | ||||
double | setPartialOccupation (MSVehicle *v) | |||
Sets the information about a vehicle lapping into this lane. More... | ||||
void | setPermissions (SVCPermissions permissions, long long transientID) | |||
Sets the permissions to the given value. If a transientID is given, the permissions are recored as temporary. More... | ||||
void | setRightSideOnEdge (double value, int rightmostSublane) | |||
void | setRNGIndex (const int rngIndex) | |||
sets the associated RNG index More... | ||||
void | setStopOffsets (std::map< SVCPermissions, double > stopOffsets) | |||
Set vehicle class specific stopOffsets. More... | ||||
void | sortManeuverReservations () | |||
sorts myManeuverReservations More... | ||||
void | sortPartialVehicles () | |||
sorts myPartialVehicles More... | ||||
void | unsetParameter (const std::string &key) | |||
Removes a parameter. More... | ||||
void | updateParameters (const std::map< std::string, std::string > &mapArg) | |||
Adds or updates all given parameters from the map. More... | ||||
void | visit (const LaneStoringVisitor &cont) const | |||
Callback for visiting the lane when traversing an RTree. More... | ||||
void | writeParams (OutputDevice &device) const | |||
write Params in the given outputdevice More... | ||||
~GUILane () | ||||
Destructor. More... | ||||
Access to vehicles | ||||
const VehCont & | getVehiclesSecure () const | |||
Returns the vehicles container; locks it for microsimulation. More... | ||||
void | releaseVehicles () const | |||
Allows to use the container for microsimulation again. More... | ||||
Vehicle movement (longitudinal) | ||||
void | planMovements (const SUMOTime t) | |||
void | setJunctionApproaches (const SUMOTime t) const | |||
void | executeMovements (const SUMOTime t) | |||
void | integrateNewVehicles () | |||
Additional initialisation | ||||
void | addLink (MSLink *link) | |||
Delayed initialization. More... | ||||
void | addNeigh (const std::string &id) | |||
Adds a neighbor to this lane. More... | ||||
interaction with MSMoveReminder | ||||
virtual void | addMoveReminder (MSMoveReminder *rem) | |||
Add a move-reminder to move-reminder container. More... | ||||
const std::vector< MSMoveReminder * > & | getMoveReminders () const | |||
Return the list of this lane's move reminders. More... | ||||
Vehicle insertion | ||||
bool | insertVehicle (MSVehicle &v) | |||
Tries to insert the given vehicle. More... | ||||
bool | isInsertionSuccess (MSVehicle *vehicle, double speed, double pos, double posLat, bool recheckNextLanes, MSMoveReminder::Notification notification) | |||
Tries to insert the given vehicle with the given state (speed and pos) More... | ||||
bool | checkFailure (const MSVehicle *aVehicle, double &speed, double &dist, const double nspeed, const bool patchSpeed, const std::string errorMsg) const | |||
bool | lastInsertion (MSVehicle &veh, double mspeed, double posLat, bool patchSpeed) | |||
inserts vehicle as close as possible to the last vehicle on this lane (or at the end of the lane if there is no leader) More... | ||||
bool | freeInsertion (MSVehicle &veh, double speed, double posLat, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED) | |||
Tries to insert the given vehicle on any place. More... | ||||
void | forceVehicleInsertion (MSVehicle *veh, double pos, MSMoveReminder::Notification notification, double posLat=0) | |||
Inserts the given vehicle at the given position. More... | ||||
Handling vehicles lapping into several lanes (-> partial occupation) | ||||
or which committed a maneuver that will lead them into another (sublane case -> maneuver reservations) | ||||
virtual void | setManeuverReservation (MSVehicle *v) | |||
Registers the lane change intentions (towards this lane) for the given vehicle. More... | ||||
virtual void | resetManeuverReservation (MSVehicle *v) | |||
Unregisters a vehicle, which previously registered for maneuvering into this lane. More... | ||||
const MSLeaderInfo | getLastVehicleInformation (const MSVehicle *ego, double latOffset, double minPos=0, bool allowCached=true) const | |||
Returns the last vehicles on the lane. More... | ||||
const MSLeaderInfo | getFirstVehicleInformation (const MSVehicle *ego, double latOffset, bool onlyFrontOnLane, double maxPos=std::numeric_limits< double >::max(), bool allowCached=true) const | |||
analogue to getLastVehicleInformation but in the upstream direction More... | ||||
Access to vehicles | ||||
int | getVehicleNumber () const | |||
Returns the number of vehicles on this lane (for which this lane is responsible) More... | ||||
int | getVehicleNumberWithPartials () const | |||
Returns the number of vehicles on this lane (including partial occupators) More... | ||||
int | getPartialVehicleNumber () const | |||
Returns the number of vehicles partially on this lane (for which this lane is not responsible) More... | ||||
AnyVehicleIterator | anyVehiclesBegin () const | |||
begin iterator for iterating over all vehicles touching this lane in downstream direction More... | ||||
AnyVehicleIterator | anyVehiclesEnd () const | |||
end iterator for iterating over all vehicles touching this lane in downstream direction More... | ||||
AnyVehicleIterator | anyVehiclesUpstreamBegin () const | |||
begin iterator for iterating over all vehicles touching this lane in upstream direction More... | ||||
AnyVehicleIterator | anyVehiclesUpstreamEnd () const | |||
end iterator for iterating over all vehicles touching this lane in upstream direction More... | ||||
Atomar value getter | ||||
int | getNumericalID () const | |||
Returns this lane's numerical id. More... | ||||
double | getLengthGeometryFactor () const | |||
return shape.length() / myLength More... | ||||
bool | isAccelLane () const | |||
return whether this lane is an acceleration lane More... | ||||
const std::string & | getLaneType () const | |||
return the type of this lane More... | ||||
double | interpolateLanePosToGeometryPos (double lanePos) const | |||
const Position | geometryPositionAtOffset (double offset, double lateralOffset=0) const | |||
double | interpolateGeometryPosToLanePos (double geometryPos) const | |||
double | getVehicleMaxSpeed (const SUMOTrafficObject *const veh) const | |||
Returns the lane's maximum speed, given a vehicle's speed limit adaptation. More... | ||||
double | getSpeedLimit () const | |||
Returns the lane's maximum allowed speed. More... | ||||
double | getLength () const | |||
Returns the lane's length. More... | ||||
SVCPermissions | getPermissions () const | |||
Returns the vehicle class permissions for this lane. More... | ||||
double | getWidth () const | |||
Returns the lane's width. More... | ||||
int | getIndex () const | |||
Returns the lane's index. More... | ||||
Vehicle movement (longitudinal) | ||||
void | updateLeaderInfo (const MSVehicle *veh, VehCont::reverse_iterator &vehPart, VehCont::reverse_iterator &vehRes, MSLeaderInfo &ahead) const | |||
This updates the MSLeaderInfo argument with respect to the given MSVehicle. All leader-vehicles on the same edge, which are relevant for the vehicle (i.e. with position > vehicle's position) and not already integrated into the LeaderInfo, are integrated. The given iterators vehPart and vehRes give access to these vehicles which are either partial occupators or have issued a maneuver reservation for the lane (the latter occurs only for the sublane model). More... | ||||
void | updateLengthSum () | |||
updated current vehicle length sum (delayed to avoid lane-order-dependency) More... | ||||
Current state retrieval | ||||
double | getMeanSpeed () const | |||
Returns the mean speed on this lane. More... | ||||
double | getWaitingSeconds () const | |||
Returns the overall waiting time on this lane. More... | ||||
double | getBruttoOccupancy () const | |||
Returns the brutto (including minGaps) occupancy of this lane during the last step. More... | ||||
double | getNettoOccupancy () const | |||
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps) More... | ||||
double | getBruttoVehLenSum () const | |||
Returns the sum of lengths of vehicles, including their minGaps, which were on the lane during the last step. More... | ||||
double | getCO2Emissions () const | |||
Returns the sum of last step CO2 emissions. More... | ||||
double | getCOEmissions () const | |||
Returns the sum of last step CO emissions. More... | ||||
double | getPMxEmissions () const | |||
Returns the sum of last step PMx emissions. More... | ||||
double | getNOxEmissions () const | |||
Returns the sum of last step NOx emissions. More... | ||||
double | getHCEmissions () const | |||
Returns the sum of last step HC emissions. More... | ||||
double | getFuelConsumption () const | |||
Returns the sum of last step fuel consumption. More... | ||||
double | getElectricityConsumption () const | |||
Returns the sum of last step electricity consumption. More... | ||||
double | getHarmonoise_NoiseEmissions () const | |||
Returns the sum of last step noise emissions. More... | ||||
State saving/loading | ||||
void | saveState (OutputDevice &out) | |||
Saves the state of this lane into the given stream. More... | ||||
void | loadState (const std::vector< std::string > &vehIDs, MSVehicleControl &vc) | |||
Loads the state of this segment with the given parameters. More... | ||||
Atomar getter methods | ||||
Returns the full name appearing in the tool tip
| ||||
const std::string & | getFullName () const | |||
GUIGlID | getGlID () const | |||
Returns the numerical id of the object. More... | ||||
interfaces to be implemented by derived classes | ||||
virtual void | removedPopupMenu () | |||
notify object about popup menu removal More... | ||||
virtual GUIParameterTableWindow * | getTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) | |||
Returns an own type parameter window (optional) More... | ||||
virtual const std::string & | getMicrosimID () const | |||
Returns the id of the object as known to microsim. More... | ||||
virtual const std::string | getOptionalName () const | |||
Returns the name of the object (default "") 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 | areParametersValid (const std::string &value, bool report=false) |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" More... | |
static void | clear () |
Clears the dictionary. More... | |
static MSLane * | dictionary (const std::string &id) |
Returns the MSLane associated to the key id. More... | |
static bool | dictionary (const std::string &id, MSLane *lane) |
Static (sic!) container methods {. More... | |
static int | dictSize () |
Returns the number of stored lanes. More... | |
template<class RTREE > | |
static void | fill (RTREE &into) |
Fills the given RTree with lane instances. More... | |
static CollisionAction | getCollisionAction () |
template<class T > | |
static std::string | getIDSecure (const T *obj, const std::string &fallBack="NULL") |
get an identifier for Named-like object which may be Null More... | |
static int | getNumRNGs () |
return the number of RNGs More... | |
static void | initCollisionOptions (const OptionsCont &oc) |
static void | initRNGs (const OptionsCont &oc) |
initialize rngs More... | |
static void | insertIDs (std::vector< std::string > &into) |
Adds the ids of all stored lanes into the given vector. More... | |
static MSLinkCont::const_iterator | succLinkSec (const SUMOVehicle &veh, int nRouteSuccs, const MSLane &succLinkSource, const std::vector< MSLane * > &conts) |
static bool | teleportOnCollision () |
Static Public Attributes | |
static const long | CHANGE_PERMISSIONS_GUI = 1 |
static const long | CHANGE_PERMISSIONS_PERMANENT = 0 |
static const GUIGlID | INVALID_ID = 0 |
static StringBijection< GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Types | |
typedef std::map< std::string, MSLane * > | DictType |
definition of the static dictionary type 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... | |
bool | checkForPedestrians (const MSVehicle *aVehicle, double &speed, double &dist, double pos, bool patchSpeed) const |
check whether pedestrians on this lane interfere with vehicle insertion More... | |
bool | detectCollisionBetween (SUMOTime timestep, const std::string &stage, MSVehicle *collider, MSVehicle *victim, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toRemove, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toTeleport) const |
detect whether there is a collision between the two vehicles More... | |
void | detectPedestrianJunctionCollision (const MSVehicle *collider, const PositionVector &colliderBoundary, const MSLane *foeLane, SUMOTime timestep, const std::string &stage) |
detect whether a vehicle collids with pedestrians on the junction More... | |
double | getDepartPosLat (const MSVehicle &veh) |
double | getDepartSpeed (const MSVehicle &veh, bool &patchSpeed) |
double | getMaximumBrakeDist () const |
compute maximum braking distance on this lane More... | |
void | handleCollisionBetween (SUMOTime timestep, const std::string &stage, MSVehicle *collider, MSVehicle *victim, double gap, double latGap, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toRemove, std::set< const MSVehicle *, ComparatorNumericalIdLess > &toTeleport) const |
take action upon collision More... | |
double | safeInsertionSpeed (const MSVehicle *veh, double seen, const MSLeaderInfo &leaders, double speed) |
return the maximum safe speed for insertion behind leaders (a negative value indicates that safe insertion is impossible) 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... | |
Protected Attributes | |
std::map< MSEdge *, std::vector< MSLane * > > | myApproachingLanes |
All direct internal and direct (disregarding internal predecessors) non-internal predecessor lanes of this lane. More... | |
double | myBruttoVehicleLengthSum |
The current length of all vehicles on this lane, including their minGaps. More... | |
double | myBruttoVehicleLengthSumToRemove |
The length of all vehicles that have left this lane in the current step (this lane, including their minGaps) More... | |
MSLane * | myCanonicalPredecessorLane |
Similar to LogicalPredecessorLane,. More... | |
MSLane * | myCanonicalSuccessorLane |
Main successor lane,. More... | |
MSEdge *const | myEdge |
The lane's edge, for routing only. More... | |
MSLeaderInfo | myFollowerInfo |
followers on all sublanes as seen by vehicles on consecutive lanes (cached) More... | |
SUMOTime | myFollowerInfoTime |
time step for which myFollowerInfo was last updated More... | |
std::string | myID |
The name of the object. More... | |
std::vector< IncomingLaneInfo > | myIncomingLanes |
All direct predecessor lanes. More... | |
int | myIndex |
The lane index. More... | |
const bool | myIsRampAccel |
whether this lane is an acceleration lane More... | |
const std::string | myLaneType |
the type of this lane More... | |
MSLeaderInfo | myLeaderInfo |
leaders on all sublanes as seen by approaching vehicles (cached) More... | |
SUMOTime | myLeaderInfoTime |
time step for which myLeaderInfo was last updated More... | |
double | myLength |
Lane length [m]. More... | |
const double | myLengthGeometryFactor |
precomputed myShape.length / myLength More... | |
MSLinkCont | myLinks |
MSLane * | myLogicalPredecessorLane |
VehCont | myManeuverReservations |
The vehicles which registered maneuvering into the lane within their current action step. This is currently only relevant for sublane simulation, since continuous lanechanging uses the partial vehicle mechanism. More... | |
double | myMaxSpeed |
Lane-wide speedlimit [m/s]. More... | |
bool | myNeedsCollisionCheck |
whether a collision check is currently needed More... | |
std::vector< std::string > | myNeighs |
double | myNettoVehicleLengthSum |
The current length of all vehicles on this lane, excluding their minGaps. More... | |
double | myNettoVehicleLengthSumToRemove |
The length of all vehicles that have left this lane in the current step (this lane, excluding their minGaps) More... | |
int | myNumericalID |
Unique numerical ID (set on reading by netload) More... | |
SVCPermissions | myOriginalPermissions |
The original vClass permissions for this lane (before temporary modifications) More... | |
std::set< const MSVehicle * > | myParkingVehicles |
VehCont | myPartialVehicles |
The lane's partial vehicles. This container holds all vehicles that are partially on this lane but which are in myVehicles of another lane. Reasons for partial occupancies include the following. More... | |
std::map< long long, SVCPermissions > | myPermissionChanges |
SVCPermissions | myPermissions |
The vClass permissions for this lane. More... | |
const std::map< SUMOVehicleClass, double > * | myRestrictions |
The vClass speed restrictions for this lane. More... | |
int | myRightmostSublane |
the index of the rightmost sublane of this lane on myEdge More... | |
double | myRightSideOnEdge |
the combined width of all lanes with lower index on myEdge More... | |
int | myRNGIndex |
PositionVector | myShape |
The shape of the lane. More... | |
std::map< SVCPermissions, double > | myStopOffsets |
VehCont | myTmpVehicles |
Container for lane-changing vehicles. After completion of lane-change- process, the containers will be swapped with myVehicles. More... | |
FXSynchQue< MSVehicle *, std::vector< MSVehicle * > > | myVehBuffer |
Buffer for vehicles that moved from their previous lane onto this one. Integrated after all vehicles executed their moves. More... | |
VehCont | myVehicles |
The lane's vehicles. This container holds all vehicles that have their front (longitudinally) and their center (laterally) on this lane. These are the vehicles that this lane is 'responsibly' for (i.e. when executing movements) More... | |
const double | myWidth |
Lane width [m]. More... | |
Static Protected Attributes | |
static DictType | myDict |
Static dictionary to associate string-ids with objects. More... | |
static std::vector< std::mt19937 > | myRNGs |
Private Member Functions | |
std::string | createFullName () const |
create full name More... | |
Static Private Member Functions | |
static bool | isParameterValid (const std::string &value, bool report) |
check if given string can be parsed to a parameter of type "key=value" 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::map< std::string, std::string > | myMap |
The key->value map. More... | |
std::string | myMicrosimID |
ID of GL object. More... | |
std::vector< MSMoveReminder * > | myMoveReminders |
This lane's move reminder. More... | |
std::set< GUIParameterTableWindow * > | myParamWindows |
Parameter table windows which refer to this object. More... | |
Static Private Attributes | |
static StringBijection< GUIGlObjectType >::Entry | GUIGlObjectTypeNamesInitializer [] |
LinkStates (Currently unused) More... | |
static bool | myCheckJunctionCollisions |
static CollisionAction | myCollisionAction |
the action to take on collisions More... | |
static double | myCollisionMinGapFactor |
static SUMOTime | myCollisionStopTime |
inherited from GUIGlObject | |
std::vector< double > | myShapeRotations |
The rotations of the shape parts. More... | |
std::vector< double > | myShapeLengths |
The lengths of the shape parts. More... | |
std::vector< RGBColor > | myShapeColors |
The color of the shape parts (cached) More... | |
std::vector< int > | myShapeSegments |
the meso segment index for each geometry segment More... | |
double | myHalfLaneWidth |
Half of lane width, for speed-up. More... | |
double | myQuarterLaneWidth |
Quarter of lane width, for speed-up. More... | |
double | myReachability |
the time distance from a particular edge More... | |
bool | myAmClosed |
state for dynamic lane closings More... | |
FXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
static const RGBColor | MESO_USE_LANE_COLOR |
special color to signify alternative coloring scheme More... | |
GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own popup-menu. More... | |
GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own parameter window. More... | |
Boundary | getCenteringBoundary () const |
Returns the boundary to which the view shall be centered in order to show the object. More... | |
void | drawGL (const GUIVisualizationSettings &s) const |
Draws the object. More... | |
const PositionVector & | getShape () const |
const std::vector< double > & | getShapeRotations () const |
const std::vector< double > & | getShapeLengths () const |
double | firstWaitingTime () const |
void | drawMarkings (const GUIVisualizationSettings &s, double scale) const |
draw lane borders and white markings More... | |
void | drawBikeMarkings () const |
bike lane markings on top of an intersection More... | |
void | drawDirectionIndicators (double exaggeration, bool spreadSuperposed) const |
direction indicators for lanes More... | |
void | debugDrawFoeIntersections () const |
draw intersection positions of foe internal lanes with this one More... | |
double | getEdgeLaneNumber () const |
double | getStoredEdgeTravelTime () const |
Returns the stored traveltime for the edge of this lane. More... | |
double | getLoadedEdgeWeight () const |
Returns the loaded weight (effort) for the edge of this lane. More... | |
void | setReachability (double value) |
double | getReachability () const |
void | closeTraffic (bool rebuildAllowed=true) |
close this lane for traffic More... | |
bool | isClosed () const |
double | getColorValue (const GUIVisualizationSettings &s, int activeScheme) const |
gets the color value according to the current scheme index More... | |
bool | isSelected () const |
whether this lane is selected in the GUI More... | |
bool | setFunctionalColor (const GUIColorer &c, RGBColor &col, int activeScheme=-1) const |
bool | drawAsRailway (const GUIVisualizationSettings &s) const |
whether to draw this lane as a railway More... | |
void | swapAfterLaneChange (SUMOTime t) |
moves myTmpVehicles int myVehicles after a lane change procedure More... | |
virtual void | incorporateVehicle (MSVehicle *veh, double pos, double speed, double posLat, const MSLane::VehCont::iterator &at, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED) |
Inserts the vehicle into this lane, and informs it about entering the network. More... | |
void | drawLinkNo (const GUIVisualizationSettings &s) const |
helper methods More... | |
void | drawTLSLinkNo (const GUIVisualizationSettings &s, const GUINet &net) const |
void | drawLinkRules (const GUIVisualizationSettings &s, const GUINet &net) const |
void | drawLinkRule (const GUIVisualizationSettings &s, const GUINet &net, MSLink *link, const PositionVector &shape, double x1, double x2) const |
void | drawArrows () const |
void | drawLane2LaneConnections (double exaggeration) const |
PositionVector | splitAtSegments (const PositionVector &shape) |
add intermediate points at segment borders More... | |
double | getPendingEmits () const |
get number of vehicles waiting for departure on this lane More... | |
double | getScaleValue (int activeScheme) const |
gets the scaling value according to the current scheme index More... | |
bool | setMultiColor (const GUIVisualizationSettings &s, const GUIColorer &c, RGBColor &col) const |
sets multiple colors according to the current scheme index and some lane function More... | |
RGBColor | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the currente settings More... | |
bool | drawAsWaterway (const GUIVisualizationSettings &s) const |
whether to draw this lane as a waterway More... | |
bool | isLaneOrEdgeSelected () const |
whether this lane or its parent edge is selected in the GUI More... | |
Representation of a lane in the micro simulation (gui-version)
An extended MSLane. A mechanism to avoid concurrent visualisation and simulation what may cause problems when vehicles disappear is implemented using a mutex.
|
protectedinherited |
|
inherited |
|
inherited |
GUILane::GUILane | ( | const std::string & | id, |
double | maxSpeed, | ||
double | length, | ||
MSEdge *const | edge, | ||
int | numericalID, | ||
const PositionVector & | shape, | ||
double | width, | ||
SVCPermissions | permissions, | ||
int | index, | ||
bool | isRampAccel, | ||
const std::string & | type | ||
) |
Constructor.
[in] | id | The lane's id |
[in] | maxSpeed | The speed allowed on this lane |
[in] | length | The lane's length |
[in] | edge | The edge this lane belongs to |
[in] | numericalID | The numerical id of the lane |
[in] | shape | The shape of the lane |
[in] | width | The width of the lane |
[in] | permissions | Encoding of vehicle classes that may drive on this lane |
Definition at line 73 of file GUILane.cpp.
References Position::distanceTo2D(), MSGlobals::gUseMesoSim, PositionVector::length(), myHalfLaneWidth, myQuarterLaneWidth, MSLane::myShape, myShapeColors, myShapeLengths, myShapeRotations, myShapeSegments, MSLane::myWidth, POSITION_EPS, RAD2DEG, splitAtSegments(), Position::x(), and Position::y().
GUILane::~GUILane | ( | ) |
|
inherited |
Definition at line 2214 of file MSLane.cpp.
References MSLane::getEdge(), Named::getID(), MSEdge::isInternal(), MSLane::myApproachingLanes, and WRITE_WARNING.
Referenced by NLHandler::addConnection().
Definition at line 2204 of file MSLane.cpp.
References MSLane::getLength(), MSLane::IncomingLaneInfo::lane, MSLane::IncomingLaneInfo::length, MSLane::myIncomingLanes, and MSLane::IncomingLaneInfo::viaLink.
Referenced by NLHandler::addConnection().
|
inherited |
Delayed initialization.
Not all lane-members are known at the time the lane is born, above all the pointers to other lanes, so we have to add them later.
[in] | link | An outgoing link |
Definition at line 239 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by NLHandler::addConnection().
|
virtualinherited |
Add a move-reminder to move-reminder container.
The move reminder will not be deleted by the lane.
[in] | rem | The move reminder to add |
Definition at line 257 of file MSLane.cpp.
References MSLane::myMoveReminders, and MSLane::myVehicles.
Referenced by MSMoveReminder::MSMoveReminder().
|
inherited |
Adds a neighbor to this lane.
[in] | id | The lane's id |
Definition at line 245 of file MSLane.cpp.
References Named::getID(), MSLane::getLength(), MSLane::getOpposite(), MSLane::myNeighs, toString(), and WRITE_WARNING.
|
inherited |
Definition at line 287 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
inherited |
add parking vehicle. This should only used during state loading
Definition at line 3025 of file MSLane.cpp.
References MSLane::myParkingVehicles.
Referenced by MSVehicleTransfer::loadState().
|
inlineinherited |
Adds this object to the given container.
[in,filled] | cont The container to add this item to |
Definition at line 126 of file Named.h.
References Named::StoringVisitor::add().
|
inlineinherited |
Definition at line 805 of file MSLane.h.
References MSLane::myPermissions.
Referenced by NLTriggerBuilder::addAccess(), MSVehicle::addStop(), MSLaneChanger::changeOpposite(), libsumo::Helper::convertCartesianToRoadMap(), libsumo::Helper::findCloserLane(), MSPModel_NonInteracting::PState::getPosition(), MSVehicle::updateBestLanes(), and MSLCM_SL2015::updateExpectedSublaneSpeeds().
|
inlineinherited |
begin iterator for iterating over all vehicles touching this lane in downstream direction
Definition at line 433 of file MSLane.h.
References MSLane::AnyVehicleIterator, MSLane::myPartialVehicles, MSLane::myTmpVehicles, and MSLane::myVehicles.
Referenced by MSLane::detectCollisions(), MSLane::getFollowersOnConsecutive(), MSLane::getLastVehicleInformation(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSPModel_Striping::getVehicleObstacles(), and MSPModel_Striping::moveInDirection().
|
inlineinherited |
end iterator for iterating over all vehicles touching this lane in downstream direction
Definition at line 439 of file MSLane.h.
References MSLane::AnyVehicleIterator, MSLane::myPartialVehicles, MSLane::myTmpVehicles, and MSLane::myVehicles.
Referenced by MSLane::detectCollisions(), MSLane::getFollowersOnConsecutive(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSPModel_Striping::getVehicleObstacles(), and MSPModel_Striping::moveInDirection().
|
inlineinherited |
begin iterator for iterating over all vehicles touching this lane in upstream direction
Definition at line 445 of file MSLane.h.
References MSLane::AnyVehicleIterator, MSLane::myPartialVehicles, MSLane::myTmpVehicles, and MSLane::myVehicles.
Referenced by MSLane::getFirstVehicleInformation(), MSLane::getFollower(), and MSPModel_Striping::getVehicleObstacles().
|
inlineinherited |
end iterator for iterating over all vehicles touching this lane in upstream direction
Definition at line 451 of file MSLane.h.
References MSLane::AnyVehicleIterator.
Referenced by MSLane::getFollower(), and MSPModel_Striping::getVehicleObstacles().
|
virtualinherited |
Returns the information whether this lane may be used to continue the current route
Definition at line 1922 of file MSLane.cpp.
References MSVehicle::getBestLanes(), MSVehicle::getBestLanesContinuation(), MSVehicle::getLaneIndex(), MSEdge::isInternal(), MSLane::myEdge, MSLane::myLinks, MSBaseVehicle::succEdge(), and MSLane::succLinkSec().
Referenced by MSLane::executeMovements().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 166 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), and WRITE_WARNING.
Referenced by GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEClosingLaneReroute::isValid(), GNEClosingReroute::isValid(), GNEContainerStop::isValid(), GNEDestProbReroute::isValid(), GNEDetectorE1::isValid(), GNEDetectorE1Instant::isValid(), GNEDetectorE2::isValid(), GNEDetectorE3::isValid(), GNEDetectorEntryExit::isValid(), GNEParkingArea::isValid(), GNEParkingAreaReroute::isValid(), GNEParkingSpace::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNERerouter::isValid(), GNERerouterInterval::isValid(), GNERouteProbe::isValid(), GNERouteProbReroute::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEVariableSpeedSignStep::isValid(), GNEPerson::isValid(), GNEPersonTrip::isValid(), GNERide::isValid(), GNERoute::isValid(), GNEVehicle::isValid(), GNEVehicleType::isValid(), GNEWalk::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEJunction::isValid(), GNELane::isValid(), and GNEFrameAttributesModuls::ParametersEditor::onCmdSetParameters().
|
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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNENet::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), and GUIPolygon::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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNENet::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNENet::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), and GUIPolygon::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 GNEPOI::getPopUpMenu(), and GUIPointOfInterest::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(), GUIBaseVehicle::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIDetectorWrapper::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEAdditional::getPopUpMenu(), GNEPOI::getPopUpMenu(), GNEPoly::getPopUpMenu(), GNEDemandElement::getPopUpMenu(), GNEPersonTrip::getPopUpMenu(), GNERide::getPopUpMenu(), GNERoute::getPopUpMenu(), GNEWalk::getPopUpMenu(), GNEConnection::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEEdge::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNELane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUINet::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 GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), and GUIPerson::getPopUpMenu().
|
inherited |
Definition at line 1832 of file MSLane.cpp.
References MSEdge::changeLanes(), and MSLane::myEdge.
|
inherited |
Definition at line 231 of file MSLane.cpp.
References MSGlobals::gNumSimThreads, MSLane::myVehBuffer, and FXSynchQue< T, Container >::unsetCondition().
|
inherited |
Definition at line 620 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSInsertionControl::descheduleDeparture(), MSGlobals::gCheckRoutes, MSVehicle::getCarFollowModel(), MSCFModel::getEmergencyDecel(), MSBaseVehicle::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleType::getMinGap(), MSBaseVehicle::getVehicleType(), MIN2(), WRITE_ERROR, and WRITE_WARNING.
Referenced by MSLane::checkForPedestrians(), and MSLane::isInsertionSuccess().
|
protectedinherited |
check whether pedestrians on this lane interfere with vehicle insertion
Definition at line 3657 of file MSLane.cpp.
References MSLane::checkFailure(), DEBUG_COND2, MSVehicle::getCarFollowModel(), MSLane::getEdge(), MSBaseVehicle::getID(), Named::getID(), MSVehicle::getLateralPositionOnLane(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSCFModel::getMaxDecel(), MSPModel::getModel(), MSVehicle::getRightSideOnLane(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), MSPModel::nextBlocking(), SIMTIME, and MSCFModel::stopSpeed().
Referenced by MSLane::isInsertionSuccess().
|
staticinherited |
Clears the dictionary.
Definition at line 1889 of file MSLane.cpp.
References MSLane::myDict.
Referenced by MSNet::clearAll().
|
inherited |
Clears the parameter map.
Definition at line 100 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), and GNERouteHandler::closeRoute().
void GUILane::closeTraffic | ( | bool | rebuildAllowed = true | ) |
close this lane for traffic
Definition at line 1302 of file GUILane.cpp.
References MSLane::CHANGE_PERMISSIONS_GUI, MSGlobals::gCheckRoutes, MSLane::getEdge(), myAmClosed, MSLane::myPermissionChanges, MSEdge::rebuildAllowedLanes(), MSLane::resetPermissions(), MSLane::setPermissions(), and SVC_AUTHORITY.
Referenced by GUIEdge::closeTraffic(), and GUIViewTraffic::onCmdCloseLane().
|
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().
void GUILane::debugDrawFoeIntersections | ( | ) | const |
draw intersection positions of foe internal lanes with this one
Definition at line 796 of file GUILane.cpp.
References GLHelper::drawLine(), PositionVector::extrapolate(), MSLane::geometryPositionAtOffset(), MSLink::getFoeLanes(), MSLane::getLength(), MSLink::getLengthsBehindCrossing(), MSLane::getLinkCont(), PositionVector::getOrthogonal(), MSLane::getShape(), and PositionVector::length().
Referenced by drawGL().
|
protectedinherited |
detect whether there is a collision between the two vehicles
Definition at line 1518 of file MSLane.cpp.
References MSLane::COLLISION_ACTION_TELEPORT, DEBUG_COND, DEBUG_COND2, DELTA_T, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSVehicle::getCenterOnEdge(), MSCFModel::getCollisionMinGapFactor(), MSBaseVehicle::getID(), Named::getID(), MSVehicle::getInfluencer(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), MSGlobals::gLaneChangeDuration, MSLane::handleCollisionBetween(), MSVehicle::hasInfluencer(), MSAbstractLaneChangeModel::haveLateralDynamics(), MSAbstractLaneChangeModel::isChangingLanes(), MSAbstractLaneChangeModel::isOpposite(), MSVehicle::Influencer::isRemoteAffected(), MSLane::myCollisionAction, MSLane::myCollisionMinGapFactor, NUMERICAL_EPS, and SIMTIME.
Referenced by MSLane::detectCollisions().
|
virtual |
the same as in MSLane, but locks the access for the visualisation first; the access will be granted at the end of this method
Reimplemented from MSLane.
Definition at line 187 of file GUILane.cpp.
References MSLane::detectCollisions(), and myLock.
|
protectedinherited |
detect whether a vehicle collids with pedestrians on the junction
Definition at line 1484 of file MSLane.cpp.
References DEBUG_COND, MSLane::getEdge(), MSBaseVehicle::getID(), Named::getID(), MSNet::getInstance(), MSPModel::getModel(), MSEdge::getPersons(), MSEdge::getSortedPersons(), MSNet::getVehicleControl(), MSPModel::hasPedestrians(), PositionVector::overlapsWith(), MSVehicleControl::registerCollision(), SIMTIME, time2string(), and WRITE_WARNING.
Referenced by MSLane::detectCollisions().
|
staticinherited |
Returns the MSLane associated to the key id.
The lane is returned if exists, otherwise 0 is returned.
[in] | id | The id of the lane |
Definition at line 1878 of file MSLane.cpp.
References MSLane::myDict.
|
staticinherited |
Static (sic!) container methods {.
Inserts a MSLane into the static dictionary
Returns true if the key id isn't already in the dictionary. Otherwise returns false.
[in] | id | The id of the lane |
[in] | lane | The lane itself |
Definition at line 1866 of file MSLane.cpp.
References MSLane::myDict.
Referenced by NLHandler::addConnection(), NLHandler::addLane(), MSRouteHandler::addStop(), MSVehicle::addStop(), libsumo::Helper::convertCartesianToRoadMap(), libsumo::Lane::getLane(), NLTriggerBuilder::getLane(), NLDetectorBuilder::getLaneChecking(), NLShapeHandler::getLanePos(), MSE2Collector::getLanes(), MSLane::getOpposite(), MSEdge::getStopPosition(), MSPedestrianPushButton::loadPushButtons(), MSVehicleTransfer::loadState(), libsumo::Vehicle::moveTo(), MSStateHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), NLHandler::parseLanes(), TraCIServerAPI_Lane::processSet(), and MSE2Collector::recalculateDetectorLength().
|
inlinestaticinherited |
Returns the number of stored lanes.
Definition at line 720 of file MSLane.h.
References MSLane::myDict.
|
private |
Definition at line 389 of file GUILane.cpp.
References GLHelper::drawBoxLine(), GLHelper::drawTriangleAtEnd(), getShape(), LINKDIR_LEFT, LINKDIR_NODIR, LINKDIR_PARTLEFT, LINKDIR_PARTRIGHT, LINKDIR_RIGHT, LINKDIR_STRAIGHT, LINKDIR_TURN, LINKDIR_TURN_LEFTHAND, LINKSTATE_DEADEND, MSLane::myLinks, MSLane::myWidth, RAD2DEG, SUMO_const_laneWidth, Position::x(), and Position::y().
Referenced by drawGL().
bool GUILane::drawAsRailway | ( | const GUIVisualizationSettings & | s | ) | const |
whether to draw this lane as a railway
Definition at line 1275 of file GUILane.cpp.
References GUIVisualizationSettings::drawForRectangleSelection, isRailway(), MSLane::myPermissions, GUIVisualizationSettings::showRails, and GUIVisualizationSettings::spreadSuperposed.
Referenced by GUIEdge::drawGL(), drawGL(), and drawLinkRule().
|
private |
whether to draw this lane as a waterway
Definition at line 1281 of file GUILane.cpp.
References GUIVisualizationSettings::drawForRectangleSelection, isWaterway(), MSLane::myPermissions, and GUIVisualizationSettings::showRails.
Referenced by drawGL(), and drawLinkRule().
void GUILane::drawBikeMarkings | ( | ) | const |
bike lane markings on top of an intersection
Definition at line 742 of file GUILane.cpp.
References getShape(), GLO_JUNCTION, myHalfLaneWidth, myShapeLengths, and myShapeRotations.
Referenced by drawGL().
void GUILane::drawDirectionIndicators | ( | double | exaggeration, |
bool | spreadSuperposed | ||
) | const |
direction indicators for lanes
Definition at line 768 of file GUILane.cpp.
References getShape(), GLO_EDGE, MAX2(), MIN2(), myHalfLaneWidth, myQuarterLaneWidth, myShapeLengths, myShapeRotations, MSLane::myWidth, and POSITION_EPS.
Referenced by drawGL().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 483 of file GUILane.cpp.
References RGBColor::alpha(), RGBColor::changedBrightness(), GUIVisualizationSizeSettings::constantSize, debugDrawFoeIntersections(), GLHelper::debugVertices(), drawArrows(), drawAsRailway(), drawAsWaterway(), drawBikeMarkings(), GLHelper::drawBoxLines(), GUIVisualizationSettings::drawCrossingsAndWalkingareas, GLHelper::drawCrossTies(), drawDirectionIndicators(), GLHelper::drawFilledPoly(), GLHelper::drawFilledPolyTesselated(), GUIVisualizationSettings::drawForRectangleSelection, GUIBaseVehicle::drawGL(), GUIVisualizationSettings::drawJunctionShape, drawLane2LaneConnections(), GLHelper::drawLine(), GUIVisualizationSettings::drawLinkJunctionIndex, drawLinkNo(), drawLinkRules(), GUIVisualizationSettings::drawLinkTLIndex, drawMarkings(), drawTLSLinkNo(), GUIVisualizationSettings::edgeScaler, GUIVisualizationSizeSettings::exaggeration, GUIPropertySchemeStorage< T >::getActive(), MSEdge::getBidiEdge(), GUIPropertyScheme< T >::getColor(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSNet::getInstance(), MSLane::getLinkCont(), MSEdge::getNumericalID(), GUIEdge::getScaleValue(), getScaleValue(), GUIPropertySchemeStorage< T >::getScheme(), MSEdge::getToJunction(), MSJunction::getType(), GUIGlObject::getType(), getVehiclesSecure(), MSLane::getWidth(), MSGlobals::gLateralResolution, GLO_JUNCTION, gSelected, MSGlobals::gUseMesoSim, MSEdge::isCrossing(), MSEdge::isInternal(), MSLane::isInternal(), GUISelectedStorage::isSelected(), MSEdge::isWalkingArea(), isWaterway(), GUIVisualizationSettings::junctionSize, GUIVisualizationSettings::laneMinSize, GUIVisualizationSettings::laneScaler, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::laneWidthExaggeration, MSNet::lefthand(), MAX2(), GUIVisualizationSizeSettings::minSize, PositionVector::move2side(), MSLane::myEdge, myHalfLaneWidth, MSLane::myParkingVehicles, MSLane::myPermissions, myQuarterLaneWidth, MSLane::myShape, myShapeColors, myShapeLengths, myShapeRotations, myShapeSegments, MSLane::myWidth, NODETYPE_RAIL_CROSSING, NODETYPE_RAIL_SIGNAL, releaseVehicles(), GUIVisualizationSettings::scale, setColor(), GLHelper::setColor(), GUIVisualizationTextSettings::show, GUIVisualizationSettings::showBikeMarkings, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLaneDirection, GUIVisualizationSettings::showLinkDecals, GUIVisualizationSettings::showLinkRules, GUIVisualizationSettings::showSublanes, GUIVisualizationSettings::spreadSuperposed, SUMO_const_halfLaneWidth, SUMO_const_laneMarkWidth, SUMO_const_laneWidth, SVC_BICYCLE, SVC_PEDESTRIAN, SVC_RAIL_CLASSES, and GUIVisualizationSettings::vehicleSize.
Referenced by GUIEdge::drawGL().
|
virtualinherited |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIPerson, GUIContainer, and GUIBaseVehicle.
Definition at line 186 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
private |
Definition at line 456 of file GUILane.cpp.
References GLHelper::drawTriangleAtEnd(), PositionVector::getCentroid(), MSLane::getEdge(), GUIVisualizationSettings::getLinkColor(), getShape(), MSJunction::getShape(), MSLane::getShape(), MSEdge::getToJunction(), MSEdge::isWalkingArea(), MSLane::myEdge, MSLane::myLinks, GLHelper::setColor(), Position::x(), and Position::y().
Referenced by drawGL().
|
private |
helper methods
Definition at line 209 of file GUILane.cpp.
References GUIVisualizationTextSettings::color, GUIVisualizationSettings::drawLinkJunctionIndex, GLHelper::drawTextAtEnd(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSLane::getIndex(), MSLink::getIndex(), MSNet::getInstance(), MSLane::getLogicalPredecessorLane(), getShape(), MSEdge::isCrossing(), MSNet::lefthand(), myHalfLaneWidth, MSLane::myLinks, MSLane::myWidth, PositionVector::reverse(), GUIVisualizationTextSettings::size, and toString().
Referenced by drawGL().
|
private |
Definition at line 328 of file GUILane.cpp.
References drawAsRailway(), drawAsWaterway(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), GUIVisualizationSettings::getLinkColor(), GUINet::getLinkTLID(), MSLink::getState(), MSEdge::getToJunction(), MSJunction::getType(), MSLane::isInternal(), GUIVisualizationSettings::junctionSize, GUIVisualizationSettings::laneWidthExaggeration, LINKSTATE_DEADEND, LINKSTATE_EQUAL, LINKSTATE_MAJOR, LINKSTATE_MINOR, LINKSTATE_TL_GREEN_MAJOR, LINKSTATE_TL_GREEN_MINOR, LINKSTATE_TL_OFF_BLINKING, LINKSTATE_TL_OFF_NOSIGNAL, LINKSTATE_TL_RED, LINKSTATE_TL_REDYELLOW, LINKSTATE_TL_YELLOW_MAJOR, LINKSTATE_TL_YELLOW_MINOR, MAX2(), MSLane::myEdge, myHalfLaneWidth, NODETYPE_RAIL_SIGNAL, RAD2DEG, GLHelper::setColor(), Position::x(), and Position::y().
Referenced by drawLinkRules().
|
private |
Definition at line 277 of file GUILane.cpp.
References drawLinkRule(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSNet::getInstance(), GUIVisualizationSettings::getLinkColor(), MSLane::getLogicalPredecessorLane(), getShape(), MSLink::getTLLogic(), MSEdge::getToJunction(), MSJunction::getType(), MSNet::lefthand(), LINKSTATE_MAJOR, MSLane::myEdge, myHalfLaneWidth, MSLane::myLinks, MSLane::myShape, MSLane::myStopOffsets, MSLane::myWidth, NODETYPE_RAIL_SIGNAL, RAD2DEG, PositionVector::reverse(), GLHelper::setColor(), SVC_PASSENGER, Position::x(), and Position::y().
Referenced by drawGL().
void GUILane::drawMarkings | ( | const GUIVisualizationSettings & | s, |
double | scale | ||
) | const |
draw lane borders and white markings
Definition at line 701 of file GUILane.cpp.
References GLHelper::drawBoxLines(), MSNet::getInstance(), MSEdge::getLanes(), getShape(), getShapeLengths(), getShapeRotations(), GLO_EDGE, MSNet::lefthand(), MIN2(), MSLane::myEdge, myHalfLaneWidth, MSLane::myIndex, MSLane::myPermissions, myShapeLengths, myShapeRotations, setColor(), and SUMO_const_laneMarkWidth.
Referenced by drawGL().
|
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(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEJunction::drawGL(), GUIPointOfInterest::drawInnerPOI(), GUIPolygon::drawInnerPolygon(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), and GNEEdge::drawPartialTripFromTo().
|
private |
Definition at line 237 of file GUILane.cpp.
References GUIVisualizationTextSettings::color, GUIVisualizationSettings::drawLinkTLIndex, GLHelper::drawTextAtEnd(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSNet::getInstance(), GUINet::getLinkTLIndex(), MSLane::getLogicalPredecessorLane(), getShape(), MSEdge::isCrossing(), MSNet::lefthand(), myHalfLaneWidth, MSLane::myLinks, MSLane::myWidth, PositionVector::reverse(), GUIVisualizationTextSettings::size, and toString().
Referenced by drawGL().
|
inlineinherited |
Returns true if there is not a single vehicle on the lane.
Definition at line 651 of file MSLane.h.
References MSLane::myVehBuffer, MSLane::myVehicles, and FXSynchQue< T, Container >::size().
Referenced by MSQueueExport::writeLane().
|
inherited |
Definition at line 2659 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, and MSLane::myNettoVehicleLengthSum.
Referenced by MSAbstractLaneChangeModel::primaryLaneChanged().
|
virtual |
the same as in MSLane, but locks the access for the visualisation first; the access will be granted at the end of this method
Reimplemented from MSLane.
Definition at line 152 of file GUILane.cpp.
References MSLane::executeMovements(), and myLock.
|
staticinherited |
Fills the given RTree with lane instances.
[in,filled] | into The RTree to fill |
Definition at line 1906 of file MSLane.cpp.
References PositionVector::getBoxBoundary(), MSLane::getShape(), Boundary::grow(), MSLane::myDict, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by libsumo::Helper::collectObjectsInRange().
double GUILane::firstWaitingTime | ( | ) | const |
Definition at line 925 of file GUILane.cpp.
References MSLane::myVehicles.
Referenced by getColorValue(), and getScaleValue().
|
inherited |
Inserts the given vehicle at the given position.
No checks are done, vehicle insertion using this method may generate collisions (possibly delayed).
[in] | veh | The vehicle to insert |
[in] | pos | The position at which the vehicle shall be inserted |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
[in] | posLat | The lateral position at which the vehicle shall be inserted |
Definition at line 1024 of file MSLane.cpp.
References MSLane::getDepartSpeed(), MSVehicle::getSpeed(), MSBaseVehicle::hasDeparted(), MSLane::incorporateVehicle(), MSLane::myVehicles, and MSVehicle::updateBestLanes().
Referenced by libsumo::Vehicle::moveTo(), and MSAbstractLaneChangeModel::primaryLaneChanged().
|
inherited |
Tries to insert the given vehicle on any place.
[in] | veh | The vehicle to insert |
[in] | speed | The maximum insertion speed |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
Definition at line 391 of file MSLane.cpp.
References MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSLane::getFirstFullVehicle(), MSLane::getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getMissingRearGap(), MSVehicle::getPositionOnLane(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), MSLane::isInsertionSuccess(), MIN2(), MSLane::myLength, MSLane::myPartialVehicles, MSLane::myVehicles, MSMoveReminder::NOTIFICATION_TELEPORT, POSITION_EPS, and MSVehicle::setTentativeLaneAndPosition().
Referenced by MSVehicleTransfer::checkInsertions(), and MSLane::insertVehicle().
|
inlineinherited |
Definition at line 504 of file MSLane.h.
References MSLane::interpolateLanePosToGeometryPos(), MSLane::myShape, and PositionVector::positionAtOffset().
Referenced by GUIBusStop::addAccess(), GUIE3Collector::MyWrapper::buildDefinition(), TraCIServerAPI_Simulation::commandPositionConversion(), MSVehicle::computeAngle(), libsumo::Simulation::convert2D(), libsumo::Simulation::convert3D(), debugDrawFoeIntersections(), GUIVehicle::drawAction_drawCarriageClass(), GUIEdge::drawMesoVehicles(), MSStoppingPlace::getAccessDistance(), MSVehicle::getBackPosition(), NLShapeHandler::getLanePos(), MEVehicle::getPosition(), MSVehicle::getPosition(), MSVehicle::getPositionAlongBestLanes(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), MSPerson::MSPersonStage_Access::MSPersonStage_Access(), GUIInductLoop::MyWrapper::MyWrapper(), GUIInstantInductLoop::MyWrapper::MyWrapper(), GUIMEInductLoop::MyWrapper::MyWrapper(), GUIViewTraffic::onGamingClick(), and MSVehicle::validatePosition().
|
inherited |
retrieve bidirectional lane or nullptr
XXX multi-lane edges are not considered
Definition at line 3706 of file MSLane.cpp.
References MSEdge::getBidiEdge(), MSEdge::getLanes(), and MSLane::myEdge.
Referenced by MSRailSignal::LinkInfo::buildDriveWay(), MSRailSignal::DriveWay::buildRoute(), MSLane::detectCollisions(), MSVehicle::enterLaneAtInsertion(), and MSLane::isInsertionSuccess().
|
inherited |
Returns the brutto (including minGaps) occupancy of this lane during the last step.
Definition at line 2677 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSLane::getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MIN2(), MSLane::myBruttoVehicleLengthSum, MSLane::myLength, MSLane::myPartialVehicles, MSLane::myVehicles, and MSLane::releaseVehicles().
Referenced by MSLCM_LC2013::_wantsChange(), getColorValue(), getParameterWindow(), getScaleValue(), and MSEdge::insertVehicle().
|
inlineinherited |
Returns the sum of lengths of vehicles, including their minGaps, which were on the lane during the last step.
Definition at line 1004 of file MSLane.h.
References MSLane::myBruttoVehicleLengthSum.
Referenced by MSVehicle::checkRewindLinkLanes(), and MSLCM_LC2013::getRoundaboutDistBonus().
|
inherited |
Return the main predecessor lane for the current. If there are several incoming lanes, the first attempt is to return the priorized. If this does not yield an unambiguous lane, the one with the least angle difference to the current is selected.
Definition at line 2589 of file MSLane.cpp.
References Named::getID(), MSLane::IncomingLaneInfo::lane, MSLane::myCanonicalPredecessorLane, Named::myID, and MSLane::myIncomingLanes.
Referenced by MSLane::getEntryLink(), MSLane::getFirstInternalInConnection(), and MSE2Collector::selectLanes().
|
inherited |
Return the main successor lane for the current. If there are several outgoing lanes, the first attempt is to return the priorized. If this does not yield an unambiguous lane, the one with the least angle difference to the current is selected.
Definition at line 2609 of file MSLane.cpp.
References Named::getID(), MSLane::myCanonicalSuccessorLane, Named::myID, and MSLane::myLinks.
Referenced by MSDevice_SSM::classifyEncounter(), MSPModel_Striping::getNextLane(), and MSE2Collector::selectLanes().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 895 of file GUILane.cpp.
References Boundary::add(), Boundary::grow(), and MSLane::myShape.
|
inlineinherited |
Definition at line 1075 of file MSLane.h.
References MSLane::myRightSideOnEdge, and MSLane::myWidth.
Referenced by MSVehicle::getCenterOnEdge().
|
inherited |
Returns the sum of last step CO2 emissions.
Definition at line 2736 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by libsumo::Lane::getCO2Emission(), getColorValue(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Returns the sum of last step CO emissions.
Definition at line 2748 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by libsumo::Lane::getCOEmission(), getColorValue(), getScaleValue(), and MSFullExport::writeLane().
|
inlinestaticinherited |
Definition at line 1201 of file MSLane.h.
References MSLane::myCollisionAction.
Referenced by MSLane::executeMovements(), and MSVehicle::resumeFromStopping().
|
virtual |
gets the color value according to the current scheme index
Reimplemented from GUIGlObject.
Definition at line 1057 of file GUILane.cpp.
References GUIVisualizationSettings::edgeData, GUIVisualizationSettings::edgeParam, firstWaitingTime(), MSLane::getBruttoOccupancy(), MSLane::getCO2Emissions(), MSLane::getCOEmissions(), MSEdge::getDistance(), GUINet::getEdgeData(), getEdgeLaneNumber(), MSLane::getElectricityConsumption(), MSLane::getFuelConsumption(), GUINet::getGUIInstance(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHCEmissions(), MSNet::getInstance(), MSLane::getLength(), getLoadedEdgeWeight(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getNOxEmissions(), Parameterised::getParameter(), getPendingEmits(), MSEdge::getPermissions(), MSLane::getPMxEmissions(), MSEdge::getPriority(), MSEdge::getRoutingSpeed(), getShape(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), MSNet::getWeightsStorage(), MSGlobals::gNumSimThreads, isLaneOrEdgeSelected(), isRailway(), MSEdge::isTazConnector(), MSEdge::isWalkingArea(), MSEdgeWeightsStorage::knowsTravelTime(), GUIVisualizationSettings::laneParam, MSLane::myEdge, MSLane::myLength, MSLane::myLengthGeometryFactor, MSLane::myMaxSpeed, MSLane::myPermissions, myReachability, MSLane::myRNGIndex, MSEdgeWeightsStorage::retrieveExistingTravelTime(), SVC_AUTHORITY, SVC_BICYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_SHIP, StringUtils::toBool(), and StringUtils::toDouble().
Referenced by GUIViewTraffic::buildColorRainbow(), GUIEdge::drawGL(), setColor(), and setMultiColor().
|
inherited |
Returns the most dangerous leader and the distance to him.
Goes along the vehicle's estimated used lanes (bestLaneConts). For each link, it is determined whether the ego vehicle will pass it. If so, the subsequent lane is investigated. Check all lanes up to the stopping distance of ego. Return the leader vehicle (and the gap) which puts the biggest speed constraint on ego.
If no leading vehicle was found, <0, -1> is returned.
Pretty slow, as it has to go along lanes.
[in] | dist | The distance to investigate |
[in] | seen | The already seen place (normally the place in front on own lane) |
[in] | speed | The speed of the vehicle used for determining whether a subsequent link will be opened at arrival time |
[in] | veh | The (ego) vehicle for which the information shall be computed |
Definition at line 2470 of file MSLane.cpp.
References MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSBaseVehicle::getID(), Named::getID(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSLane::getLastAnyVehicle(), MSVehicle::getLateralPositionOnLane(), MSLane::getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), MSLane::isInternal(), MSLane::isLinkEnd(), MAX2(), NUMERICAL_EPS, SIMTIME, MSLane::succLinkSec(), and TIME2STEPS.
Referenced by MSLaneChanger::checkChange().
|
inherited |
return the index of the link to the next crossing if this is walkingArea, else -1
Definition at line 2666 of file MSLane.cpp.
References MSLane::myLinks.
|
protectedinherited |
Definition at line 514 of file MSLane.cpp.
References DEPART_POSLAT_CENTER, DEPART_POSLAT_DEFAULT, DEPART_POSLAT_GIVEN, DEPART_POSLAT_LEFT, DEPART_POSLAT_RANDOM, DEPART_POSLAT_RIGHT, SUMOVehicleParameter::departPosLat, SUMOVehicleParameter::departPosLatProcedure, MSBaseVehicle::getParameter(), MSBaseVehicle::getVehicleType(), MSLane::getWidth(), MSVehicleType::getWidth(), and RandHelper::rand().
Referenced by MSLane::insertVehicle().
|
protectedinherited |
Definition at line 479 of file MSLane.cpp.
References DEPART_SPEED_DEFAULT, DEPART_SPEED_DESIRED, DEPART_SPEED_GIVEN, DEPART_SPEED_LIMIT, DEPART_SPEED_MAX, DEPART_SPEED_RANDOM, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSBaseVehicle::getChosenSpeedFactor(), MSBaseVehicle::getParameter(), MSLane::getVehicleMaxSpeed(), and RandHelper::rand().
Referenced by MSLane::forceVehicleInsertion(), and MSLane::insertVehicle().
|
inherited |
Returns the value for a given key converted to a double.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 82 of file Parameterised.cpp.
References Parameterised::myMap, StringUtils::toDouble(), and WRITE_WARNING.
Referenced by MSDevice_Battery::buildVehicleDevices(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), and MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus().
|
inlineinherited |
Returns the lane's edge.
Definition at line 669 of file MSLane.h.
References MSLane::myEdge.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), LaneStoringVisitor::add(), MSLane::addApproachingLane(), MSRouteHandler::addPersonTrip(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSSwarmTrafficLightLogic::allowLine(), libsumo::Helper::applySubscriptionFilters(), MSRailSignal::DriveWay::buildRoute(), MSSOTLE2Sensors::buildSensorForLane(), MSVehicle::canReverse(), MSLaneChanger::checkChange(), MSLink::checkContOff(), MSLane::checkForPedestrians(), MSVehicle::checkLinkLeader(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSLink::checkWalkingAreaFoe(), MSDevice_SSM::classifyEncounter(), MSEdge::closeBuilding(), closeTraffic(), MSLCM_SL2015::computeSpeedGain(), MSLaneChanger::continueChange(), GUIDetectorBuilder::createInductLoop(), NLDetectorBuilder::createInductLoop(), MSLane::detectPedestrianJunctionCollision(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), MSLane::executeMovements(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSStoppingPlace::getAccessDistance(), MSStoppingPlace::getAccessPos(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), libsumo::Vehicle::getDrivingDistance(), libsumo::Lane::getEdgeID(), MSLane::getFollowersOnConsecutive(), MSLinkContHelper::getInternalFollowingEdge(), MSVehicle::getLaneIndex(), MSVehicle::getLatOffset(), GUIVehicle::getLeftSublaneOnEdge(), MSLane::getLogicalPredecessorLane(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), libsumo::Vehicle::getNextTLS(), MSCFModel_CC::getParameter(), getParentName(), MSInsertionControl::getPendingEmits(), MSVehicle::getPosition(), GUIVehicle::getRightSublaneOnEdge(), libsumo::Vehicle::getRoadID(), MSLCM_LC2013::getRoundaboutDistBonus(), libsumo::TrafficLight::getServedPersonCount(), MSAbstractLaneChangeModel::getShadowDirection(), MSVehicle::getSpaceTillLastStanding(), MSDevice_SSM::getVehiclesOnJunction(), MSLane::handleCollisionBetween(), MSPModel_Remote::handlePedestrianLane(), MSRailSignal::hasOncomingRailTraffic(), MSVehicle::influenceChangeDecision(), MSActuatedTrafficLightLogic::init(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MSLCM_SL2015::keepLatGap(), MSLink::lastWasContMajor(), MSVehicle::leaveLane(), MESegment::limitedControlOverride(), MSRailSignal::LinkInfo::LinkInfo(), MSPedestrianPushButton::loadPushButtons(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), libsumo::Vehicle::moveTo(), MSPModel_Striping::PState::moveToXY(), libsumo::Helper::moveToXYMap(), MSTriggeredRerouter::myEndElement(), MSDevice_SSM::notifyEnter(), MSDevice_SSM::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), GUIViewTraffic::onCmdAddRerouter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdShowReachability(), MSLane::edge_finder::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), MSRouteHandler::parseWalkPositions(), MSVehicle::passingMinor(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), MSLCM_SL2015::prepareStep(), MSAbstractLaneChangeModel::primaryLaneChanged(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSPModel_Striping::PState::PState(), MSVehicle::replaceRoute(), GUIVehicle::rerouteDRTStop(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSTransportable::rerouteParkingArea(), MSVehicle::resumeFromStopping(), libsumo::Lane::setAllowed(), libsumo::Lane::setDisallowed(), MSLink::setRequestInformation(), GUITriggeredRerouter::shiftProbs(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSVehicle::willStop(), and MSFCDExport::write().
double GUILane::getEdgeLaneNumber | ( | ) | const |
Definition at line 931 of file GUILane.cpp.
References MSEdge::getLanes(), and MSLane::myEdge.
Referenced by getColorValue(), and getScaleValue().
|
inherited |
Returns the sum of last step electricity consumption.
Definition at line 2808 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by getColorValue(), libsumo::Lane::getElectricityConsumption(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Returns the entry link if this is an internal lane, else 0.
Definition at line 2138 of file MSLane.cpp.
References MSLane::getCanonicalPredecessorLane(), MSLane::getLinkTo(), and MSLane::isInternal().
Referenced by MSDevice_SSM::classifyEncounter(), MSLink::getLengthBeforeCrossing(), MSLane::getUpcomingLinks(), and MSDevice_SSM::getVehiclesOnJunction().
|
inherited |
returns the first vehicle that is fully or partially on this lane
Definition at line 2047 of file MSLane.cpp.
References MSVehicle::getPositionOnLane(), MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSRailSignal::hasOncomingRailTraffic().
|
inherited |
returns the first vehicle for which this lane is responsible or 0
Definition at line 2024 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by MSLane::freeInsertion().
|
inherited |
Returns 0 if the lane is not internal. Otherwise the first part of the connection (sequence of internal lanes along junction) corresponding to the lane is returned and the offset is set to the distance of the begin of this lane to the begin of the returned.
Definition at line 1848 of file MSLane.cpp.
References MSLane::getCanonicalPredecessorLane(), MSLane::getLength(), and MSLane::isInternal().
Referenced by MSDevice_SSM::classifyEncounter().
|
inherited |
analogue to getLastVehicleInformation but in the upstream direction
Definition at line 1118 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), MSLane::anyVehiclesUpstreamBegin(), DEBUG_COND2, MSNet::getCurrentTimeStep(), MSBaseVehicle::getID(), MSNet::getInstance(), MSVehicle::getLatOffset(), MSVehicle::getPositionOnLane(), MSGlobals::gNumSimThreads, MSVehicle::isFrontOnLane(), MSLane::myFollowerInfo, MSLane::myFollowerInfoTime, and MSLane::myLength.
Referenced by MSLane::getFollowersOnConsecutive().
|
inherited |
Find follower vehicle for the given ego vehicle (which may be on the opposite direction lane)
[in] | ego | The ego vehicle |
[in] | egoPos | The ego position mapped to the current lane |
[in] | dist | The look-back distance when looking at consecutive lanes |
[in] | ignoreMinorLinks | Whether backward search should stop at minor links |
Definition at line 3539 of file MSLane.cpp.
References MSLane::anyVehiclesUpstreamBegin(), MSLane::anyVehiclesUpstreamEnd(), DEBUG_COND2, MSLane::getFollowersOnConsecutive(), MSBaseVehicle::getID(), Named::getID(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), and MSBaseVehicle::getVehicleType().
Referenced by libsumo::Helper::applySubscriptionFilters(), MSLane::getOppositeFollower(), and MSLane::getOppositeLeader().
|
inherited |
return the sublane followers with the largest missing rear gap among all predecessor lanes (within dist)
XXX iterate in reverse and abort when there are no more freeSublanes
XXX dubious term. here for backwards compatibility
Definition at line 3078 of file MSLane.cpp.
References MSCriticalFollowerDistanceInfo::addFollower(), MSLane::anyVehiclesBegin(), MSLane::anyVehiclesEnd(), DEBUG_COND2, gDebugFlag1, MSLane::getEdge(), MSLane::getFirstVehicleInformation(), MSBaseVehicle::getID(), Named::getID(), Named::getIDSecure(), MSLane::getIncomingLanes(), MSVehicle::getLane(), MSEdge::getLanes(), MSVehicle::getLatOffset(), MSLane::getLength(), MSVehicleType::getLength(), MSLane::getMaximumBrakeDist(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSLane::getRightSideOnEdge(), MSBaseVehicle::getVehicleType(), MSVehicle::isFrontOnLane(), MSLane::IncomingLaneInfo::lane, MSLane::IncomingLaneInfo::length, MAX2(), MSLane::myEdge, MSLane::myIncomingLanes, NUMERICAL_EPS, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), SIMTIME, MSLeaderInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), and MSLane::IncomingLaneInfo::viaLink.
Referenced by MSLane::getFollower(), MSLane::getMissingRearGap(), and MSLane::isInsertionSuccess().
|
inherited |
Returns the sum of last step fuel consumption.
Definition at line 2796 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by getColorValue(), libsumo::Lane::getFuelConsumption(), getScaleValue(), and MSFullExport::writeLane().
|
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(), GUICalibrator::openManipulator(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObjectStorage::remove(), 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(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIEdge::drawGL(), GUIJunctionWrapper::drawGL(), drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNECalibrator::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNETAZ::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIPointOfInterest::drawGL(), GUIPolygon::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), drawLinkRule(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawRerouterSymbol(), GNELane::drawVSSSymbol(), GUIContainer::getColorValue(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIPerson::getColorValue(), GUIVehicle::getColorValue(), GUIMEVehicle::getColorValue(), GNEPOI::getGlID(), GNEPoly::getGlID(), GUISUMOAbstractView::getGUIGlObjectsAtPosition(), GUIEdge::getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIShapeContainer::getPOIIds(), GUIShapeContainer::getPolygonIDs(), GUIBaseVehicle::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUIEdge::getScaleValue(), GUITransportableControl::insertPersonIDs(), GUIMEVehicleControl::insertVehicleIDs(), GUIVehicleControl::insertVehicleIDs(), isLaneOrEdgeSelected(), GUIEdge::isSelected(), isSelected(), GUIPerson::isSelected(), GUIVehicle::isSelected(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GUIDialog_GLChosenEditor::onCmdDeselect(), GUIApplicationWindow::onCmdEditChosen(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIViewTraffic::onCmdShowReachability(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIContainer::GUIContainerPopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIDialog_GLObjChooser::onCmdTrack(), GUIViewTraffic::onGamingClick(), TraCIServerAPI_GUI::processSet(), GUIDialog_GLObjChooser::refreshList(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GNEAdditional::selectAttributeCarrier(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEStop::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEVehicleType::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), GUIVehicle::selectBlockingFoes(), GUIPolygon::setColor(), GUIPointOfInterest::setColor(), GUIMessageWindow::setCursorPos(), GNEAdditional::unselectAttributeCarrier(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEStop::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEVehicleType::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), GNENetElement::unselectAttributeCarrier(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
|
inherited |
Returns the sum of last step noise emissions.
Definition at line 2820 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and HelpersHarmonoise::sum().
Referenced by getColorValue(), libsumo::Lane::getNoiseEmission(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Returns the sum of last step HC emissions.
Definition at line 2784 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by getColorValue(), libsumo::Lane::getHCEmission(), getScaleValue(), and MSFullExport::writeLane().
|
inlineinherited |
Returns the id.
Definition at line 76 of file Named.h.
References Named::myID.
Referenced by MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), LaneStoringVisitor::add(), Named::StoringVisitor::add(), MSVehicleTransfer::add(), MSPModel_Striping::add(), MSPModel_Remote::add(), PCPolyContainer::add(), ShapeContainer::add(), MSDetectorControl::add(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), NLHandler::addConnection(), NBLoadedSUMOTLDef::addConnection(), MSPModel_Striping::addCrossingVehs(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), MSLane::addNeigh(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), RONet::addRouteDef(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), MSNet::addStoppingPlace(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), NIXMLConnectionsHandler::addWalkingArea(), libsumo::Helper::applySubscriptionFilters(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSPModel_Striping::blockedAtDist(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), MSRailSignal::LinkInfo::buildDriveWay(), NLDetectorBuilder::buildE2Detector(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NGEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSRailSignal::DriveWay::buildRoute(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSVehicle::canReverse(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), MSEdge::checkAndRegisterBiDirEdge(), MSRailSignal::DriveWay::checkCrossingFlanks(), MSLane::checkForPedestrians(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSSwarmTrafficLightLogic::choosePolicy(), MSDevice_SSM::classifyEncounter(), ShapeContainer::clearHighlights(), NBTrafficLightLogic::closeBuilding(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), IntermodalRouter< E, L, N, V >::compute(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBNode::computeLanes2Lanes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), NBNodeTypeComputer::computeNodeTypes(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), MSVehicle::Manoeuvre::configureEntryManoeuvre(), MSVehicle::Manoeuvre::configureExitManoeuvre(), NGNet::connect(), NBOwnTLDef::corridorLike(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSActuatedTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), NIVissimDistrictConnection::dict_BuildDistrictNodes(), NIVissimDistrictConnection::dict_BuildDistricts(), MSE3Collector::enter(), MSVehicle::enterLaneAtMove(), MSVehicle::Manoeuvre::entryManoeuvreIsComplete(), METriggeredCalibrator::execute(), Command_SaveTLSProgram::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitches::execute(), Command_SaveTLSSwitchStates::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), libsumo::Helper::findCloserLane(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), libsumo::Simulation::findIntermodalRoute(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBTrafficLightDefinition::forbids(), NBNodeCont::generateNodeClusters(), GUITrafficLightLogicWrapper::getActiveTLLogic(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSPModel_Striping::getArbitraryPath(), MSVehicle::getBackPosition(), MSVehicle::getBackPositionOnLane(), libsumo::Vehicle::getBestLanes(), NBOwnTLDef::getBestPair(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSRailSignal::getClickableTLLinkID(), libsumo::TrafficLight::getControlledLinks(), MSLane::getCriticalLeader(), NBNodeShapeComputer::getDefaultRadius(), MSLink::getDescription(), NBTrafficLightDefinition::getDescription(), GUIPerson::getDestinationEdgeID(), RODFNet::getDetectorEdge(), MSActuatedTrafficLightLogic::getDetectorPriority(), GUIPerson::getEdgeID(), GUIMEVehicle::getEdgeID(), MSMeanData::getEdgeID(), libsumo::Lane::getEdgeID(), MSPModel_Remote::getFirstPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), GUIPerson::getFromEdgeID(), MSCalibrator::getID(), NBEdge::getID(), libsumo::InductionLoop::getLaneID(), libsumo::LaneArea::getLaneID(), libsumo::Vehicle::getLaneID(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), MSLane::getLinkTo(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), GNEDialogACChooser::getObjectName(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), libsumo::Simulation::getParameter(), getParameterWindow(), GUITrafficLightLogicWrapper::getParameterWindow(), getParentName(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), PolygonDynamics::getPolygonID(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), libsumo::Person::getRoadID(), libsumo::Vehicle::getRoadID(), MSLCM_LC2013::getRoundaboutDistBonus(), libsumo::Vehicle::getRouteID(), MSVehicle::getSafeFollowSpeed(), libsumo::Person::getStage(), MSContainer::MSContainerStage_Driving::getStageSummary(), MSContainer::MSContainerStage_Tranship::getStageSummary(), MSTransportable::Stage_Trip::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), MSPerson::MSPersonStage_Walking::getStageSummary(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSNet::getStoppingPlaceID(), MSLane::getSurroundingVehicles(), MSActuatedTrafficLightLogic::getTarget(), MSRailSignal::getTLLinkID(), MSLane::getUpcomingLinks(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSEdge::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), MSVehicle::haveValidStopEdges(), libsumo::POI::highlight(), MSVehicle::ignoreRed(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicles(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MESegment::isOpen(), RODFNet::isSource(), NIImporter_VISUM::isSplitEdge(), MSSOTLTrafficLightLogic::isThresholdPassed(), MESegment::jamThresholdForSpeed(), NBNodeShapeComputer::joinSameDirectionEdges(), MSAbstractLaneChangeModel::laneChangeOutput(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), MSSOTLE2Sensors::meanVehiclesSpeed(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSE2Collector::MSE2Collector(), NBLoadedTLDef::myCompute(), NIImporter_SUMO::myEndElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), MSPModel_Striping::nextBlocking(), MSE2Collector::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Bluelight::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Transportable::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSDevice_Example::notifyMove(), MSDevice_SSM::notifyMove(), MSE2Collector::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_ToC::notifyMove(), GNETLSEditorFrame::onCmdDefSwitch(), GUIViewTraffic::onGamingClick(), MSLink::opened(), RORouteHandler::openRoute(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), RODFNet::idComp::operator()(), NIImporter_VISUM::parse_Connectors_legacy(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_Turns(), NLTriggerBuilder::parseAndBuildCalibrator(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), MSDevice_SSM::processEncounters(), MSVehicle::processLaneAdvances(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), NIXMLNodesHandler::processNodeType(), TraCIServerAPI_Vehicle::processSet(), MEVehicle::processStop(), NIXMLNodesHandler::processTrafficLightDefinitions(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneClusterFringe(), MSPModel_Striping::PState::PState(), MSOffTrafficLightLogic::rebuildPhase(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedSUMOTLDef::reconstructLogic(), MSLink::removeApproaching(), MSVehicle::removePassedDriveItems(), GNEJunction::removeTLSConnections(), NBNodeCont::rename(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), GNEJunction::replaceIncomingConnections(), MSVehicle::replaceParkingArea(), MSVehicle::replaceRoute(), MSBaseVehicle::replaceRouteEdges(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NLEdgeControlBuilder::reportCurrentEdgeOrLane(), MSDevice_ToC::requestToC(), MSBaseVehicle::reroute(), MSRailSignal::LinkInfo::reroute(), GUIVehicle::rerouteDRTStop(), MSTriggeredRerouter::rerouteParkingArea(), MSVehicle::rerouteParkingArea(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), RODFNet::revalidateFlows(), NBRailwayTopologyAnalyzer::reverseEdges(), RONet::saveAndRemoveRoutesUntil(), ROPerson::Ride::saveAsXML(), ROVehicle::saveAsXML(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice::saveState(), MSDevice_Routing::saveState(), MSDevice_Tripinfo::saveState(), MSDevice_Vehroutes::saveState(), MSTransportableDevice_Routing::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSLink::setApproaching(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NLEdgeControlBuilder::setDefaultStopOffsets(), MSChargingStation::setEfficency(), MSLane::setManeuverReservation(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), NIImporter_OpenDrive::setNodeSecure(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), MSLane::sortManeuverReservations(), IntermodalNetwork< E, L, N, V >::splitEdge(), MSLaneChangerSublane::startChangeSublane(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSDevice_ToC::triggerUpwardToC(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), PolygonDynamics::update(), MSDevice_SSM::updateAndWriteOutput(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateCFRelated(), MSSOTLTrafficLightLogic::updateCTS(), NLEdgeControlBuilder::updateCurrentLaneStopOffsets(), MSVehicle::updateDriveItems(), GNETLSEditorFrame::TLSJunction::updateJunctionDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), NBNodeTypeComputer::validateRailCrossings(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSInstantInductLoop::write(), NBParking::write(), MSFCDExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSLink::writeApproaching(), MSRailSignal::writeBlocks(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeDistrict(), MSMeanData::writeEdge(), NWWriter_SUMO::writeEdge(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_OpenDrive::writeInternalEdge(), writeInterval(), NWWriter_SUMO::writeJunction(), MSFullExport::writeLane(), MSQueueExport::writeLane(), MSXMLRawOut::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), SUMOPolygon::writeXML(), PointOfInterest::writeXML(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSRouteProbe::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 69 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicle::checkRewindLinkLanes(), AStarRouter< E, V >::compute(), DijkstraRouter< E, V >::compute(), NBEdge::computeEdge2Edges(), NBEdge::computeLanes2Edges(), NBOwnTLDef::computeLogicAndConts(), MSLaneChanger::continueChange(), MSLane::detectCollisions(), MSRailSignal::DriveWay::findProtection(), NBPTLineCont::findWay(), MSCFModel_CACC::followSpeed(), MSCFModel_W99::followSpeed(), MSVehicle::getBackPositionOnLane(), NBOwnTLDef::getBestCombination(), NBOwnTLDef::getBestPair(), MSVehicle::getCenterOnEdge(), MSLaneChanger::getColumnleader(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), GUIVehicle::getLaneID(), MSVehicle::getLatOffset(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), GUIVehicle::getShadowLaneID(), GUIVehicle::getTargetLaneID(), NBEdge::init(), MSLane::isInsertionSuccess(), MESegment::isOpen(), joinNamedToString(), joinNamedToStringSorting(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), operator<<(), NBEdge::recheckLanes(), MSTriggeredRerouter::rerouteParkingArea(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), toString(), MSVehicle::updateBestLanes(), and MSAbstractLaneChangeModel::updateShadowLane().
|
inlineinherited |
Definition at line 818 of file MSLane.h.
References MSLane::myIncomingLanes.
Referenced by MSSOTLE2Sensors::buildContinueSensior(), MSRailSignal::DriveWay::buildRoute(), MSDevice_SSM::classifyEncounter(), MSRailSignal::DriveWay::findFlankProtection(), MSRailSignal::DriveWay::findProtection(), MSLane::getFollowersOnConsecutive(), MSLogicJunction::getInternalLanes(), MSNoLogicJunction::getInternalLanes(), MSLink::getInternalLengthsBefore(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::getNextWalkingArea(), MSLane::getSurroundingVehicles(), MSLink::isExitLinkAfterInternalJunction(), MSVehicle::isLeader(), MSLane::incoming_lane_priority_sorter::operator()(), MSVehicle::passingMinor(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), and MSLink::setRequestInformation().
|
inherited |
get the state of the link from the logical predecessor to this lane
Definition at line 2630 of file MSLane.cpp.
References MSLinkContHelper::getConnectingLink(), MSLane::getLogicalPredecessorLane(), MSLink::getState(), and LINKSTATE_DEADEND.
|
inlineinherited |
Returns the lane's index.
Definition at line 563 of file MSLane.h.
References MSLane::myIndex.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), libsumo::Helper::applySubscriptionFilters(), drawLinkNo(), MSVehicle::enterLaneAtMove(), MSCalibrator::execute(), libsumo::Vehicle::getLaneIndex(), MSLink::getLeaderInfo(), MSAbstractLaneChangeModel::getShadowDirection(), MSLink::getZipperSpeed(), MSEdge::insertVehicle(), MSCalibrator::myStartElement(), MSDevice_Vehroutes::notifyEnter(), MSDevice_Bluelight::notifyMove(), MSLink::opened(), MSEdge::parallelLane(), MSLaneChangerSublane::startChangeSublane(), and MSLaneChangerSublane::updateChanger().
|
inlineinherited |
return the type of this lane
Definition at line 492 of file MSLane.h.
References MSLane::myLaneType.
|
inherited |
returns the last vehicle that is fully or partially on this lane
Definition at line 2033 of file MSLane.cpp.
References MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSVehicle::checkRewindLinkLanes(), MSLaneChanger::getColumnleader(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), and MSLane::lastInsertion().
|
inherited |
returns the last vehicle for which this lane is responsible or 0
Definition at line 2015 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by MSCalibrator::remainingVehicleCapacity().
|
inherited |
Returns the last vehicles on the lane.
The information about the last vehicles in this lanes in all sublanes occupied by ego are returned. Partial occupators are included
[in] | ego | The vehicle for which to restrict the returned leaderInfo |
[in] | minPos | The minimum position from which to start search for leaders |
[in] | allowCached | Whether the cached value may be used |
Definition at line 1062 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), MSLane::anyVehiclesBegin(), DEBUG_COND2, gDebugFlag1, MSNet::getCurrentTimeStep(), MSBaseVehicle::getID(), Named::getID(), MSNet::getInstance(), MSVehicle::getLatOffset(), MSVehicle::getPositionOnLane(), MSGlobals::gNumSimThreads, MSLane::myLeaderInfo, MSLane::myLeaderInfoTime, and MSLeaderInfo::toString().
Referenced by MSLane::detectCollisions(), MSLane::getLeadersOnConsecutive(), MSLane::isInsertionSuccess(), and MSVehicle::planMoveInternal().
|
inherited |
Returns the immediate leader of veh and the distance to veh starting on this lane.
Iterates over the current lane to find a leader and then uses getLeaderOnConsecutive()
[in] | veh | The vehicle for which the information shall be computed |
[in] | vehPos | The vehicle position relative to this lane (may be negative) |
[in] | bestLaneConts | The succeding lanes that shall be checked (if any) |
[in] | dist | Optional distance to override default (ego stopDist) |
[in] | checkTmpVehicles | Whether myTmpVehicles should be used instead of myVehicles |
Definition at line 2279 of file MSLane.cpp.
References MSLane::anyVehiclesBegin(), MSLane::anyVehiclesEnd(), MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSBaseVehicle::getID(), Named::getID(), MSLane::getLeaderOnConsecutive(), MSLane::getLength(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), gPrecision, MSLane::myTmpVehicles, MSLane::myVehicles, and toString().
Referenced by libsumo::Helper::applySubscriptionFilters(), MSLaneChanger::checkChange(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), and MSLane::lastInsertion().
|
inherited |
Returns the immediate leader and the distance to him.
Goes along the vehicle's estimated used lanes (bestLaneConts). For each link, it is determined whether the vehicle will pass it. If so, the subsequent lane is investigated. If a vehicle (leader) is found, it is returned, together with the length of the investigated lanes until this vehicle's end, including the already seen place (seen).
If no leading vehicle was found, <0, -1> is returned.
Pretty slow, as it has to go along lanes.
[in] | dist | The distance to investigate |
[in] | seen | The already seen place (normally the place in front on own lane) |
[in] | speed | The speed of the vehicle used for determining whether a subsequent link will be opened at arrival time |
[in] | veh | The vehicle for which the information shall be computed |
[in] | bestLaneConts | The lanes the vehicle will use in future |
Definition at line 2344 of file MSLane.cpp.
References MSCFModel::brakeGap(), DEBUG_COND2, gDebugFlag1, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSBaseVehicle::getID(), Named::getID(), Named::getIDSecure(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSVehicle::getLane(), MSLane::getLastAnyVehicle(), MSVehicle::getLateralPositionOnLane(), MSLane::getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSLane::getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MSLane::isInternal(), MSVehicle::isLeader(), MSLane::isLinkEnd(), MAX2(), MSLane::myPartialVehicles, NUMERICAL_EPS, MSLane::releaseVehicles(), MSLane::succLinkSec(), TIME2STEPS, and toString().
Referenced by MSLane::getLeader(), and MSVehicle::getLeader().
|
inherited |
Returns the immediate leaders and the distance to them (as getLeaderOnConsecutive but for the sublane case)
Definition at line 3259 of file MSLane.cpp.
References MSLeaderDistanceInfo::addLeader(), MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSBaseVehicle::getID(), Named::getID(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSLane::getLastVehicleInformation(), MSVehicle::getLateralPositionOnLane(), MSVehicle::getLatOffset(), MSLane::getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSVehicle::isFrontOnLane(), MSVehicle::isLeader(), MSLane::isLinkEnd(), MAX2(), MIN2(), MSLane::myPartialVehicles, NUMERICAL_EPS, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), SIMTIME, MSLane::succLinkSec(), TIME2STEPS, MSLeaderInfo::toString(), and MSLink::LinkLeader::vehAndGap.
|
inlineinherited |
Returns the lane's length.
Definition at line 540 of file MSLane.h.
References MSLane::myLength.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::adaptToLeaders(), NLTriggerBuilder::addAccess(), NLHandler::addConnection(), MSPModel_Striping::addCrossingVehs(), NLHandler::addE2Detector(), MSLane::addIncomingLane(), MSParkingArea::addLotEntry(), MSLane::addNeigh(), MSVehicle::addStop(), libsumo::Helper::applySubscriptionFilters(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NLDetectorBuilder::buildE2Detector(), MSRailSignal::DriveWay::buildRoute(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), MSVehicle::canReverse(), MSLaneChanger::changeOpposite(), MSLaneChanger::checkChange(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSDevice_SSM::classifyEncounter(), debugDrawFoeIntersections(), GUIVehicle::drawAction_drawCarriageClass(), GUIEdge::drawMesoVehicles(), MSVehicle::executeMove(), MSLane::executeMovements(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSLane::freeInsertion(), getColorValue(), MSLaneChanger::getColumnleader(), MSLane::getCriticalLeader(), MSVehicle::getDistanceToPosition(), MSE2Collector::getEstimateQueueLength(), MSLane::getFirstInternalInConnection(), MSLane::getFollowersOnConsecutive(), MSLink::getInternalLengthsAfter(), MSLink::getInternalLengthsBefore(), libsumo::Helper::getLaneChecking(), NLShapeHandler::getLanePos(), MSLane::getLeader(), MSVehicle::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), libsumo::Lane::getLength(), MSLink::getLengthBeforeCrossing(), MSLink::getLengthsBeforeCrossing(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), libsumo::Vehicle::getNextTLS(), MSLane::getOppositePos(), NLTriggerBuilder::getPosition(), MSVehicle::getPositionAlongBestLanes(), NLDetectorBuilder::getPositionChecking(), MSLaneChanger::getRealLeader(), MSVehicle::getRerouteOrigin(), MSLCM_LC2013::getRoundaboutDistBonus(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpaceTillLastStanding(), MSLane::getSurroundingVehicles(), libsumo::Lane::getTraveltime(), MSLane::getUpcomingLinks(), MSPModel_Striping::getVehicleObstacles(), MSLane::handleCollisionBetween(), MSLCM_LC2013::informFollower(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), MSPModel_Striping::initWalkingAreaPaths(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), MSVehicle::leaveLane(), MSPModel_Striping::moveInDirectionOnLane(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSCalibrator::MSCalibrator(), MSE2Collector::MSE2Collector(), MSDevice_Tripinfo::notifyLeave(), NLTriggerBuilder::parseAndBeginParkingArea(), NLTriggerBuilder::parseAndBuildChargingStation(), MSRouteHandler::parseWalkPositions(), MSVehicle::planMoveInternal(), MSVehicle::processLaneAdvances(), MSE2Collector::recalculateDetectorLength(), MSCalibrator::remainingVehicleCapacity(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSVehicle::setBlinkerInformation(), MSLink::setRequestInformation(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), MSVehicle::validatePosition(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData::writeEdge(), and MSQueueExport::writeLane().
|
inlineinherited |
return shape.length() / myLength
Definition at line 482 of file MSLane.h.
References MSLane::myLengthGeometryFactor.
|
inherited |
returns the container with all links !!!
Definition at line 2110 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSPModel_Striping::addCrossingVehs(), MSRailSignal::DriveWay::buildRoute(), MSDevice_SSM::classifyEncounter(), MSLCM_SL2015::computeSublaneShift(), MSLink::contIntersect(), debugDrawFoeIntersections(), drawGL(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), MSRailSignal::DriveWay::findProtection(), MSDevice_SSM::findSurroundingVehicles(), MSVehicle::getBestLanesContinuation(), MSLinkContHelper::getConnectingLink(), MSLink::getCorrespondingExitLink(), libsumo::Lane::getInternalFoes(), MSLinkContHelper::getInternalFollowingEdge(), MSLinkContHelper::getInternalFollowingLane(), MSLink::getInternalLengthsAfter(), MSLink::getLeaderInfo(), MSLink::getLengthsBeforeCrossing(), MESegment::getLink(), libsumo::Lane::getLinkNumber(), libsumo::Lane::getLinks(), MESegment::getMaxPenaltySeconds(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextWalkingArea(), MSVehicle::getPositionAlongBestLanes(), MSLCM_LC2013::getRoundaboutDistBonus(), libsumo::TrafficLight::getServedPersonCount(), MSLane::getSurroundingVehicles(), MSActuatedTrafficLightLogic::init(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), MSVehicle::processLaneAdvances(), MSEdge::recalcCache(), MSVehicle::setBlinkerInformation(), MSLink::setRequestInformation(), MSVehicle::updateBestLanes(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
returns the link to the given lane or 0, if it is not connected
Definition at line 2117 of file MSLane.cpp.
References Named::getID(), MSLane::isInternal(), and MSLane::myLinks.
Referenced by MSVehicle::enterLaneAtMove(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSLane::getEntryLink(), MSVehicle::getPositionAlongBestLanes(), MSLane::getUpcomingLinks(), MSE2Collector::initAuxiliaries(), MSLane::incoming_lane_priority_sorter::operator()(), MSE2Collector::recalculateDetectorLength(), MSE2Collector::selectLanes(), MSVehicle::setAngle(), and MSVehicle::updateDriveItems().
double GUILane::getLoadedEdgeWeight | ( | ) | const |
Returns the loaded weight (effort) for the edge of this lane.
Definition at line 950 of file GUILane.cpp.
References MSNet::getInstance(), MSNet::getWeightsStorage(), MSEdgeWeightsStorage::knowsEffort(), MSLane::myEdge, MSEdgeWeightsStorage::retrieveExistingEffort(), and STEPS2TIME.
Referenced by getColorValue(), getParameterWindow(), and getScaleValue().
|
inherited |
get the most likely precedecessor lane (sorted using by_connections_to_sorter). The result is cached in myLogicalPredecessorLane
Definition at line 2543 of file MSLane.cpp.
References MSLane::getEdge(), MSEdge::getPredecessors(), MSLane::myEdge, MSLane::myIncomingLanes, and MSLane::myLogicalPredecessorLane.
Referenced by MSEdge::allowsLaneChanging(), MSVehicle::checkLinkLeader(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSLane::getIncomingLinkState(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLane(), MSLane::getNormalPredecessorLane(), MSActuatedTrafficLightLogic::init(), MSLink::lastWasContMajor(), libsumo::Helper::moveToXYMap(), MSInternalJunction::postloadInit(), setFunctionalColor(), MSLink::setRequestInformation(), and MSVehicle::updateBestLanes().
return the (first) predecessor lane from the given edge
Definition at line 2578 of file MSLane.cpp.
References MSLane::getEdge(), and MSLane::myIncomingLanes.
|
protectedinherited |
compute maximum braking distance on this lane
Definition at line 2268 of file MSLane.cpp.
References MSNet::getInstance(), MSVehicleControl::getMaxSpeedFactor(), MSVehicleControl::getMinDeceleration(), MSLane::getSpeedLimit(), MSNet::getVehicleControl(), MIN2(), MSLane::myPermissions, and SVC_SHIP.
Referenced by MSLane::getFollowersOnConsecutive().
|
inherited |
Returns the mean speed on this lane.
Definition at line 2720 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::myMaxSpeed, MSLane::myVehicles, and MSLane::releaseVehicles().
Referenced by getColorValue(), libsumo::Lane::getLastStepMeanSpeed(), getScaleValue(), libsumo::Lane::getTraveltime(), MSCalibrator::invalidJam(), and MSFullExport::writeLane().
|
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(), GNEEdge::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNEDemandElement::getDemandElementID(), GUIDialog_GLObjChooser::getObjectName(), GNEDialogACChooser::getObjectName(), GNEDetector::getParentName(), GNEDetectorE3::getParentName(), GNEPOI::getParentName(), GNEPoly::getParentName(), GNERerouter::getParentName(), GNETAZ::getParentName(), GNEVariableSpeedSign::getParentName(), GNEPerson::getParentName(), GNEPersonTrip::getParentName(), GNERide::getParentName(), GNERoute::getParentName(), GNEVehicleType::getParentName(), GNEWalk::getParentName(), GNELane::getParentName(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyName(), GNENet::registerEdge(), GNENet::registerJunction(), SUMORTree::removeAdditionalGLObject(), GNEEdge::removeConnection(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnection::updateID().
|
inherited |
return by how much further the leader must be inserted to avoid rear end collisions
Definition at line 2252 of file MSLane.cpp.
References MSVehicle::getCarFollowModel(), MSLane::getFollowersOnConsecutive(), MSCFModel::getMaxDecel(), MSCFModel::getSecureGap(), and MSVehicle::getSpeed().
Referenced by MSLane::freeInsertion(), and MSLane::isInsertionSuccess().
|
inlineinherited |
Return the list of this lane's move reminders.
Definition at line 267 of file MSLane.h.
References MSLane::myMoveReminders.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSPerson::MSPersonStage_Walking::proceed(), and MSVehicle::processNextStop().
|
inherited |
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps)
Definition at line 2692 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSLane::getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MIN2(), MSLane::myLength, MSLane::myNettoVehicleLengthSum, MSLane::myPartialVehicles, MSLane::myVehicles, and MSLane::releaseVehicles().
Referenced by getColorValue(), libsumo::Lane::getLastStepOccupancy(), getParameterWindow(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Returns the lane's follower if it is an internal lane, the edge of the lane otherwise.
Definition at line 1838 of file MSLane.cpp.
References MSEdge::getSuccessors(), MSEdge::isInternal(), and MSLane::myEdge.
Referenced by MSVehicle::addStop(), MSVehicle::getRerouteOrigin(), libsumo::Vehicle::moveTo(), and MSVehicle::updateBestLanes().
|
inherited |
get normal lane leading to this internal lane, for normal lanes, the lane itself is returned
Definition at line 2568 of file MSLane.cpp.
References MSLane::getLogicalPredecessorLane(), MSLane::getNormalPredecessorLane(), and MSLane::isInternal().
Referenced by MSLane::getNormalPredecessorLane(), and MSVehicle::updateBestLanes().
|
inherited |
Returns the sum of last step NOx emissions.
Definition at line 2772 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by getColorValue(), libsumo::Lane::getNOxEmission(), getScaleValue(), and MSFullExport::writeLane().
|
inlineinherited |
Returns this lane's numerical id.
Definition at line 469 of file MSLane.h.
References MSLane::myNumericalID.
Referenced by MSDevice_ToC::checkDynamicToC(), MSDevice_ToC::notifyMove(), MSPModel_Striping::lane_by_numid_sorter::operator()(), and MSPModel_Striping::walkingarea_path_sorter::operator()().
|
inlinestaticinherited |
return the number of RNGs
Definition at line 227 of file MSLane.h.
References MSLane::myRNGs.
Referenced by MSEdgeControl::executeMovements(), and MSEdgeControl::planMovements().
|
inherited |
return the opposite direction lane for lane changing or 0
Definition at line 3518 of file MSLane.cpp.
References MSLane::dictionary(), and MSLane::myNeighs.
Referenced by MSLane::addNeigh(), MSLaneChanger::changeOpposite(), MSVehicle::executeMove(), MSDevice_SSM::findSurroundingVehicles(), MSVehicle::getLatOffset(), MSLane::getOppositePos(), MSVehicle::getPositionAlongBestLanes(), MSEdge::parallelLane(), MSVehicle::planMoveInternal(), MSVehicle::updateBestLanes(), and MSVehicle::updateState().
|
inherited |
Definition at line 3581 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSLane::getFollower(), MSBaseVehicle::getID(), Named::getID(), MSVehicle::getLaneChangeModel(), MSLane::getLeader(), MSVehicleType::getLength(), MSLane::getOppositePos(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSAbstractLaneChangeModel::isOpposite(), POSITION_EPS, and SIMTIME.
Referenced by MSLaneChanger::changeOpposite().
|
inherited |
Definition at line 3558 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBestLanesContinuation(), MSLane::getFollower(), MSBaseVehicle::getID(), Named::getID(), MSVehicle::getLaneChangeModel(), MSLane::getLeader(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), MSLane::getOppositePos(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSAbstractLaneChangeModel::isOpposite(), and SIMTIME.
Referenced by MSLaneChanger::changeOpposite(), and MSVehicle::planMoveInternal().
|
inherited |
return the corresponding position on the opposite lane
Definition at line 3527 of file MSLane.cpp.
References Named::getID(), MSLane::getLength(), MSLane::getOpposite(), and MAX2().
Referenced by MSLCM_LC2013::_wantsChange(), MSLaneChanger::changeOpposite(), MSVehicle::executeMove(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSAbstractLaneChangeModel::primaryLaneChanged(), and MSVehicle::updateState().
|
virtualinherited |
Returns the name of the object (default "")
Reimplemented in GNEEdge, GUIParkingArea, GUIJunctionWrapper, GUIEdge, GUIContainerStop, GUIChargingStation, GUIBusStop, and GUIBaseVehicle.
Definition at line 168 of file GUIGlObject.cpp.
Referenced by GUIDialog_GLObjChooser::getObjectName().
|
inherited |
get the list of outgoing lanes
Definition at line 2641 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSVehicle::replaceRoute().
|
inherited |
Returns the lane with the given offset parallel to this one or 0 if it does not exist.
[in] | offset | The offset of the result lane |
Definition at line 2198 of file MSLane.cpp.
References MSLane::myEdge, and MSEdge::parallelLane().
Referenced by libsumo::Helper::applySubscriptionFilters(), MSLaneChanger::checkChange(), MSLink::computeParallelLink(), MSLaneChanger::continueChange(), MSAbstractLaneChangeModel::determineTargetLane(), MSAbstractLaneChangeModel::getShadowLane(), MSVehicle::lateralDistanceToLane(), and MSAbstractLaneChangeModel::updateTargetLane().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 72 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::addRestrictedLane(), FareModul::addStop(), NBEdge::append(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), GNEEdge::drawEdgeName(), GUIEdge::drawGL(), GNEConnection::drawGL(), GUIBaseVehicle::drawOnPos(), libsumo::Simulation::findIntermodalRoute(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), MSDevice::getBoolParam(), NBRailwayTopologyAnalyzer::getBrokenRailNodes(), MSSwarmTrafficLightLogic::getChangePlanProbability(), getColorValue(), GUIVehicle::getColorValue(), GNELane::getColorValue(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), GUIBaseVehicle::getOptionalName(), GUIJunctionWrapper::getOptionalName(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), libsumo::Edge::getParameter(), libsumo::Lane::getParameter(), libsumo::Simulation::getParameter(), libsumo::POI::getParameter(), libsumo::Polygon::getParameter(), libsumo::Person::getParameter(), libsumo::Route::getParameter(), libsumo::TrafficLight::getParameter(), libsumo::VehicleType::getParameter(), libsumo::Vehicle::getParameter(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSDevice::getStringParam(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), MSSOTLPhasePolicy::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), PushButtonLogic::init(), SigmoidLogic::init(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), NBEdgeCont::splitAt(), MSDevice_SSM::useGeoCoords(), NWWriter_DlrNavteq::writeLinksUnsplitted(), and NWWriter_OpenDrive::writeRoadObjects().
|
inherited |
Returns the inner key/value map.
Definition at line 106 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBEdge::addLane(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GUIJunctionWrapper::getParameterWindow(), getParameterWindow(), GUITrafficLightLogicWrapper::getParameterWindow(), GUIPointOfInterest::getParameterWindow(), GUIPolygon::getParameterWindow(), GUIContainer::getTypeParameterWindow(), GUIPerson::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), GUIParameterTableWindow::numParams(), GNEVehicleType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), and Parameterised::setParameters().
|
inherited |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition at line 112 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEClosingLaneReroute::getAttribute(), GNEClosingReroute::getAttribute(), GNEContainerStop::getAttribute(), GNEDestProbReroute::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE1Instant::getAttribute(), GNEDetectorE2::getAttribute(), GNEDetectorE3::getAttribute(), GNEDetectorEntryExit::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingAreaReroute::getAttribute(), GNEParkingSpace::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), GNERerouter::getAttribute(), GNERerouterInterval::getAttribute(), GNERouteProbe::getAttribute(), GNERouteProbReroute::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEVariableSpeedSignStep::getAttribute(), GNEPerson::getAttribute(), GNEPersonTrip::getAttribute(), GNERide::getAttribute(), GNERoute::getAttribute(), GNEVehicle::getAttribute(), GNEVehicleType::getAttribute(), GNEWalk::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEJunction::getAttribute(), and GNELane::getAttribute().
|
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 GUIGlObject.
Definition at line 863 of file GUILane.cpp.
References GUIParameterTableWindow::closeBuilding(), MSEdge::getBidiEdge(), MSLane::getBruttoOccupancy(), MSEdge::getDistance(), MSEdge::getEdgeType(), Named::getID(), getLoadedEdgeWeight(), MSLane::getNettoOccupancy(), Parameterised::getParametersMap(), getPendingEmits(), MSEdge::getPriority(), MSEdge::getRoutingSpeed(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), MSEdge::getStreetName(), getVehicleClassNames(), GUIParameterTableWindow::mkItem(), MSLane::myEdge, MSLane::myLaneType, MSLane::myLength, MSLane::myPermissions, and MSLane::myWidth.
|
inlinevirtual |
Returns the name of the parent object (if any)
Reimplemented from GUIGlObject.
Definition at line 90 of file GUILane.h.
References MSLane::getEdge(), and Named::getID().
|
inlineinherited |
retrieve the parking vehicles (see GUIParkingArea)
Definition at line 1123 of file MSLane.h.
References MSLane::myParkingVehicles.
Referenced by GUIParkingArea::drawGL().
Definition at line 3349 of file MSLane.cpp.
References DEBUG_COND2, MSBaseVehicle::getID(), Named::getID(), MSVehicle::getPositionOnLane(), MSVehicle::isFrontOnLane(), MSLane::myPartialVehicles, SIMTIME, and toString().
|
inherited |
get all vehicles that are inlapping from consecutive edges
Definition at line 3372 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), MSVehicle::getLatOffset(), MSVehicle::isFrontOnLane(), and MSLane::myPartialVehicles.
|
inlineinherited |
Returns the number of vehicles partially on this lane (for which this lane is not responsible)
Definition at line 416 of file MSLane.h.
References MSLane::myPartialVehicles.
|
private |
get number of vehicles waiting for departure on this lane
Definition at line 1356 of file GUILane.cpp.
References MSNet::getInsertionControl(), MSNet::getInstance(), and MSInsertionControl::getPendingEmits().
Referenced by getColorValue(), and getParameterWindow().
|
inlineinherited |
Returns the vehicle class permissions for this lane.
Definition at line 548 of file MSLane.h.
References MSLane::myPermissions.
Referenced by MSSwarmTrafficLightLogic::allowLine(), libsumo::Lane::getAllowed(), MSInternalJunction::indirectBicycleTurn(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), and GUIApplicationWindow::onCmdEditChosen().
|
inherited |
Returns the sum of last step PMx emissions.
Definition at line 2760 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by getColorValue(), libsumo::Lane::getPMxEmission(), getScaleValue(), and MSFullExport::writeLane().
|
virtual |
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 821 of file GUILane.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUIIconSubSys::getIcon(), GUISUMOAbstractView::getPositionInformation(), ICON_FLAG, GUIGLObjectPopupMenu::insertMenuPaneChild(), MSLane::interpolateGeometryPosToLanePos(), MID_ADD_REROUTER, MID_CLOSE_EDGE, MID_CLOSE_LANE, MID_COPY_EDGE_NAME, MID_REACHABILITY, myAmClosed, MSLane::myPermissionChanges, MSLane::myShape, PositionVector::nearest_offset_to_point25D(), PositionVector::positionAtOffset(), SumoVehicleClassStrings, toString(), and Position::z().
|
inline |
Definition at line 242 of file GUILane.h.
References myReachability.
|
inlineinherited |
Definition at line 1071 of file MSLane.h.
References MSLane::myRightmostSublane.
Referenced by MSLCM_SL2015::_wantsChangeSublane().
|
inlineinherited |
Definition at line 1067 of file MSLane.h.
References MSLane::myRightSideOnEdge.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLCM_SL2015::checkBlocking(), MSLaneChangerSublane::checkChangeSublane(), MSVehicle::checkLinkLeader(), MSLCM_SL2015::commitManoeuvre(), MSLane::detectCollisions(), MSVehicle::getCenterOnEdge(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), MSLCM_SL2015::keepLatGap(), MSVehicle::planMoveInternal(), MSLaneChangerSublane::startChangeSublane(), and MSLaneChangerSublane::updateChanger().
|
inlineinherited |
return the associated RNG
Definition at line 222 of file MSLane.h.
References MSLane::myRNGIndex, and MSLane::myRNGs.
Referenced by MSBaseVehicle::getRNG().
|
inlineinherited |
returns the associated RNG index
Definition at line 217 of file MSLane.h.
References MSLane::myRNGIndex.
Referenced by MSEdgeControl::changeLanes(), and MSBaseVehicle::getRNGIndex().
|
private |
gets the scaling value according to the current scheme index
Definition at line 1205 of file GUILane.cpp.
References firstWaitingTime(), MSLane::getBruttoOccupancy(), MSLane::getCO2Emissions(), MSLane::getCOEmissions(), getEdgeLaneNumber(), MSLane::getElectricityConsumption(), MSLane::getFuelConsumption(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHCEmissions(), MSNet::getInsertionControl(), MSNet::getInstance(), getLoadedEdgeWeight(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getNOxEmissions(), MSInsertionControl::getPendingEmits(), MSLane::getPMxEmissions(), MSEdge::getPriority(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), MSNet::getWeightsStorage(), isLaneOrEdgeSelected(), MSEdgeWeightsStorage::knowsTravelTime(), MSLane::myEdge, MSLane::myLength, MSLane::myLengthGeometryFactor, MSLane::myMaxSpeed, and MSEdgeWeightsStorage::retrieveExistingTravelTime().
Referenced by drawGL().
const PositionVector & GUILane::getShape | ( | ) | const |
Definition at line 907 of file GUILane.cpp.
References MSLane::myShape.
Referenced by drawArrows(), drawBikeMarkings(), drawDirectionIndicators(), GUIEdge::drawGL(), GUIPerson::drawGLAdditional(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawMarkings(), GUIEdge::drawMesoVehicles(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), drawTLSLinkNo(), and getColorValue().
const std::vector< double > & GUILane::getShapeLengths | ( | ) | const |
Definition at line 919 of file GUILane.cpp.
References myShapeLengths.
Referenced by GUIPerson::drawGLAdditional(), drawMarkings(), GUIVehicle::drawRouteHelper(), and GUIMEVehicle::drawRouteHelper().
const std::vector< double > & GUILane::getShapeRotations | ( | ) | const |
Definition at line 913 of file GUILane.cpp.
References myShapeRotations.
Referenced by GUIPerson::drawGLAdditional(), drawMarkings(), GUIVehicle::drawRouteHelper(), and GUIMEVehicle::drawRouteHelper().
|
inlineinherited |
Returns the lane's maximum allowed speed.
Definition at line 532 of file MSLane.h.
References MSLane::myMaxSpeed.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSVehicleTransfer::checkInsertions(), MSLCM_SL2015::checkStrategicChange(), MSAbstractLaneChangeModel::congested(), MSLane::executeMovements(), MSCFModel_CC::finalizeSpeed(), MSCFModel_ACC::followSpeed(), getColorValue(), MSE2Collector::getEstimatedCurrentVehicleNumber(), MSLCM_SL2015::getLateralDrift(), libsumo::Lane::getLinks(), MSLane::getMaximumBrakeDist(), libsumo::Lane::getMaxSpeed(), getParameterWindow(), getScaleValue(), MSLCM_LC2013::informFollower(), MSActuatedTrafficLightLogic::init(), MSLCM_LC2013::prepareStep(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData::writeEdge(), and MSFullExport::writeLane().
|
inherited |
Returns vehicle class specific stopOffset for the vehicle.
Definition at line 3064 of file MSLane.cpp.
References MSBaseVehicle::getVClass(), and MSLane::myStopOffsets.
Referenced by MSVehicle::planMoveInternal(), MSVehicle::processLaneAdvances(), and MSVehicle::processLinkApproaches().
|
inlineinherited |
Returns vehicle class specific stopOffsets.
Definition at line 831 of file MSLane.h.
References MSLane::myStopOffsets.
double GUILane::getStoredEdgeTravelTime | ( | ) | const |
Returns the stored traveltime for the edge of this lane.
Definition at line 937 of file GUILane.cpp.
References MSNet::getInstance(), MSNet::getWeightsStorage(), MSEdgeWeightsStorage::knowsTravelTime(), MSLane::myEdge, MSEdgeWeightsStorage::retrieveExistingTravelTime(), and STEPS2TIME.
Referenced by getColorValue(), getParameterWindow(), and getScaleValue().
|
inherited |
Returns all vehicles closer than downstreamDist along the along the road network starting on the given position. Predecessor lanes are searched upstream for the given upstreamDistance.
[in] | lanes | - sequence of lanes to search along |
[in] | startPos | - start position of the search on the first lane |
[in] | downstreamDist | - distance to search downstream |
[in] | upstreamDist | - distance to search upstream |
[in/out] | checkedLanes - lanes, which were already scanned (current lane is added, if not present, otherwise the scan is aborted; TODO: this may disregard unscanned parts of the lane in specific circular set ups.) |
Definition at line 3387 of file MSLane.cpp.
References Named::getID(), MSLane::getIncomingLanes(), MSLane::getLength(), MSLane::getLinkCont(), MSLane::getSurroundingVehicles(), MSLane::getVehiclesInRange(), MAX2(), MIN2(), Named::myID, and MSLane::myLength.
Referenced by libsumo::Helper::applySubscriptionFilters(), and MSLane::getSurroundingVehicles().
|
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(), GUIBusStop::drawGL(), GUICalibrator::drawGL(), GUIChargingStation::drawGL(), GUIContainer::drawGL(), GUIContainerStop::drawGL(), GUIJunctionWrapper::drawGL(), drawGL(), GUILaneSpeedTrigger::drawGL(), GUIParkingArea::drawGL(), GUIPerson::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GNEAccess::drawGL(), GNEBusStop::drawGL(), GNEChargingStation::drawGL(), GNEContainerStop::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE1Instant::drawGL(), GNEDetectorE2::drawGL(), GNEDetectorE3::drawGL(), GNEDetectorEntryExit::drawGL(), GNEParkingArea::drawGL(), GNEParkingSpace::drawGL(), GNEPOI::drawGL(), GNEPoly::drawGL(), GNERerouter::drawGL(), GNERouteProbe::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GNEPerson::drawGL(), GNEStop::drawGL(), GNEVehicle::drawGL(), GNEConnection::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GNELane::drawGL(), GUIBaseVehicle::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawOnPos(), GNELane::drawPartialE2DetectorPlan(), GNEEdge::drawPartialPersonPlan(), GNEEdge::drawPartialRoute(), GNEEdge::drawPartialTripFromTo(), GNEEdge::drawRerouterSymbol(), GNEJunction::drawTLSIcon(), GNELane::drawVSSSymbol(), GNEViewNet::getAttributeCarriersInBoundary(), GUIEdge::getColorValue(), GUIJunctionWrapper::getColorValue(), GNEViewNet::getConnectionAtPopupPosition(), GNEViewNet::getCrossingAtPopupPosition(), GNEViewNet::getEdgeAtPopupPosition(), GNEViewNet::getJunctionAtPopupPosition(), GNEViewNet::getLaneAtPopupPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), GUISelectedStorage::isSelected(), GUISUMOViewParent::isSelected(), GUIGlChildWindow::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNESelectorFrame::SelectionOperation::onCmdLoad(), GNESelectorFrame::SelectionOperation::onCmdSave(), GUISUMOViewParent::onCmdSpeedFactor(), GUIDialog_GLObjChooser::onCmdTrack(), GUISUMOAbstractView::onLeftBtnPress(), GUISUMOViewParent::onUpdSpeedFactor(), GNEPerson::selectAttributeCarrier(), GNEPersonTrip::selectAttributeCarrier(), GNERide::selectAttributeCarrier(), GNERoute::selectAttributeCarrier(), GNEVehicle::selectAttributeCarrier(), GNEWalk::selectAttributeCarrier(), GNENetElement::selectAttributeCarrier(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GUISUMOAbstractView::showToolTipFor(), GUISelectedStorage::toggleSelection(), GNEPerson::unselectAttributeCarrier(), GNEPersonTrip::unselectAttributeCarrier(), GNERide::unselectAttributeCarrier(), GNERoute::unselectAttributeCarrier(), GNEVehicle::unselectAttributeCarrier(), GNEWalk::unselectAttributeCarrier(), and GNENetElement::unselectAttributeCarrier().
|
virtualinherited |
Returns an own type parameter window (optional)
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Reimplemented in GUIBaseVehicle, GUIMEVehicle, GUIVehicle, GUIPerson, and GUIContainer.
Definition at line 155 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
|
inherited |
Returns all upcoming junctions within given range along the given (non-internal) continuation lanes measured from given position.
Definition at line 3459 of file MSLane.cpp.
References MSLane::getUpcomingLinks().
|
inherited |
Returns all upcoming junctions within given range along the given (non-internal) continuation lanes measured from given position.
Definition at line 3470 of file MSLane.cpp.
References MSLane::getEntryLink(), Named::getID(), MSLink::getInternalLengthsAfter(), MSLink::getLane(), MSLane::getLength(), MSLane::getLinkTo(), and MSLane::isInternal().
Referenced by libsumo::Helper::applySubscriptionFilters(), and MSLane::getUpcomingJunctions().
|
inlineinherited |
Returns the lane's maximum speed, given a vehicle's speed limit adaptation.
[in] | The | vehicle to return the adapted speed limit for |
Definition at line 518 of file MSLane.h.
References SUMOTrafficObject::getChosenSpeedFactor(), SUMOTrafficObject::getMaxSpeed(), SUMOTrafficObject::getVClass(), MIN2(), MSLane::myMaxSpeed, and MSLane::myRestrictions.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::commitManoeuvre(), MSLaneChanger::computeOvertakingTime(), MSVehicle::estimateLeaveSpeed(), MEVehicle::estimateLeaveSpeed(), MSCFModel::finalizeSpeed(), MSCFModel_Daniel1::finalizeSpeed(), MSCFModel_IDM::finalizeSpeed(), MSCFModel_CACC::followSpeed(), MSCFModel_IDM::followSpeed(), MSCFModel_IDM::freeSpeed(), libsumo::Vehicle::getAllowedSpeed(), GUIVehicle::getColorValue(), MSLaneChanger::getColumnleader(), MSLane::getCriticalLeader(), MSLane::getDepartSpeed(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSVehicle::getMaxSpeedOnLane(), MSLink::getZipperSpeed(), MSVehicle::Influencer::implicitSpeedRemote(), MSCFModel::interactionGap(), MSCFModel_IDM::interactionGap(), MSLane::isInsertionSuccess(), MSVehicle::planMoveInternal(), MSVehicle::setBlinkerInformation(), MSCFModel_IDM::stopSpeed(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSVehicle::updateTimeLoss(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
|
inlineinherited |
Returns the number of vehicles on this lane (for which this lane is responsible)
Definition at line 400 of file MSLane.h.
References MSLane::myVehicles.
Referenced by libsumo::Lane::getLastStepVehicleNumber(), MSCalibrator::invalidJam(), MSVehicle::planMoveInternal(), MSCalibrator::remainingVehicleCapacity(), and MSFullExport::writeLane().
|
inlineinherited |
Returns the number of vehicles on this lane (including partial occupators)
Definition at line 408 of file MSLane.h.
References MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSLane::detectCollisions(), MSPModel_Striping::getNextLaneObstacles(), MSLane::isInsertionSuccess(), MSPModel_Striping::moveInDirectionOnLane(), MSVehicle::planMoveInternal(), and MSPModel_Striping::PState::PState().
|
inherited |
Returns all vehicles on the lane overlapping with the interval [a,b].
Definition at line 3439 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by libsumo::Helper::applySubscriptionFilters(), and MSLane::getSurroundingVehicles().
|
virtual |
Returns the vehicles container; locks it for microsimulation.
Locks "myLock" preventing usage by microsimulation.
Please note that it is necessary to release the vehicles container afterwards using "releaseVehicles".
Reimplemented from MSLane.
Definition at line 126 of file GUILane.cpp.
References myLock, and MSLane::myVehicles.
Referenced by drawGL().
|
inherited |
Returns the overall waiting time on this lane.
Definition at line 2707 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by libsumo::Lane::getWaitingTime().
|
inlineinherited |
Returns the lane's width.
Definition at line 556 of file MSLane.h.
References MSLane::myWidth.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSPModel_Striping::addCrossingVehs(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeToNewLane(), MSDevice_SSM::classifyEncounter(), MSLCM_SL2015::computeSpeedGain(), MSLaneChanger::continueChange(), MSAbstractLaneChangeModel::determineTargetLane(), drawGL(), MSVehicle::getCenterOnEdge(), MSLane::getDepartPosLat(), MSVehicle::getLateralOverlap(), MSVehicle::getLatOffset(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLaneObstacles(), MSVehicle::getRightSideOnLane(), MSLCM_SL2015::getSublaneWidth(), MSPModel_Striping::getVehicleObstacles(), GUIBusStop::getWaitPosition(), MSStoppingPlace::getWaitPosition(), libsumo::Lane::getWidth(), GUIBusStop::GUIBusStop(), GUIParkingArea::GUIParkingArea(), MSPModel_Remote::handlePedestrianLane(), MSPModel_Striping::initWalkingAreaPaths(), MSLane::insertVehicle(), MSLCM_SL2015::keepLatGap(), MSVehicle::lateralDistanceToLane(), MSPModel_Striping::moveInDirection(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSParkingArea::MSParkingArea(), MSPModel_Striping::nextBlocking(), MSPModel_Striping::numStripes(), MSVehicle::processLinkApproaches(), GUIVehicle::selectBlockingFoes(), MSLink::setRequestInformation(), MSLaneChangerSublane::startChangeSublane(), and MSAbstractLaneChangeModel::startLaneChangeManeuver().
|
protectedinherited |
take action upon collision
Definition at line 1589 of file MSLane.cpp.
References MSVehicle::addStop(), GeomHelper::angleDiff(), MSCFModel::brakeGap(), SUMOVehicleParameter::Stop::busstop, SUMOVehicleParameter::Stop::chargingStation, MSLane::COLLISION_ACTION_REMOVE, MSLane::COLLISION_ACTION_TELEPORT, MSLane::COLLISION_ACTION_WARN, MSVehicle::collisionStopTime(), SUMOVehicleParameter::Stop::containerstop, SUMOVehicleParameter::Stop::containerTriggered, DEBUG_COND2, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::endPos, MSVehicle::getAngle(), MSEdge::getBidiEdge(), MSVehicle::getCarFollowModel(), MSLane::getEdge(), MSCFModel::getEmergencyDecel(), MSBaseVehicle::getID(), Named::getID(), MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSLane::getLength(), MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSVehicle::hasInfluencer(), MSAbstractLaneChangeModel::haveLateralDynamics(), SUMOVehicleParameter::Stop::index, MSNet::informVehicleStateListener(), MSAbstractLaneChangeModel::isOpposite(), MSVehicle::Influencer::isRemoteAffected(), SUMOVehicleParameter::Stop::lane, MAX2(), MIN2(), MSLane::myCollisionAction, MSLane::myCollisionStopTime, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, RAD2DEG, MSVehicleControl::registerCollision(), SUMOVehicleParameter::Stop::startPos, time2string(), toString(), SUMOVehicleParameter::Stop::triggered, SUMOVehicleParameter::Stop::until, MSNet::VEHICLE_STATE_COLLISION, and WRITE_WARNING.
Referenced by MSLane::detectCollisionBetween(), and MSLane::detectCollisions().
|
protectedvirtual |
Inserts the vehicle into this lane, and informs it about entering the network.
Calls the vehicles enterLaneAtInsertion function, updates statistics and modifies the active state as needed
[in] | veh | The vehicle to be incorporated |
[in] | pos | The position of the vehicle |
[in] | speed | The speed of the vehicle |
[in] | posLat | The lateral position of the vehicle |
[in] | at | |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
Reimplemented from MSLane.
Definition at line 116 of file GUILane.cpp.
References MSLane::incorporateVehicle(), and myLock.
|
staticinherited |
Definition at line 3610 of file MSLane.cpp.
References MSLane::COLLISION_ACTION_NONE, MSLane::COLLISION_ACTION_REMOVE, MSLane::COLLISION_ACTION_TELEPORT, MSLane::COLLISION_ACTION_WARN, OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getString(), MSLane::myCheckJunctionCollisions, MSLane::myCollisionAction, MSLane::myCollisionMinGapFactor, MSLane::myCollisionStopTime, string2time(), and WRITE_ERROR.
Referenced by MSFrame::setMSGlobals().
|
inherited |
initialized vClass-specific speed limits
Definition at line 223 of file MSLane.cpp.
References MSEdge::getEdgeType(), MSNet::getInstance(), MSNet::getRestrictions(), MSGlobals::gUnitTests, MSLane::myEdge, and MSLane::myRestrictions.
Referenced by MSLane::MSLane().
|
staticinherited |
initialize rngs
Definition at line 3692 of file MSLane.cpp.
References OptionsCont::getBool(), OptionsCont::getInt(), RandHelper::initRand(), and MSLane::myRNGs.
Referenced by NLBuilder::initRandomness().
|
staticinherited |
Adds the ids of all stored lanes into the given vector.
[in,filled] | into The vector to add the IDs into |
Definition at line 1898 of file MSLane.cpp.
References MSLane::myDict.
Referenced by libsumo::Lane::getIDList().
|
inherited |
Tries to insert the given vehicle.
The insertion position and speed are determined in dependence to the vehicle's departure definition, first.
Then, the vehicle is tried to be inserted into the lane using these values by a call to "isInsertionSuccess". The result of "isInsertionSuccess" is returned.
[in] | v | The vehicle to insert |
Definition at line 538 of file MSLane.cpp.
References MSVehicle::basePos(), DEPART_POS_BASE, DEPART_POS_DEFAULT, DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_LAST, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, DEPART_POS_STOP, DEPART_POSLAT_FREE, DEPART_POSLAT_RANDOM_FREE, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosLatProcedure, SUMOVehicleParameter::departPosProcedure, FALLTHROUGH, MSLane::freeInsertion(), MSLane::getDepartPosLat(), MSLane::getDepartSpeed(), MSVehicle::Stop::getEndPos(), MSLane::getLength(), MSVehicle::getNextStop(), MSBaseVehicle::getParameter(), MSBaseVehicle::getVehicleType(), MSLane::getWidth(), MSVehicleType::getWidth(), MSGlobals::gLateralResolution, MSVehicle::hasStops(), MSLane::isInsertionSuccess(), MSVehicle::Stop::lane, MSLane::lastInsertion(), MSLane::myEdge, MSLane::myLength, MSMoveReminder::NOTIFICATION_DEPARTED, and RandHelper::rand().
Referenced by MSEdge::insertVehicle().
|
virtual |
the same as in MSLane, but locks the access for the visualisation first; the access will be granted at the end of this method
Reimplemented from MSLane.
Definition at line 180 of file GUILane.cpp.
References MSLane::integrateNewVehicles(), and myLock.
|
inlineinherited |
Definition at line 510 of file MSLane.h.
References MSLane::myLengthGeometryFactor.
Referenced by libsumo::Helper::convertCartesianToRoadMap(), getPopUpMenu(), and MSLink::setRequestInformation().
|
inlineinherited |
Definition at line 498 of file MSLane.h.
References MSLane::myLengthGeometryFactor.
Referenced by MSVehicle::computeAngle(), GUIEdge::drawMesoVehicles(), MSLane::geometryPositionAtOffset(), MEVehicle::getAngle(), MSTransportable::Stage::getLanePosition(), MSVehicle::getPosition(), MEVehicle::getSlope(), MSVehicle::getSlope(), libsumo::Person::getSlope(), GUIBusStop::getWaitPosition(), MSStoppingPlace::getWaitPosition(), GUIBusStop::GUIBusStop(), GUIChargingStation::GUIChargingStation(), GUIContainerStop::GUIContainerStop(), MSParkingArea::MSParkingArea(), and MSLaneChangerSublane::startChangeSublane().
|
inlineinherited |
return whether this lane is an acceleration lane
Definition at line 487 of file MSLane.h.
References MSLane::myIsRampAccel.
Referenced by MSLCM_LC2013::informFollower().
|
inherited |
Definition at line 2228 of file MSLane.cpp.
References MSLane::myApproachingLanes.
Definition at line 2234 of file MSLane.cpp.
References MSLane::myApproachingLanes.
|
inline |
Definition at line 258 of file GUILane.h.
References myAmClosed.
Referenced by GUIEdge::closeTraffic().
|
inherited |
Returns the information whether the lane is has no vehicle and no partial occupation
Definition at line 2005 of file MSLane.cpp.
References MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSRailSignal::hasOncomingRailTraffic().
|
inherited |
Tries to insert the given vehicle with the given state (speed and pos)
Checks whether the vehicle can be inserted at the given position with the given speed so that no collisions with leader/follower occur and the speed does not cause unexpected behaviour on consecutive lanes. Returns false if the vehicle can not be inserted.
If the insertion can take place, incorporateVehicle() is called and true is returned.
[in] | vehicle | The vehicle to insert |
[in] | speed | The speed with which it shall be inserted |
[in] | pos | The position at which it shall be inserted |
[in] | posLat | The lateral position at which it shall be inserted |
[in] | recheckNextLanes | Forces patching the speed for not being too fast on next lanes |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
Definition at line 649 of file MSLane.cpp.
References ARRIVAL_SPEED_GIVEN, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSRoute::begin(), MSCFModel::brakeGap(), MSLane::checkFailure(), MSLane::checkForPedestrians(), DEBUG_COND2, MSInsertionControl::descheduleDeparture(), SUMOVehicleParameter::Stop::endPos, MSCFModel::freeSpeed(), MSBaseVehicle::getArrivalPos(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSEdge::getBidiEdge(), MSLane::getBidiLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSLane::getEdge(), MSLane::getFollowersOnConsecutive(), MSBaseVehicle::getID(), Named::getID(), Named::getIDSecure(), MSBaseVehicle::getImpatience(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicle::getLaneChangeModel(), MSRoute::getLastEdge(), MSLane::getLastVehicleInformation(), MSLane::getLength(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getMissingRearGap(), MSVehicle::getNextStop(), MSBaseVehicle::getParameter(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSCFModel::getSecureGap(), MSAbstractLaneChangeModel::getShadowLane(), MSVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSLane::getVehicleNumberWithPartials(), MSBaseVehicle::getVehicleType(), MSRailSignal::hasOncomingRailTraffic(), MSVehicle::hasStops(), MSLeaderInfo::hasVehicles(), MSLane::incorporateVehicle(), MSCFModel::insertionStopSpeed(), INVALID_SPEED, MSLane::isLinkEnd(), MSVehicle::Stop::lane, LINKSTATE_ALLWAY_STOP, LINKSTATE_EQUAL, LINKSTATE_MINOR, LINKSTATE_STOP, MAX2(), MSLane::myEdge, Named::myID, MSLane::myLength, MSLane::myManeuverReservations, MSLane::myPartialVehicles, MSLane::myVehicles, NUMERICAL_EPS, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), MSVehicle::Stop::pars, MSLane::safeInsertionSpeed(), MSVehicle::setTentativeLaneAndPosition(), SIMTIME, MSCFModel::stopSpeed(), MSLane::succLinkSec(), SUMO_const_haltingSpeed, TIME2STEPS, MSLeaderInfo::toString(), toString(), MSVehicle::updateBestLanes(), WRITE_ERROR, and WRITE_WARNING.
Referenced by MSVehicleTransfer::checkInsertions(), MSLane::freeInsertion(), MSLane::insertVehicle(), and MSLane::lastInsertion().
|
inherited |
Returns whether the lane pertains to an internal edge
Definition at line 2010 of file MSLane.cpp.
References MSEdge::isInternal(), and MSLane::myEdge.
Referenced by MSVehicle::canReverse(), MSDevice_ToC::checkDynamicToC(), MSDevice_SSM::classifyEncounter(), drawGL(), drawLinkRule(), MSRailSignal::DriveWay::findFlankProtection(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSLane::getCriticalLeader(), MSVehicle::getDistanceToPosition(), MSLane::getEntryLink(), MSLane::getFirstInternalInConnection(), libsumo::Lane::getInternalFoes(), MSLogicJunction::getInternalLanes(), MSNoLogicJunction::getInternalLanes(), MSLink::getInternalLengthsAfter(), MSLink::getInternalLengthsBefore(), MSLane::getLeaderOnConsecutive(), MSLane::getLinkTo(), MSLane::getNormalPredecessorLane(), MSVehicle::getPositionAlongBestLanes(), GUIVehicle::getPreviousLane(), MSLane::getUpcomingLinks(), MSVehicle::haveValidStopEdges(), MSE2Collector::initAuxiliaries(), MSVehicle::isLeader(), MSLink::MSLink(), MSLane::incoming_lane_priority_sorter::operator()(), MSVehicle::planMoveInternal(), MSVehicle::processLinkApproaches(), MSVehicle::replaceRoute(), MSLane::succLinkSec(), MSVehicle::updateBestLanes(), MSVehicle::updateDriveItems(), and MSFCDExport::write().
|
private |
whether this lane or its parent edge is selected in the GUI
Definition at line 1351 of file GUILane.cpp.
References GUIGlObject::getGlID(), GLO_EDGE, gSelected, isSelected(), GUISelectedStorage::isSelected(), and MSLane::myEdge.
Referenced by getColorValue(), and getScaleValue().
|
inherited |
Returns the information whether the given link shows at the end of the list of links (is not valid)
Definition at line 1994 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLaneChanger::checkChange(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), libsumo::Vehicle::getNextTLS(), MSLane::isInsertionSuccess(), MSVehicle::planMoveInternal(), and MSVehicle::unsafeLinkAhead().
|
inherited |
Returns the information whether the given link shows at the end of the list of links (is not valid)
Definition at line 2000 of file MSLane.cpp.
References MSLane::myLinks.
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 189 of file Parameterised.cpp.
References StringTokenizer::getVector(), SUMOXMLDefinitions::isValidParameterKey(), and SUMOXMLDefinitions::isValidParameterValue().
Referenced by Parameterised::areParametersValid().
|
virtual |
whether this lane is selected in the GUI
Reimplemented from MSLane.
Definition at line 1346 of file GUILane.cpp.
References GUIGlObject::getGlID(), GLO_LANE, gSelected, and GUISelectedStorage::isSelected().
Referenced by isLaneOrEdgeSelected().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 66 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBEdge::append(), MSDevice_Bluelight::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::getBoolParam(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice::getFloatParam(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_ToC::getOutputFilename(), MSDevice_SSM::getOutputFilename(), libsumo::Simulation::getParameter(), MSDevice::getStringParam(), MSTriggeredRerouter::getWeight(), MSVehicleType::initRailVisualizationParameters(), GNEVehicleType::initRailVisualizationParameters(), GNEVehicleType::overwriteVType(), MSDevice_SSM::requestsTrajectories(), MSDevice_SSM::useGeoCoords(), and NWWriter_OpenDrive::writeRoadObjects().
|
inherited |
inserts vehicle as close as possible to the last vehicle on this lane (or at the end of the lane if there is no leader)
look for a leaders on consecutive lanes
Definition at line 356 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSLane::getLastAnyVehicle(), MSLane::getLeader(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSLane::isInsertionSuccess(), MIN2(), MSMoveReminder::NOTIFICATION_DEPARTED, POSITION_EPS, MSVehicle::setTentativeLaneAndPosition(), and MSVehicle::updateBestLanes().
Referenced by MSLane::insertVehicle().
|
inherited |
Definition at line 2652 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, and MSLane::myNettoVehicleLengthSum.
Referenced by MSAbstractLaneChangeModel::primaryLaneChanged().
|
inherited |
Loads the state of this segment with the given parameters.
This method is called for every internal que the segment has. Every vehicle is retrieved from the given MSVehicleControl and added to this lane.
[in] | vehIDs | The vehicle ids for the current que |
[in] | vc | The vehicle control to retrieve references vehicles from |
Definition at line 3049 of file MSLane.cpp.
References MSVehicle::getLateralPositionOnLane(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSVehicleControl::getVehicle(), MSLane::incorporateVehicle(), MSLane::myVehicles, MSMoveReminder::NOTIFICATION_JUNCTION, MSVehicle::processNextStop(), and MSVehicle::updateBestLanes().
Referenced by MSStateHandler::myStartElement().
|
inherited |
whether this lane must check for junction collisions
Definition at line 3719 of file MSLane.cpp.
References MSEdge::isInternal(), MSLane::myCheckJunctionCollisions, MSLane::myEdge, and MSLane::myLinks.
Referenced by MSLane::detectCollisions(), and MSVehicle::processLaneAdvances().
|
inlineinherited |
short-circut collision check if nothing changed since the last check
Definition at line 622 of file MSLane.h.
References MSLane::myNeedsCollisionCheck.
|
inlinevirtualinherited |
notify object about left click
Reimplemented in GUITriggeredRerouter::GUITriggeredRerouterEdge.
Definition at line 165 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::onLeftBtnPress().
|
virtual |
the same as in MSLane, but locks the access for the visualisation first; the access will be granted at the end of this method
Reimplemented from MSLane.
Definition at line 139 of file GUILane.cpp.
References myLock, and MSLane::planMovements().
|
virtual |
Allows to use the container for microsimulation again.
Unlocks "myLock" preventing usage by microsimulation.
Reimplemented from MSLane.
Definition at line 133 of file GUILane.cpp.
References myLock.
Referenced by drawGL().
|
inlinevirtualinherited |
remove additional user-griggered visualisations
Reimplemented in GUIPerson, and GUIBaseVehicle.
Definition at line 162 of file GUIGlObject.h.
|
inlinevirtualinherited |
notify object about popup menu removal
Reimplemented in GUIBaseVehicle.
Definition at line 111 of file GUIGlObject.h.
Referenced by GUIGLObjectPopupMenu::~GUIGLObjectPopupMenu().
|
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().
|
virtual |
remove parking vehicle
Reimplemented from MSLane.
Definition at line 166 of file GUILane.cpp.
References myLock, and MSLane::removeParking().
|
virtual |
the same as in MSLane, but locks the access for the visualisation first; the access will be granted at the end of this method
Reimplemented from MSLane.
Definition at line 159 of file GUILane.cpp.
References myLock, and MSLane::removeVehicle().
|
inlineinherited |
require another collision check due to relevant changes in the simulation
Definition at line 627 of file MSLane.h.
References MSLane::myNeedsCollisionCheck.
Referenced by MSLaneChanger::continueChange().
|
virtualinherited |
Unregisters a vehicle, which previously registered for maneuvering into this lane.
[in] | v | The vehicle |
Definition at line 317 of file MSLane.cpp.
References DEBUG_COND2, MSBaseVehicle::getID(), Named::getID(), MSLane::myManeuverReservations, and SIMTIME.
Referenced by MSAbstractLaneChangeModel::cleanupTargetLane(), and MSAbstractLaneChangeModel::updateTargetLane().
|
virtual |
Removes the information about a vehicle lapping into this lane.
[in] | v | The vehicle which laps into this lane |
Reimplemented from MSLane.
Definition at line 201 of file GUILane.cpp.
References myLock, and MSLane::resetPartialOccupation().
|
inherited |
Definition at line 3642 of file MSLane.cpp.
References MSLane::myOriginalPermissions, MSLane::myPermissionChanges, MSLane::myPermissions, and SVCAll.
Referenced by closeTraffic(), and MSLane::setPermissions().
|
protectedinherited |
return the maximum safe speed for insertion behind leaders (a negative value indicates that safe insertion is impossible)
Definition at line 1033 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSBaseVehicle::getID(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), INVALID_SPEED, MIN2(), MSLeaderInfo::numSublanes(), and SIMTIME.
Referenced by MSLane::isInsertionSuccess().
|
inherited |
Saves the state of this lane into the given stream.
Basically, a list of vehicle ids
[in,filled] | out The (possibly binary) device to write the state into |
Definition at line 3036 of file MSLane.cpp.
References OutputDevice::closeTag(), Named::getID(), MSLane::myVehicles, OutputDevice::openTag(), SUMO_ATTR_ID, SUMO_ATTR_VALUE, SUMO_TAG_LANE, SUMO_TAG_VIEWSETTINGS_VEHICLES, and OutputDevice::writeAttr().
|
private |
sets the color according to the currente settings
Definition at line 963 of file GUILane.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), MSGlobals::gUseMesoSim, GUIVisualizationSettings::laneColorer, MESO_USE_LANE_COLOR, MSLane::myEdge, GLHelper::setColor(), setFunctionalColor(), and setMultiColor().
Referenced by drawGL(), and drawMarkings().
bool GUILane::setFunctionalColor | ( | const GUIColorer & | c, |
RGBColor & | col, | ||
int | activeScheme = -1 |
||
) | const |
Definition at line 980 of file GUILane.cpp.
References PositionVector::beginEndAngle(), RGBColor::fromHSV(), GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), RGBColor::getColorRNG(), MSLinkContHelper::getConnectingLink(), MSLane::getLogicalPredecessorLane(), MSEdge::getPredecessors(), GUIPropertySchemeStorage< T >::getScheme(), MSEdge::getSuccessors(), MSLink::getTLLogic(), MSLink::havePriority(), MSEdge::isCrossing(), MSLane::myEdge, MSLane::myShape, GeomHelper::naviDegree(), RGBColor::parseColor(), RandHelper::rand(), and GLHelper::setColor().
Referenced by setColor(), and GUIEdge::setFunctionalColor().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 84 of file Named.h.
References Named::myID.
Referenced by Distribution_Parameterized::parse(), NBLoadedSUMOTLDef::reconstructLogic(), NBEdgeCont::remapIDs(), NBEdgeCont::rename(), NBNodeCont::rename(), GNEJunction::setAttribute(), and IntermodalNetwork< E, L, N, V >::splitEdge().
|
virtual |
the same as in MSLane, but locks the access for the visualisation first; the access will be granted at the end of this method
Reimplemented from MSLane.
Definition at line 145 of file GUILane.cpp.
References myLock, and MSLane::setJunctionApproaches().
|
inherited |
Sets a new length for the lane (used by TraCI only)
[in] | val | the new length in m |
Definition at line 2162 of file MSLane.cpp.
References MSLane::myEdge, MSLane::myLength, and MSEdge::recalcCache().
Referenced by libsumo::Lane::setLength().
|
virtualinherited |
Registers the lane change intentions (towards this lane) for the given vehicle.
Definition at line 306 of file MSLane.cpp.
References DEBUG_COND2, MSBaseVehicle::getID(), Named::getID(), MSLane::myManeuverReservations, and SIMTIME.
Referenced by MSAbstractLaneChangeModel::updateTargetLane().
|
inherited |
Sets a new maximum speed for the lane (used by TraCI and MSCalibrator)
[in] | val | the new speed in m/s |
Definition at line 2155 of file MSLane.cpp.
References MSLane::myEdge, MSLane::myMaxSpeed, and MSEdge::recalcCache().
Referenced by MSCalibrator::execute(), and libsumo::Lane::setMaxSpeed().
|
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().
|
private |
sets multiple colors according to the current scheme index and some lane function
Definition at line 1032 of file GUILane.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), MAX2(), MSLane::myShape, myShapeColors, and POSITION_EPS.
Referenced by setColor().
|
inherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 46 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::addDistrict(), RONetHandler::addParam(), SUMORouteHandler::addParam(), ShapeHandler::addPOI(), NBEdge::append(), NIImporter_OpenStreetMap::insertNodeChecking(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), GNEAdditionalHandler::parseParameter(), GNEVehicleType::setAttribute(), NIImporter_OpenDrive::setLaneAttributes(), libsumo::Edge::setParameter(), libsumo::POI::setParameter(), libsumo::Polygon::setParameter(), libsumo::Lane::setParameter(), libsumo::Route::setParameter(), and libsumo::TrafficLight::setParameter().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 127 of file Parameterised.cpp.
References Parameterised::getParametersMap(), and Parameterised::myMap.
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 133 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 139 of file Parameterised.cpp.
References StringTokenizer::getVector(), and Parameterised::myMap.
Referenced by GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEClosingLaneReroute::setAttribute(), GNEClosingReroute::setAttribute(), GNEContainerStop::setAttribute(), GNEDestProbReroute::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE1Instant::setAttribute(), GNEDetectorE2::setAttribute(), GNEDetectorE3::setAttribute(), GNEDetectorEntryExit::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingAreaReroute::setAttribute(), GNEParkingSpace::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), GNERerouter::setAttribute(), GNERerouterInterval::setAttribute(), GNERouteProbe::setAttribute(), GNERouteProbReroute::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEVariableSpeedSignStep::setAttribute(), GNEPerson::setAttribute(), GNEPersonTrip::setAttribute(), GNERide::setAttribute(), GNERoute::setAttribute(), GNEVehicle::setAttribute(), GNEVehicleType::setAttribute(), GNEWalk::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEJunction::setAttribute(), and GNELane::setAttribute().
|
virtual |
Sets the information about a vehicle lapping into this lane.
This vehicle is added to myVehicles and may be distinguished from regular vehicles by the disparity between this lane and v->getLane()
[in] | v | The vehicle which laps into this lane |
Reimplemented from MSLane.
Definition at line 194 of file GUILane.cpp.
References myLock, and MSLane::setPartialOccupation().
|
inherited |
Sets the permissions to the given value. If a transientID is given, the permissions are recored as temporary.
[in] | permissions | The new permissions |
[in] | transientID | The id of the permission-modification or the special value PERMANENT |
Definition at line 3630 of file MSLane.cpp.
References MSLane::CHANGE_PERMISSIONS_PERMANENT, MSLane::myOriginalPermissions, MSLane::myPermissionChanges, MSLane::myPermissions, and MSLane::resetPermissions().
Referenced by closeTraffic(), libsumo::Lane::setAllowed(), and libsumo::Lane::setDisallowed().
|
inline |
Definition at line 238 of file GUILane.h.
References myReachability.
Referenced by GUIViewTraffic::onCmdShowReachability().
|
inlineinherited |
Definition at line 1057 of file MSLane.h.
References MSLane::myRightmostSublane, and MSLane::myRightSideOnEdge.
|
inlineinherited |
sets the associated RNG index
Definition at line 212 of file MSLane.h.
References MSLane::myRNGIndex.
|
inlineinherited |
Set vehicle class specific stopOffsets.
Definition at line 836 of file MSLane.h.
References MSLane::myStopOffsets.
|
inherited |
sorts myManeuverReservations
Definition at line 1975 of file MSLane.cpp.
References DEBUG_COND, Named::getID(), MSLane::myManeuverReservations, and toString().
|
inherited |
sorts myPartialVehicles
Definition at line 1967 of file MSLane.cpp.
References MSLane::myPartialVehicles.
Referenced by MSLane::integrateNewVehicles(), and MSLane::swapAfterLaneChange().
|
private |
add intermediate points at segment borders
Definition at line 1321 of file GUILane.cpp.
References Position::distanceTo(), OptionsCont::getOptions(), MSGlobals::gUseMesoSim, PositionVector::indexOfClosest(), PositionVector::insertAtClosest(), MSLane::myLength, myShapeSegments, MELoop::numSegmentsFor(), POSITION_EPS, and PositionVector::positionAtOffset().
Referenced by GUILane().
|
staticinherited |
Same as succLink, but does not throw any assertions when the succeeding link could not be found; Returns the myLinks.end() instead; Further, the number of edges to look forward may be given
Definition at line 2061 of file MSLane.cpp.
References Named::getID(), SUMOTrafficObject::getID(), MSNet::getInstance(), MSVehicleType::getVehicleClass(), SUMOTrafficObject::getVehicleType(), MSLane::isInternal(), MSLane::myLinks, SUMOVehicle::succEdge(), time2string(), and WRITE_WARNING.
Referenced by MSLane::appropriate(), MSLaneChanger::checkChange(), MSLane::executeMovements(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), libsumo::Vehicle::getNextTLS(), MSLane::isInsertionSuccess(), MSVehicle::planMoveInternal(), MSVehicle::setBlinkerInformation(), and MSVehicle::unsafeLinkAhead().
|
protectedvirtual |
moves myTmpVehicles int myVehicles after a lane change procedure
Reimplemented from MSLane.
Definition at line 173 of file GUILane.cpp.
References myLock, and MSLane::swapAfterLaneChange().
|
inlinestaticinherited |
Definition at line 1197 of file MSLane.h.
References MSLane::COLLISION_ACTION_TELEPORT, and MSLane::myCollisionAction.
Referenced by MSVehicleControl::getTeleportCount().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 52 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), and GNEVehicleType::setAttribute().
|
inherited |
This updates the MSLeaderInfo argument with respect to the given MSVehicle. All leader-vehicles on the same edge, which are relevant for the vehicle (i.e. with position > vehicle's position) and not already integrated into the LeaderInfo, are integrated. The given iterators vehPart and vehRes give access to these vehicles which are either partial occupators or have issued a maneuver reservation for the lane (the latter occurs only for the sublane model).
Definition at line 1221 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), DEBUG_COND, MSVehicle::getPositionOnLane(), MSLane::myManeuverReservations, and MSLane::myPartialVehicles.
Referenced by MSLane::planMovements().
|
inherited |
updated current vehicle length sum (delayed to avoid lane-order-dependency)
Definition at line 1818 of file MSLane.cpp.
References MSLane::myBruttoVehicleLengthSum, MSLane::myBruttoVehicleLengthSumToRemove, MSLane::myNettoVehicleLengthSum, MSLane::myNettoVehicleLengthSumToRemove, and MSLane::myVehicles.
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 58 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), NBEdge::NBEdge(), and NBLoadedSUMOTLDef::NBLoadedSUMOTLDef().
|
inlineinherited |
Callback for visiting the lane when traversing an RTree.
This is used in the TraCIServerAPI_Lane for context subscriptions.
[in] | cont | The context doing all the work |
Definition at line 1191 of file MSLane.h.
References LaneStoringVisitor::add().
Referenced by libsumo::Helper::collectObjectsInRange().
|
inherited |
write Params in the given outputdevice
Definition at line 154 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), SUMOVTypeParameter::write(), GNEAdditional::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEPerson::writeDemandElement(), GNEPersonTrip::writeDemandElement(), GNERide::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), GNEWalk::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
|
staticinherited |
Definition at line 1206 of file MSLane.h.
Referenced by closeTraffic().
|
staticinherited |
Definition at line 1205 of file MSLane.h.
Referenced by libsumo::Lane::setAllowed(), libsumo::Edge::setAllowedSVCPermissions(), libsumo::Lane::setDisallowed(), and MSLane::setPermissions().
|
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().
|
staticprivate |
special color to signify alternative coloring scheme
Definition at line 363 of file GUILane.h.
Referenced by setColor().
|
private |
state for dynamic lane closings
Definition at line 356 of file GUILane.h.
Referenced by closeTraffic(), getPopUpMenu(), and isClosed().
All direct internal and direct (disregarding internal predecessors) non-internal predecessor lanes of this lane.
Definition at line 1375 of file MSLane.h.
Referenced by MSLane::addApproachingLane(), and MSLane::isApproachedFrom().
|
protectedinherited |
The current length of all vehicles on this lane, including their minGaps.
Definition at line 1359 of file MSLane.h.
Referenced by MSLane::enteredByLaneChange(), MSLane::getBruttoOccupancy(), MSLane::getBruttoVehLenSum(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicles(), MSLane::leftByLaneChange(), MSLane::removeVehicle(), and MSLane::updateLengthSum().
|
protectedinherited |
The length of all vehicles that have left this lane in the current step (this lane, including their minGaps)
Definition at line 1365 of file MSLane.h.
Referenced by MSLane::executeMovements(), and MSLane::updateLengthSum().
|
mutableprotectedinherited |
Similar to LogicalPredecessorLane,.
Definition at line 1353 of file MSLane.h.
Referenced by MSLane::getCanonicalPredecessorLane().
|
mutableprotectedinherited |
Main successor lane,.
Definition at line 1356 of file MSLane.h.
Referenced by MSLane::getCanonicalSuccessorLane().
|
staticprivateinherited |
Definition at line 1427 of file MSLane.h.
Referenced by MSLane::initCollisionOptions(), and MSLane::mustCheckJunctionCollisions().
|
staticprivateinherited |
the action to take on collisions
Definition at line 1426 of file MSLane.h.
Referenced by MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSLane::getCollisionAction(), MSLane::handleCollisionBetween(), MSLane::initCollisionOptions(), and MSLane::teleportOnCollision().
|
staticprivateinherited |
Definition at line 1429 of file MSLane.h.
Referenced by MSLane::detectCollisionBetween(), and MSLane::initCollisionOptions().
|
staticprivateinherited |
Definition at line 1428 of file MSLane.h.
Referenced by MSLane::handleCollisionBetween(), and MSLane::initCollisionOptions().
|
staticprotectedinherited |
Static dictionary to associate string-ids with objects.
Definition at line 1417 of file MSLane.h.
Referenced by MSLane::clear(), MSLane::dictionary(), MSLane::dictSize(), MSLane::fill(), and MSLane::insertIDs().
|
protectedinherited |
The lane's edge, for routing only.
Definition at line 1332 of file MSLane.h.
Referenced by MSLane::appropriate(), MSLane::changeLanes(), MSLane::detectCollisions(), drawGL(), drawLane2LaneConnections(), drawLinkRule(), drawLinkRules(), drawMarkings(), MSLane::getBidiLane(), getColorValue(), MSLane::getEdge(), getEdgeLaneNumber(), MSLane::getFollowersOnConsecutive(), getLoadedEdgeWeight(), MSLane::getLogicalPredecessorLane(), MSLane::getNextNormal(), MSLane::getParallelLane(), getParameterWindow(), getScaleValue(), getStoredEdgeTravelTime(), MSLane::incorporateVehicle(), MSLane::initRestrictions(), MSLane::insertVehicle(), MSLane::integrateNewVehicles(), MSLane::isInsertionSuccess(), MSLane::isInternal(), isLaneOrEdgeSelected(), MSLane::mustCheckJunctionCollisions(), MSLane::by_connections_to_sorter::operator()(), setColor(), setFunctionalColor(), MSLane::setLength(), and MSLane::setMaxSpeed().
|
mutableprotectedinherited |
followers on all sublanes as seen by vehicles on consecutive lanes (cached)
Definition at line 1380 of file MSLane.h.
Referenced by MSLane::getFirstVehicleInformation().
|
mutableprotectedinherited |
time step for which myFollowerInfo was last updated
Definition at line 1385 of file MSLane.h.
Referenced by MSLane::getFirstVehicleInformation().
|
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().
|
private |
Half of lane width, for speed-up.
Definition at line 343 of file GUILane.h.
Referenced by drawBikeMarkings(), drawDirectionIndicators(), drawGL(), drawLinkNo(), drawLinkRule(), drawLinkRules(), drawMarkings(), drawTLSLinkNo(), and GUILane().
|
protectedinherited |
The name of the object.
Definition at line 133 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), Named::getID(), NBEdge::getLaneID(), ROEdge::getStoredEffort(), MSLane::getSurroundingVehicles(), ROEdge::getTravelTime(), NBEdge::init(), MSActuatedTrafficLightLogic::init(), MSDelayBasedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSLane::isInsertionSuccess(), NBNode::NBNode(), MSE2Collector::notifyEnter(), MSE2Collector::notifyLeave(), MSE2Collector::notifyMove(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
All direct predecessor lanes.
Definition at line 1347 of file MSLane.h.
Referenced by MSLane::addIncomingLane(), MSLane::getCanonicalPredecessorLane(), MSLane::getFollowersOnConsecutive(), MSLane::getIncomingLanes(), and MSLane::getLogicalPredecessorLane().
|
protectedinherited |
The lane index.
Definition at line 1272 of file MSLane.h.
Referenced by drawMarkings(), and MSLane::getIndex().
|
protectedinherited |
whether this lane is an acceleration lane
Definition at line 1391 of file MSLane.h.
Referenced by MSLane::isAccelLane().
|
protectedinherited |
the type of this lane
Definition at line 1394 of file MSLane.h.
Referenced by MSLane::getLaneType(), and getParameterWindow().
|
mutableprotectedinherited |
leaders on all sublanes as seen by approaching vehicles (cached)
Definition at line 1378 of file MSLane.h.
Referenced by MSLane::getLastVehicleInformation().
|
mutableprotectedinherited |
time step for which myLeaderInfo was last updated
Definition at line 1383 of file MSLane.h.
Referenced by MSLane::getLastVehicleInformation().
|
protectedinherited |
Lane length [m].
Definition at line 1321 of file MSLane.h.
Referenced by MSLane::detectCollisions(), MSLane::freeInsertion(), MSLane::getBruttoOccupancy(), getColorValue(), MSLane::getFirstVehicleInformation(), MSLane::getLength(), MSLane::getNettoOccupancy(), getParameterWindow(), getScaleValue(), MSLane::getSurroundingVehicles(), MSLane::incorporateVehicle(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLane::setLength(), MSLane::setPartialOccupation(), and splitAtSegments().
|
protectedinherited |
precomputed myShape.length / myLength
Definition at line 1388 of file MSLane.h.
Referenced by getColorValue(), MSLane::getLengthGeometryFactor(), getScaleValue(), MSLane::interpolateGeometryPosToLanePos(), and MSLane::interpolateLanePosToGeometryPos().
|
protectedinherited |
The lane's Links to it's succeeding lanes and the default right-of-way rule, i.e. blocked or not blocked.
Definition at line 1372 of file MSLane.h.
Referenced by MSLane::addLink(), MSLane::appropriate(), MSLane::detectCollisions(), drawArrows(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSLane::executeMovements(), MSLane::getCanonicalSuccessorLane(), MSLane::getCrossingIndex(), MSLane::getLinkCont(), MSLane::getLinkTo(), MSLane::getOutgoingViaLanes(), MSLane::isLinkEnd(), MSLane::mustCheckJunctionCollisions(), MSLane::succLinkSec(), and MSLane::~MSLane().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 360 of file GUILane.h.
Referenced by detectCollisions(), executeMovements(), getVehiclesSecure(), incorporateVehicle(), integrateNewVehicles(), planMovements(), releaseVehicles(), removeParking(), removeVehicle(), resetPartialOccupation(), setJunctionApproaches(), setPartialOccupation(), swapAfterLaneChange(), and ~GUILane().
|
mutableprotectedinherited |
Definition at line 1350 of file MSLane.h.
Referenced by MSLane::getLogicalPredecessorLane().
|
protectedinherited |
The vehicles which registered maneuvering into the lane within their current action step. This is currently only relevant for sublane simulation, since continuous lanechanging uses the partial vehicle mechanism.
The entering vehicles are inserted at the front of this container and the leaving ones leave from the back.
Definition at line 1313 of file MSLane.h.
Referenced by MSLane::isInsertionSuccess(), MSLane::planMovements(), MSLane::resetManeuverReservation(), MSLane::setManeuverReservation(), MSLane::sortManeuverReservations(), and MSLane::updateLeaderInfo().
|
privateinherited |
The key->value map.
Definition at line 120 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::knowsParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersMap(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), Parameterised::updateParameters(), and Parameterised::writeParams().
|
protectedinherited |
Lane-wide speedlimit [m/s].
Definition at line 1335 of file MSLane.h.
Referenced by getColorValue(), MSLane::getMeanSpeed(), getScaleValue(), MSLane::getSpeedLimit(), MSLane::getVehicleMaxSpeed(), and MSLane::setMaxSpeed().
|
privateinherited |
ID of GL object.
Definition at line 257 of file GUIGlObject.h.
Referenced by GUIGlObject::getMicrosimID(), and GUIGlObject::setMicrosimID().
|
privateinherited |
This lane's move reminder.
Definition at line 1423 of file MSLane.h.
Referenced by MSLane::addMoveReminder(), and MSLane::getMoveReminders().
|
protectedinherited |
whether a collision check is currently needed
Definition at line 1402 of file MSLane.h.
Referenced by MSLane::detectCollisions(), MSLane::executeMovements(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicles(), MSLane::needsCollisionCheck(), MSLane::requireCollisionCheck(), and MSLane::setPartialOccupation().
|
protectedinherited |
Definition at line 1405 of file MSLane.h.
Referenced by MSLane::addNeigh(), MSLane::getOpposite(), and MSLane::integrateNewVehicles().
|
protectedinherited |
The current length of all vehicles on this lane, excluding their minGaps.
Definition at line 1362 of file MSLane.h.
Referenced by MSLane::enteredByLaneChange(), MSLane::getNettoOccupancy(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicles(), MSLane::leftByLaneChange(), MSLane::removeVehicle(), and MSLane::updateLengthSum().
|
protectedinherited |
The length of all vehicles that have left this lane in the current step (this lane, excluding their minGaps)
Definition at line 1368 of file MSLane.h.
Referenced by MSLane::executeMovements(), and MSLane::updateLengthSum().
|
protectedinherited |
Unique numerical ID (set on reading by netload)
Definition at line 1266 of file MSLane.h.
Referenced by MSLane::getNumericalID().
|
protectedinherited |
The original vClass permissions for this lane (before temporary modifications)
Definition at line 1341 of file MSLane.h.
Referenced by MSLane::resetPermissions(), and MSLane::setPermissions().
|
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 |
Definition at line 1318 of file MSLane.h.
Referenced by MSLane::addParking(), drawGL(), MSLane::executeMovements(), MSLane::getParkingVehicles(), and MSLane::removeParking().
|
protectedinherited |
The lane's partial vehicles. This container holds all vehicles that are partially on this lane but which are in myVehicles of another lane. Reasons for partial occupancies include the following.
The entering vehicles are inserted at the front of this container and the leaving ones leave from the back.
Definition at line 1297 of file MSLane.h.
Referenced by MSLane::anyVehiclesBegin(), MSLane::anyVehiclesEnd(), MSLane::anyVehiclesUpstreamBegin(), MSLane::detectCollisions(), MSLane::freeInsertion(), MSLane::getBruttoOccupancy(), MSLane::getFirstAnyVehicle(), MSLane::getLastAnyVehicle(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLane::getNettoOccupancy(), MSLane::getPartialBehind(), MSLane::getPartialBeyond(), MSLane::getPartialVehicleNumber(), MSLaneChanger::getRealLeader(), MSLane::getVehicleNumberWithPartials(), MSLane::integrateNewVehicles(), MSLane::isEmpty(), MSLane::isInsertionSuccess(), MSLane::planMovements(), MSLane::resetPartialOccupation(), MSLane::setPartialOccupation(), MSLane::sortPartialVehicles(), and MSLane::updateLeaderInfo().
|
protectedinherited |
Definition at line 1408 of file MSLane.h.
Referenced by closeTraffic(), getPopUpMenu(), MSLane::resetPermissions(), and MSLane::setPermissions().
|
protectedinherited |
The vClass permissions for this lane.
Definition at line 1338 of file MSLane.h.
Referenced by MSLane::allowsVehicleClass(), drawAsRailway(), drawAsWaterway(), drawGL(), drawMarkings(), getColorValue(), MSLane::getMaximumBrakeDist(), getParameterWindow(), MSLane::getPermissions(), MSLane::resetPermissions(), and MSLane::setPermissions().
|
private |
Quarter of lane width, for speed-up.
Definition at line 346 of file GUILane.h.
Referenced by drawDirectionIndicators(), drawGL(), and GUILane().
|
private |
the time distance from a particular edge
Definition at line 349 of file GUILane.h.
Referenced by getColorValue(), getReachability(), and setReachability().
|
protectedinherited |
The vClass speed restrictions for this lane.
Definition at line 1344 of file MSLane.h.
Referenced by MSLane::getVehicleMaxSpeed(), and MSLane::initRestrictions().
|
protectedinherited |
the index of the rightmost sublane of this lane on myEdge
Definition at line 1399 of file MSLane.h.
Referenced by MSLane::getRightmostSublane(), and MSLane::setRightSideOnEdge().
|
protectedinherited |
the combined width of all lanes with lower index on myEdge
Definition at line 1397 of file MSLane.h.
Referenced by MSLane::getCenterOnEdge(), MSLane::getRightSideOnEdge(), and MSLane::setRightSideOnEdge().
|
protectedinherited |
Definition at line 1411 of file MSLane.h.
Referenced by getColorValue(), MSLane::getRNG(), MSLane::getRNGIndex(), MSLane::MSLane(), and MSLane::setRNGIndex().
|
staticprotectedinherited |
Definition at line 1419 of file MSLane.h.
Referenced by MSLane::getNumRNGs(), MSLane::getRNG(), MSLane::initRNGs(), and MSLane::MSLane().
|
protectedinherited |
The shape of the lane.
Definition at line 1269 of file MSLane.h.
Referenced by drawGL(), drawLinkRules(), MSLane::geometryPositionAtOffset(), getCenteringBoundary(), getPopUpMenu(), getShape(), MSLane::getShape(), GUILane(), setFunctionalColor(), and setMultiColor().
|
mutableprivate |
The color of the shape parts (cached)
Definition at line 337 of file GUILane.h.
Referenced by drawGL(), GUILane(), and setMultiColor().
|
private |
The lengths of the shape parts.
Definition at line 334 of file GUILane.h.
Referenced by drawBikeMarkings(), drawDirectionIndicators(), drawGL(), drawMarkings(), getShapeLengths(), and GUILane().
|
private |
The rotations of the shape parts.
Definition at line 331 of file GUILane.h.
Referenced by drawBikeMarkings(), drawDirectionIndicators(), drawGL(), drawMarkings(), getShapeRotations(), and GUILane().
|
private |
the meso segment index for each geometry segment
Definition at line 340 of file GUILane.h.
Referenced by drawGL(), GUILane(), and splitAtSegments().
|
protectedinherited |
Lane's vClass specific stop offset [m]. The map is either of length 0, which means no special stopOffset was set, or of length 1, where the key is a bitset representing a subset of the SUMOVehicleClass Enum and the value is the offset in meters.
Definition at line 1329 of file MSLane.h.
Referenced by drawLinkRules(), MSLane::getStopOffset(), MSLane::getStopOffsets(), and MSLane::setStopOffsets().
|
protectedinherited |
Container for lane-changing vehicles. After completion of lane-change- process, the containers will be swapped with myVehicles.
Definition at line 1301 of file MSLane.h.
Referenced by MSLane::anyVehiclesBegin(), MSLane::anyVehiclesEnd(), MSLane::anyVehiclesUpstreamBegin(), MSLane::getLeader(), and MSLane::swapAfterLaneChange().
|
protectedinherited |
Buffer for vehicles that moved from their previous lane onto this one. Integrated after all vehicles executed their moves.
Definition at line 1305 of file MSLane.h.
Referenced by MSLane::checkBufferType(), MSLane::empty(), MSLane::executeMovements(), and MSLane::integrateNewVehicles().
|
protectedinherited |
The lane's vehicles. This container holds all vehicles that have their front (longitudinally) and their center (laterally) on this lane. These are the vehicles that this lane is 'responsibly' for (i.e. when executing movements)
The entering vehicles are inserted at the front of this container and the leaving ones leave from the back, e.g. the vehicle in front of the junction (often called first) is myVehicles.back() (if it exists). And if it is an iterator at a vehicle, ++it points to the vehicle in front. This is the interaction vehicle.
Definition at line 1285 of file MSLane.h.
Referenced by MSLane::addMoveReminder(), MSLane::anyVehiclesBegin(), MSLane::anyVehiclesEnd(), MSLane::anyVehiclesUpstreamBegin(), MSLane::detectCollisions(), MSLane::empty(), MSLane::executeMovements(), firstWaitingTime(), MSLane::forceVehicleInsertion(), MSLane::freeInsertion(), MSLane::getBruttoOccupancy(), MSLane::getFirstAnyVehicle(), MSLane::getFirstFullVehicle(), MSLane::getLastAnyVehicle(), MSLane::getLastFullVehicle(), MSLane::getLeader(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getVehicleNumber(), MSLane::getVehicleNumberWithPartials(), getVehiclesSecure(), MSLane::getVehiclesSecure(), MSLane::getWaitingSeconds(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicles(), MSLane::isEmpty(), MSLane::isInsertionSuccess(), MSLane::loadState(), MSLane::planMovements(), MSLane::removeVehicle(), MSLane::saveState(), MSLane::setJunctionApproaches(), MSLane::swapAfterLaneChange(), MSLane::updateLengthSum(), and MSQueueExport::writeLane().
|
protectedinherited |
Lane width [m].
Definition at line 1324 of file MSLane.h.
Referenced by drawArrows(), drawDirectionIndicators(), drawGL(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSLane::getCenterOnEdge(), getParameterWindow(), MSLane::getWidth(), and GUILane().
|
staticinherited |
associates object types with strings
Definition at line 68 of file GUIGlObject.h.
Referenced by GUIGlObject::createFullName(), and GNESelectorFrame::SelectionOperation::onCmdSave().