![]() |
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 | addParameter (const std::string &key, const std::string &value) | |||
Adds a parameter. More... | ||||
void | addParameter (const std::map< std::string, std::string > &mapArg) | |||
Adds all given parameter. More... | ||||
void | addParameter (const Parameterised &p) | |||
Adds all given parameter. 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 | clearParameter () | |||
Clears the parameter map. More... | ||||
void | closeTraffic (bool rebuildAllowed=true) | |||
close this lane for traffic More... | ||||
void | detectCollisions (SUMOTime timestep, const std::string &stage) | |||
void | drawBikeMarkings () const | |||
bike lane markings on top of an intersection More... | ||||
void | drawCrossties (double length, double spacing, double halfWidth) const | |||
draw crossties for railroads or pedestrian crossings More... | ||||
void | drawDirectionIndicators () const | |||
direction indicators for lanes More... | ||||
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const | |||
Draws additional, user-triggered visualisations. More... | ||||
void | drawMarkings (const GUIVisualizationSettings &s, double scale) const | |||
draw lane borders and white markings 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) | |||
double | firstWaitingTime () const | |||
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... | ||||
double | getEdgeLaneNumber () const | |||
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... | ||||
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... | ||||
double | getLoadedEdgeWeight () const | |||
Returns the loaded weight (effort) for the edge of this lane. 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... | ||||
const std::map< std::string, std::string > & | getMap () const | |||
Returns the inner key/value map. 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... | ||||
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... | ||||
std::vector< const MSLane * > | getOutgoingLanes () const | |||
get the list of outgoing lanes More... | ||||
MSLane * | getParallelLane (int offset) 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::string & | getParentName () const | |||
Returns the name of the parent object (if any) More... | ||||
MSVehicle * | getPartialBehind (const MSVehicle *ego) const | |||
int | getRightmostSublane () const | |||
double | getRightSideOnEdge () const | |||
const PositionVector & | getShape () const | |||
const std::vector< double > & | getShapeLengths () const | |||
const std::vector< double > & | getShapeRotations () const | |||
double | getStoredEdgeTravelTime () const | |||
Returns the stored traveltime for the edge of this lane. 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) | ||||
Constructor. More... | ||||
void | initRestrictions () | |||
initialized vClass-specific speed limits More... | ||||
bool | isApproachedFrom (MSEdge *const edge) | |||
bool | isApproachedFrom (MSEdge *const edge, MSLane *const lane) | |||
bool | isClosed () const | |||
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) | |||
MSVehicle * | removeVehicle (MSVehicle *remVehicle, MSMoveReminder::Notification notification, bool notify) | |||
void | resetPartialOccupation (MSVehicle *v) | |||
Removes the information about a vehicle lapping into this lane. More... | ||||
void | resetPermissions (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... | ||||
double | setPartialOccupation (MSVehicle *v) | |||
Sets the information about a vehicle lapping into this lane. More... | ||||
void | setPermissions (SVCPermissions permissions, 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 | sortPartialVehicles () | |||
sorts myPartialVehicles More... | ||||
void | visit (const TraCIServerAPI_Lane::StoringVisitor &cont) const | |||
Callback for visiting the lane when traversing an RTree. More... | ||||
void | writeParams (OutputDevice &out) const | |||
~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) | |||
bool | executeMovements (SUMOTime t, std::vector< MSLane *> &into) | |||
bool | integrateNewVehicle (SUMOTime t) | |||
inherited from GUIGlObject | ||||
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... | ||||
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 (MSVehicle *aVehicle, double &speed, double &dist, const double nspeed, const bool patchSpeed, const std::string errorMsg) const | |||
bool | lastInsertion (MSVehicle &veh, double mspeed, 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, 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 lanes | ||||
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... | ||||
double | interpolateLanePosToGeometryPos (double lanePos) const | |||
const Position | geometryPositionAtOffset (double offset, double lateralOffset=0) const | |||
double | interpolateGeometryPosToLanePos (double geometryPos) const | |||
double | getVehicleMaxSpeed (const SUMOVehicle *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... | ||||
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 (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 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 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 void | clear () |
Clears the dictionary. More... | |
static bool | dictionary (const std::string &id, MSLane *lane) |
Static (sic!) container methods {. More... | |
static MSLane * | dictionary (const std::string &id) |
Returns the MSLane associated to the key id. 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 void | initCollisionOptions (const OptionsCont &oc) |
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 | |
double | basePos (const MSVehicle &veh) const |
departure position where the vehicle fits fully onto the lane (if possible) More... | |
bool | detectCollisionBetween (SUMOTime timestep, const std::string &stage, MSVehicle *collider, MSVehicle *victim, std::set< const MSVehicle *, SUMOVehicle::ComparatorIdLess > &toRemove, std::set< const MSVehicle *> &toTeleport) const |
detect whether there is a collision between the two vehicles More... | |
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 *, SUMOVehicle::ComparatorIdLess > &toRemove, std::set< const MSVehicle *> &toTeleport) const |
take action upon collision 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... | |
double | safeInsertionSpeed (const MSVehicle *veh, const MSLeaderInfo &leaders, double speed) |
return the maximum safe speed for insertion behind leaders (a negative value indicates that safe insertion is impossible) More... | |
void | setPrefix (const std::string &prefix) |
usually names are prefixed by a type-specific string. this method can be used to change the default More... | |
void | swapAfterLaneChange (SUMOTime t) |
moves myTmpVehicles int myVehicles after a lane change procedure 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... | |
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... | |
MSLeaderInfo | myLeaderInfo |
leaders on all sublanes as seen by approaching vehicles (cached) More... | |
SUMOTime | myLeaderInfoTime |
time step for which myLeaderInfo was last updated More... | |
MSLeaderInfo | myLeaderInfoTmp |
double | myLength |
Lane length [m]. More... | |
const double | myLengthGeometryFactor |
precomputed myShape.length / myLength More... | |
MSLinkCont | myLinks |
MSLane * | myLogicalPredecessorLane |
double | myMaxSpeed |
Lane-wide speedlimit [m/s]. More... | |
std::vector< std::string > | myNeighs |
double | myNettoVehicleLengthSum |
The current length of all vehicles on 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... | |
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 occupancie include the following. More... | |
std::map< 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... | |
PositionVector | myShape |
The shape of the lane. More... | |
VehCont | myTmpVehicles |
Container for lane-changing vehicles. After completion of lane-change- process, the containers will be swapped with myVehicles. More... | |
VehCont | 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... | |
Private Member Functions | |
void | drawArrows () const |
bool | drawAsRailway (const GUIVisualizationSettings &s) const |
whether to draw this lane as a railway More... | |
bool | drawAsWaterway (const GUIVisualizationSettings &s) const |
whether to draw this lane as a waterway More... | |
void | drawLane2LaneConnections () const |
void | drawLinkNo (const GUIVisualizationSettings &s) const |
helper methods More... | |
void | drawLinkRule (const GUIVisualizationSettings &s, const GUINet &net, MSLink *link, const PositionVector &shape, double x1, double x2) const |
void | drawLinkRules (const GUIVisualizationSettings &s, const GUINet &net) const |
void | drawTLSLinkNo (const GUIVisualizationSettings &s, const GUINet &net) const |
double | getColorValue (int activeScheme) const |
gets the color value according to the current scheme index More... | |
double | getScaleValue (int activeScheme) const |
gets the scaling value according to the current scheme index More... | |
void | setColor (const GUIVisualizationSettings &s) const |
sets the color according to the currente settings More... | |
bool | setFunctionalColor (int activeScheme) const |
sets the color according to the current scheme index and some lane function More... | |
bool | setMultiColor (const GUIColorer &c) const |
sets multiple colors according to the current scheme index and some lane function More... | |
PositionVector | splitAtSegments (const PositionVector &shape) |
add intermediate points at segment borders More... | |
Private Attributes | |
bool | myAmClosed |
state for dynamic lane closings More... | |
double | myHalfLaneWidth |
Half of lane width, for speed-up. More... | |
MFXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
double | myQuarterLaneWidth |
Quarter of lane width, for speed-up. More... | |
std::vector< RGBColor > | myShapeColors |
The color of the shape parts (cached) More... | |
std::vector< double > | myShapeLengths |
The lengths of the shape parts. More... | |
std::vector< double > | myShapeRotations |
The rotations of the shape parts. More... | |
std::vector< int > | myShapeSegments |
the meso segment index for each geometry segment 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 | ||
) |
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 74 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 | ( | ) |
Destructor.
Definition at line 102 of file GUILane.cpp.
References MFXMutex::locked(), myLock, and MFXMutex::unlock().
|
inherited |
Definition at line 1701 of file MSLane.cpp.
References MSEdge::EDGEFUNCTION_INTERNAL, MSLane::getEdge(), Named::getID(), MSEdge::getPurpose(), MSLane::myApproachingLanes, and WRITE_WARNING.
Referenced by NLHandler::addConnection(), and MSLane::getIncomingLanes().
Definition at line 1691 of file MSLane.cpp.
References MSLane::getLength(), MSLane::IncomingLaneInfo::lane, MSLane::IncomingLaneInfo::length, MSLane::myIncomingLanes, and MSLane::IncomingLaneInfo::viaLink.
Referenced by NLHandler::addConnection(), and MSLane::allowsVehicleClass().
|
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 201 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 214 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 207 of file MSLane.cpp.
References MSLane::myNeighs.
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), TraCI_POI::addParameter(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenDrive::loadNetwork(), MSStateHandler::myStartElement(), NIImporter_MATSim::EdgesHandler::myStartElement(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_TLS::processSet(), TraCI_Polygon::setParameter(), TraCI_Route::setParameter(), and TraCI_Lane::setParameter().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Definition at line 256 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::GUIParameterTableWindow().
|
inlineinherited |
Adds this object to the given container.
Definition at line 129 of file Named.h.
References Named::StoringVisitor::add().
|
inlineinherited |
Definition at line 706 of file MSLane.h.
References MSLane::addIncomingLane(), and MSLane::myPermissions.
Referenced by MSVehicle::addStop(), MSEdge::allowedLanes(), 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 385 of file MSLane.h.
References MSLane::AnyVehicleIterator, MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSLane::detectCollisions(), MSLane::getFollowersOnConsecutive(), MSLane::getLastVehicleInformation(), MSLane::getLeader(), and MSLink::getLeaderInfo().
|
inlineinherited |
end iterator for iterating over all vehicles touching this lane in downstream direction
Definition at line 390 of file MSLane.h.
References MSLane::AnyVehicleIterator, MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSLane::detectCollisions(), MSLane::getFollowersOnConsecutive(), MSLane::getLeader(), and MSLink::getLeaderInfo().
|
inlineinherited |
begin iterator for iterating over all vehicles touching this lane in upstream direction
Definition at line 395 of file MSLane.h.
References MSLane::AnyVehicleIterator, MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSLane::getFirstVehicleInformation(), and MSLane::getFollower().
|
inlineinherited |
end iterator for iterating over all vehicles touching this lane in upstream direction
Definition at line 400 of file MSLane.h.
References MSLane::AnyVehicleIterator.
Referenced by MSLane::getFollower().
|
virtualinherited |
Returns the information whether this lane may be used to continue the current route
Definition at line 1429 of file MSLane.cpp.
References MSEdge::EDGEFUNCTION_INTERNAL, MSVehicle::getBestLanes(), MSVehicle::getBestLanesContinuation(), MSVehicle::getLaneIndex(), MSEdge::getPurpose(), MSLane::myEdge, MSLane::myLinks, MSBaseVehicle::succEdge(), and MSLane::succLinkSec().
Referenced by MSLane::executeMovements(), and MSLane::getIndex().
|
protectedinherited |
departure position where the vehicle fits fully onto the lane (if possible)
Definition at line 512 of file MSLane.cpp.
References MSVehicleType::getLength(), MSBaseVehicle::getVehicleType(), MIN2(), MSLane::myLength, and POSITION_EPS.
Referenced by MSLane::insertVehicle().
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 185 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 194 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 175 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNEJunction::getPopUpMenu(), GNECrossing::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
Definition at line 235 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GNENet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 204 of file GUIGlObject.cpp.
References GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNELane::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GNEConnection::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 247 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
Definition at line 217 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIParkingArea::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GNEAdditional::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
Definition at line 226 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIPerson::getPopUpMenu(), and GUIBaseVehicle::getPopUpMenu().
|
inherited |
Definition at line 517 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSInsertionControl::descheduleDeparture(), MSVehicle::getCarFollowModel(), MSBaseVehicle::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), MSVehicleType::getMinGap(), MSBaseVehicle::getVehicleType(), MIN2(), and WRITE_ERROR.
Referenced by MSLane::getMoveReminders(), and MSLane::isInsertionSuccess().
|
staticinherited |
Clears the dictionary.
Definition at line 1394 of file MSLane.cpp.
References MSLane::myDict.
Referenced by MSNet::clearAll(), and MSLane::getEdge().
|
inherited |
Clears the parameter map.
Definition at line 99 of file Parameterised.cpp.
References Parameterised::myMap.
void GUILane::closeTraffic | ( | bool | rebuildAllowed = true | ) |
close this lane for traffic
Definition at line 1090 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().
|
protectedinherited |
detect whether there is a collision between the two vehicles
Definition at line 1116 of file MSLane.cpp.
References MSLane::COLLISION_ACTION_TELEPORT, DEBUG_COND, DELTA_T, MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), Named::getID(), MSBaseVehicle::getID(), MSVehicle::getInfluencer(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), MSGlobals::gLaneChangeDuration, MSGlobals::gLateralResolution, MSLane::handleCollisionBetween(), MSVehicle::hasInfluencer(), MSAbstractLaneChangeModel::isChangingLanes(), MSAbstractLaneChangeModel::isOpposite(), MSVehicle::Influencer::isVTDAffected(), MSLane::myCollisionAction, 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 170 of file GUILane.cpp.
References MSLane::detectCollisions(), and myLock.
|
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 |
make non-static
why is the id given? The lane is named
Definition at line 1371 of file MSLane.cpp.
References MSLane::myDict.
Referenced by NLHandler::addConnection(), NLHandler::addLane(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSLane::getEdge(), TraCI_Lane::getLane(), NLTriggerBuilder::getLane(), NLDetectorBuilder::getLaneChecking(), NLShapeHandler::getLanePos(), MSE2Collector::getLanes(), MSLane::getOpposite(), TraCIServerAPI_Lane::getShape(), MSPedestrianPushButton::loadPushButtons(), MSVehicleTransfer::loadState(), MSTriggeredRerouter::myStartElement(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), NLHandler::parseLanes(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Lane::processSet(), and MSE2Collector::recalculateDetectorLength().
|
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 1383 of file MSLane.cpp.
References MSLane::myDict.
|
inlinestaticinherited |
Returns the number of stored lanes.
Definition at line 625 of file MSLane.h.
References MSLane::enteredByLaneChange(), MSLane::fill(), MSLane::getFirstAnyVehicle(), MSLane::getFirstFullVehicle(), MSLane::getLastAnyVehicle(), MSLane::getLastFullVehicle(), MSLane::getParallelLane(), MSLane::insertIDs(), MSLane::isEmpty(), MSLane::isInternal(), MSLane::isLinkEnd(), MSLane::leftByLaneChange(), MSLane::myDict, MSLane::removeVehicle(), MSLane::resetPermissions(), MSLane::setPermissions(), and MSLane::succLinkSec().
|
private |
Definition at line 338 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_TL_OFF_NOSIGNAL, MSLane::myLinks, MSLane::myWidth, RAD2DEG, SUMO_const_laneWidth, Position::x(), and Position::y().
Referenced by drawGL().
|
private |
whether to draw this lane as a railway
Definition at line 1067 of file GUILane.cpp.
References isRailway(), MSLane::myPermissions, and GUIVisualizationSettings::showRails.
Referenced by drawGL(), and drawLinkRule().
|
private |
whether to draw this lane as a waterway
Definition at line 1073 of file GUILane.cpp.
References RGBColor::alpha(), RGBColor::blue(), GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), RGBColor::green(), isWaterway(), GUIVisualizationSettings::laneColorer, MSLane::myPermissions, RGBColor::red(), and GUIVisualizationSettings::showRails.
Referenced by drawGL(), and drawLinkRule().
void GUILane::drawBikeMarkings | ( | ) | const |
bike lane markings on top of an intersection
Definition at line 636 of file GUILane.cpp.
References getShape(), GLO_JUNCTION, myHalfLaneWidth, myShapeLengths, myShapeRotations, and SUMO_const_laneOffset.
Referenced by drawGL().
void GUILane::drawCrossties | ( | double | length, |
double | spacing, | ||
double | halfWidth | ||
) | const |
draw crossties for railroads or pedestrian crossings
Definition at line 661 of file GUILane.cpp.
References getShape(), myShapeLengths, and myShapeRotations.
Referenced by drawGL().
void GUILane::drawDirectionIndicators | ( | ) | const |
direction indicators for lanes
Definition at line 685 of file GUILane.cpp.
References getShape(), GLO_EDGE, MIN2(), myHalfLaneWidth, myQuarterLaneWidth, myShapeLengths, myShapeRotations, and MSLane::myWidth.
Referenced by drawGL().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 424 of file GUILane.cpp.
References GLHelper::debugVertices(), drawArrows(), drawAsRailway(), drawAsWaterway(), drawBikeMarkings(), GLHelper::drawBoxLines(), GUIVisualizationSettings::drawCrossingsAndWalkingareas, drawCrossties(), drawDirectionIndicators(), GLHelper::drawFilledPoly(), GLHelper::drawFilledPolyTesselated(), GUIVisualizationSettings::drawForSelecting, GUIBaseVehicle::drawGL(), drawLane2LaneConnections(), GLHelper::drawLine(), GUIVisualizationSettings::drawLinkJunctionIndex, drawLinkNo(), drawLinkRules(), GUIVisualizationSettings::drawLinkTLIndex, drawMarkings(), drawTLSLinkNo(), MSEdge::EDGEFUNCTION_CROSSING, MSEdge::EDGEFUNCTION_INTERNAL, MSEdge::EDGEFUNCTION_WALKINGAREA, GUIVisualizationSettings::edgeScaler, GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), GLHelper::getColor(), MSLinkContHelper::getConnectingLink(), GUIVisualizationSizeSettings::getExaggeration(), GUIGlObject::getGlID(), MSVehicleTransfer::getInstance(), MSNet::getInstance(), GUINet::getLinkTLIndex(), MSLane::getLogicalPredecessorLane(), MSVehicleTransfer::getParkingVehicles(), MSEdge::getPurpose(), GUIEdge::getScaleValue(), getScaleValue(), GUIPropertySchemeStorage< T >::getScheme(), GUIGlObject::getType(), getVehiclesSecure(), MSLane::getWidth(), MSGlobals::gLateralResolution, GLO_JUNCTION, MSGlobals::gUseMesoSim, MSLink::havePriority(), MSLane::isInternal(), isWaterway(), GUIVisualizationSettings::laneMinSize, GUIVisualizationSettings::laneScaler, GUIVisualizationSettings::laneShowBorders, GUIVisualizationSettings::laneWidthExaggeration, MAX2(), GUIVisualizationSizeSettings::minSize, MSLane::myEdge, myHalfLaneWidth, MSLane::myPermissions, myQuarterLaneWidth, MSLane::myShape, myShapeColors, myShapeLengths, myShapeRotations, myShapeSegments, releaseVehicles(), GUIVisualizationSettings::scale, GLHelper::setColor(), setColor(), GUIVisualizationTextSettings::show, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLaneDirection, GUIVisualizationSettings::showLinkDecals, GUIVisualizationSettings::showLinkRules, GUIVisualizationSettings::showSublanes, SVC_BICYCLE, SVC_PEDESTRIAN, 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 GUIBaseVehicle, GUIPerson, and GUIContainer.
Definition at line 154 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
|
private |
Definition at line 405 of file GUILane.cpp.
References GLHelper::drawTriangleAtEnd(), GUIVisualizationSettings::getLinkColor(), getShape(), MSLane::getShape(), MSLane::myLinks, GLHelper::setColor(), Position::x(), and Position::y().
Referenced by drawGL().
|
private |
helper methods
Definition at line 192 of file GUILane.cpp.
References GUIVisualizationTextSettings::color, GUIVisualizationSettings::drawLinkJunctionIndex, GLHelper::drawTextAtEnd(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSLink::getIndex(), MSLane::getIndex(), MSNet::getInstance(), MSLane::getLogicalPredecessorLane(), getShape(), MSNet::lefthand(), myHalfLaneWidth, MSLane::myLinks, MSLane::myWidth, PositionVector::reverse(), GUIVisualizationTextSettings::size, and toString().
Referenced by drawGL().
|
private |
Definition at line 282 of file GUILane.cpp.
References drawAsRailway(), drawAsWaterway(), GUIGlObject::getGlID(), GUIVisualizationSettings::getLinkColor(), GUINet::getLinkTLID(), MSLink::getState(), 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, myHalfLaneWidth, RAD2DEG, GLHelper::setColor(), Position::x(), and Position::y().
Referenced by drawLinkRules().
|
private |
Definition at line 254 of file GUILane.cpp.
References drawLinkRule(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSNet::getInstance(), MSLane::getLogicalPredecessorLane(), getShape(), MSNet::lefthand(), MSLane::myLinks, MSLane::myWidth, and PositionVector::reverse().
Referenced by drawGL().
void GUILane::drawMarkings | ( | const GUIVisualizationSettings & | s, |
double | scale | ||
) | const |
draw lane borders and white markings
Definition at line 600 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, myQuarterLaneWidth, myShapeLengths, myShapeRotations, setColor(), and SUMO_const_laneOffset.
Referenced by drawGL().
|
inherited |
draw name of item
Definition at line 284 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE2::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSign::drawGL(), GUIPolygon::drawGL(), GNERouteProbe::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIPerson::drawGL(), GNERerouter::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEDetectorE3::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIInductLoop::MyWrapper::drawGL(), and GUIBaseVehicle::drawOnPos().
|
private |
Definition at line 220 of file GUILane.cpp.
References GUIVisualizationTextSettings::color, GUIVisualizationSettings::drawLinkTLIndex, GLHelper::drawTextAtEnd(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSNet::getInstance(), GUINet::getLinkTLIndex(), MSLane::getLogicalPredecessorLane(), getShape(), 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 564 of file MSLane.h.
References MSLane::myVehBuffer, MSLane::myVehicles, MSLane::setLength(), and MSLane::setMaxSpeed().
Referenced by MSQueueExport::writeLane().
|
inherited |
Definition at line 2088 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, and MSLane::myNettoVehicleLengthSum.
Referenced by MSLane::dictSize(), and MSAbstractLaneChangeModel::primaryLaneChanged().
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 142 of file GUILane.cpp.
References MSLane::executeMovements(), and myLock.
|
staticinherited |
Fills the given RTree with lane instances.
Definition at line 1411 of file MSLane.cpp.
References PositionVector::getBoxBoundary(), MSLane::getShape(), Boundary::grow(), LANE_RTREE_QUAL, MSLane::myDict, Boundary::xmax(), Boundary::xmin(), Boundary::ymax(), and Boundary::ymin().
Referenced by TraCIServer::collectObjectsInRange(), MSLane::dictSize(), and MSNet::getLanesRTree().
double GUILane::firstWaitingTime | ( | ) | const |
Definition at line 806 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 831 of file MSLane.cpp.
References MSLane::getDepartSpeed(), MSVehicle::getSpeed(), MSBaseVehicle::hasDeparted(), MSLane::incorporateVehicle(), MSLane::myVehicles, and MSVehicle::updateBestLanes().
Referenced by MSLaneChanger::changeOpposite(), MSLane::getMoveReminders(), MSVehicle::Influencer::postProcessVTD(), and TraCIServerAPI_Vehicle::processSet().
|
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 313 of file MSLane.cpp.
References MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSLane::getFirstFullVehicle(), MSVehicleType::getLength(), MSLane::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(), MSLane::getMoveReminders(), and MSLane::insertVehicle().
|
inlineinherited |
Definition at line 448 of file MSLane.h.
References MSLane::interpolateLanePosToGeometryPos(), MSLane::myShape, and PositionVector::positionAtOffset().
Referenced by GUIE3Collector::MyWrapper::buildDefinition(), MSVehicle::computeAngle(), GUIVehicle::drawAction_drawRailCarriages(), GUIEdge::drawMesoVehicles(), GUIBaseVehicle::drawOnPos(), MSVehicle::getBackPosition(), NLShapeHandler::getLanePos(), MEVehicle::getPosition(), MSVehicle::getPosition(), GUIMEInductLoop::MyWrapper::MyWrapper(), GUIInstantInductLoop::MyWrapper::MyWrapper(), and GUIInductLoop::MyWrapper::MyWrapper().
|
inherited |
Returns the brutto (including minGaps) occupancy of this lane during the last step.
Definition at line 2106 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSLane::getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, MSLane::myLength, MSLane::myPartialVehicles, MSLane::myVehicles, and MSLane::releaseVehicles().
Referenced by MSLCM_LC2013::_wantsChange(), getColorValue(), MSLane::getIncomingLanes(), 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 863 of file MSLane.h.
References MSLane::getCO2Emissions(), MSLane::getCOEmissions(), MSLane::getElectricityConsumption(), MSLane::getFuelConsumption(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHCEmissions(), MSLane::getNOxEmissions(), MSLane::getPMxEmissions(), and MSLane::myBruttoVehicleLengthSum.
Referenced by MSVehicle::checkRewindLinkLanes().
|
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 2018 of file MSLane.cpp.
References MSLane::myCanonicalPredecessorLane, Named::myID, and MSLane::myIncomingLanes.
Referenced by MSLane::getEntryLink(), MSLane::getIncomingLanes(), 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 2038 of file MSLane.cpp.
References MSLane::myCanonicalSuccessorLane, Named::myID, and MSLane::myLinks.
Referenced by MSLane::getIncomingLanes(), 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 771 of file GUILane.cpp.
References Boundary::add(), Boundary::grow(), and MSLane::myShape.
|
inlineinherited |
Definition at line 932 of file MSLane.h.
References MSLane::getFollower(), MSLane::getOpposite(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), MSLane::loadState(), MSLane::myRightSideOnEdge, MSLane::myWidth, MSLane::saveState(), and MSLane::sortPartialVehicles().
Referenced by MSVehicle::getCenterOnEdge(), and MSAbstractLaneChangeModel::startLaneChangeManeuver().
|
inherited |
Returns the sum of last step CO2 emissions.
Definition at line 2165 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by MSLane::getBruttoVehLenSum(), TraCI_Lane::getCO2Emission(), getColorValue(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Returns the sum of last step CO emissions.
Definition at line 2177 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by MSLane::getBruttoVehLenSum(), TraCI_Lane::getCOEmission(), getColorValue(), getScaleValue(), and MSFullExport::writeLane().
|
inlinestaticinherited |
Definition at line 1015 of file MSLane.h.
References MSLane::myCollisionAction.
Referenced by MSLane::executeMovements(), and MSVehicle::resumeFromStopping().
|
private |
gets the color value according to the current scheme index
Definition at line 893 of file GUILane.cpp.
References firstWaitingTime(), MSLane::getBruttoOccupancy(), MSLane::getCO2Emissions(), MSLane::getCOEmissions(), getEdgeLaneNumber(), MSLane::getElectricityConsumption(), MSLane::getFuelConsumption(), GUIGlObject::getGlID(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHCEmissions(), MSNet::getInsertionControl(), MSNet::getInstance(), MSLane::getLength(), getLoadedEdgeWeight(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getNOxEmissions(), MSInsertionControl::getPendingEmits(), MSLane::getPMxEmissions(), MSEdge::getPriority(), MSEdge::getRoutingSpeed(), getShape(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), GUIGlObject::getType(), MSNet::getWeightsStorage(), GLO_EDGE, gSelected, isRailway(), GUISelectedStorage::isSelected(), MSEdgeWeightsStorage::knowsTravelTime(), MSLane::myEdge, MSLane::myLength, MSLane::myLengthGeometryFactor, MSLane::myMaxSpeed, MSLane::myPermissions, MSEdgeWeightsStorage::retrieveExistingTravelTime(), SVC_AUTHORITY, SVC_BICYCLE, SVC_PASSENGER, SVC_PEDESTRIAN, and SVC_SHIP.
Referenced by drawAsWaterway(), and setColor().
|
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 1916 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSLane::getLastAnyVehicle(), MSVehicle::getLateralPositionOnLane(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), MSLane::isLinkEnd(), max, MAX2(), NUMERICAL_EPS, MSLane::succLinkSec(), and TIME2STEPS.
Referenced by MSLaneChanger::checkChange(), and MSLane::getIncomingLanes().
|
inherited |
return the index of the link to the next crossing if this is walkingArea, else -1
Definition at line 2095 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLane::getIndex().
|
protectedinherited |
Definition at line 401 of file MSLane.cpp.
References DEPART_SPEED_DEFAULT, DEPART_SPEED_GIVEN, DEPART_SPEED_MAX, DEPART_SPEED_RANDOM, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, 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 89 of file Parameterised.cpp.
References TplConvert::_2double(), and Parameterised::myMap.
Referenced by MSDevice_Battery::buildVehicleDevices().
|
inlineinherited |
Returns the lane's edge.
Definition at line 582 of file MSLane.h.
References MSLane::clear(), MSLane::dictionary(), MSLane::getNextNormal(), and MSLane::myEdge.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), TraCIServerAPI_Lane::StoringVisitor::add(), MSLane::addApproachingLane(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSEdge::allowedLanes(), MSSwarmTrafficLightLogic::allowLine(), MSSOTLE2Sensors::buildSensorForLane(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::checkBlocking(), MSLaneChanger::checkChange(), MSVehicle::checkRewindLinkLanes(), MSEdge::closeBuilding(), closeTraffic(), MSDevice_Tripinfo::computeLengthAndDuration(), GUIDetectorBuilder::createInductLoop(), NLDetectorBuilder::createInductLoop(), MSLCM_LC2013::distanceAlongNextRoundabout(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), MSLane::executeMovements(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCenterOnEdge(), TraCI_Vehicle::getDistance(), MSVehicle::getDistanceToPosition(), MSTransportable::Stage_Driving::getEdge(), TraCI_Lane::getEdgeID(), MSLinkContHelper::getInternalFollowingEdge(), MSEdge::getInternalFollowingEdge(), MSVehicle::getLaneIndex(), MSVehicle::getLatOffset(), MSLane::getLogicalPredecessorLane(), MSPModel_Striping::PState::getNextEdge(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), TraCI_Vehicle::getNextTLS(), MSVehicle::getPosition(), TraCI_Vehicle::getRoadID(), MSLCM_LC2013::getRoundaboutAheadInfo(), MSAbstractLaneChangeModel::getShadowDirection(), MSStoppingPlace::hasAccess(), MSVehicle::Influencer::implicitDeltaPosVTD(), MSVehicle::Influencer::implicitSpeedVTD(), MSVehicle::influenceChangeDecision(), MSRailSignal::init(), MSLink::isExitLink(), MSLane::isInsertionSuccess(), MSJunction::isLeader(), MSLCM_SL2015::keepLatGap(), MSLink::lastWasContMajor(), MESegment::limitedControlOverride(), MSPedestrianPushButton::loadPushButtons(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_SSM::notifyLeave(), GUIViewTraffic::onCmdAddRerouter(), GUIViewTraffic::onCmdCloseEdge(), MSLane::outgoing_lane_priority_sorter::operator()(), MSLane::edge_finder::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), MSRouteHandler::parseWalkPositions(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), MSLCM_SL2015::prepareStep(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), MSPModel_Striping::PState::PState(), MSVehicle::replaceRoute(), MSTriggeredRerouter::rerouteParkingZone(), MSVehicle::resumeFromStopping(), TraCI_Lane::setAllowed(), TraCI_Lane::setDisallowed(), MSLink::setRequestInformation(), MSAbstractLaneChangeModel::startLaneChangeManeuver(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), MSDevice_SSM::updateEncounter(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSFCDExport::write().
double GUILane::getEdgeLaneNumber | ( | ) | const |
Definition at line 812 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 2237 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by MSLane::getBruttoVehLenSum(), getColorValue(), TraCI_Lane::getElectricityConsumption(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Returns the entry link if this is an internal lane, else 0.
Definition at line 1625 of file MSLane.cpp.
References MSLane::getCanonicalPredecessorLane(), MSLane::getLinkTo(), and MSLane::isInternal().
Referenced by MSLane::getIndex(), and MSDevice_SSM::updateEncounter().
|
inherited |
returns the first vehicle that is fully or partially on this lane
Definition at line 1534 of file MSLane.cpp.
References MSVehicle::getPositionOnLane(), MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSLane::dictSize().
|
inherited |
returns the first vehicle for which this lane is responsible or 0
Definition at line 1511 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by MSLane::dictSize(), and MSLane::freeInsertion().
|
inherited |
analogue to getLastVehicleInformation but in the upstream direction
Definition at line 910 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), MSLane::anyVehiclesUpstreamBegin(), DEBUG_COND2, MSNet::getCurrentTimeStep(), MSBaseVehicle::getID(), MSNet::getInstance(), MSVehicle::getLatOffset(), MSVehicle::getPositionOnLane(), MSVehicle::isFrontOnLane(), max, MSLane::myFollowerInfo, MSLane::myFollowerInfoTime, MSLane::myLeaderInfoTmp, and MSLane::myLength.
Referenced by MSLane::getFollowersOnConsecutive(), and MSLane::getMoveReminders().
|
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 2725 of file MSLane.cpp.
References MSLane::anyVehiclesUpstreamBegin(), MSLane::anyVehiclesUpstreamEnd(), DEBUG_COND2, MSLane::getFollowersOnConsecutive(), Named::getID(), MSBaseVehicle::getID(), MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), and MSBaseVehicle::getVehicleType().
Referenced by MSLane::getCenterOnEdge(), 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 2472 of file MSLane.cpp.
References MSCriticalFollowerDistanceInfo::addFollower(), MSLane::anyVehiclesBegin(), MSLane::anyVehiclesEnd(), DEBUG_COND2, MSLane::getFirstVehicleInformation(), Named::getID(), MSBaseVehicle::getID(), Named::getIDSecure(), MSLane::getIncomingLanes(), MSVehicle::getLane(), MSVehicle::getLatOffset(), MSVehicleType::getLength(), MSLane::getLength(), MSLane::getMaximumBrakeDist(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSLane::getRightSideOnEdge(), MSBaseVehicle::getVehicleType(), MSVehicle::isFrontOnLane(), MSLane::IncomingLaneInfo::lane, MSLane::IncomingLaneInfo::length, max, MAX2(), MSLane::myIncomingLanes, MSLeaderInfo::numFreeSublanes(), SIMTIME, MSLeaderInfo::toString(), MSCriticalFollowerDistanceInfo::toString(), and MSLane::IncomingLaneInfo::viaLink.
Referenced by MSLane::getFollower(), MSLane::getIncomingLanes(), MSLane::getMissingRearGap(), and MSLane::isInsertionSuccess().
|
inherited |
Returns the sum of last step fuel consumption.
Definition at line 2225 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by MSLane::getBruttoVehLenSum(), getColorValue(), TraCI_Lane::getFuelConsumption(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Definition at line 109 of file GUIGlObject.cpp.
References GUIGlObject::myFullName.
Referenced by GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUICalibrator::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inherited |
Returns the numerical id of the object.
Definition at line 121 of file GUIGlObject.cpp.
References GUIGlObject::myGlID.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteConnection(), GNENet::deleteCrossing(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIVehicle::drawAction_drawPersonsAndContainers(), GNEDetectorE1::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEInternalLane::drawGL(), GNEJunction::drawGL(), GNECrossing::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNEVaporizer::drawGL(), GUIContainer::drawGL(), GNEVariableSpeedSign::drawGL(), GUIPolygon::drawGL(), GNERouteProbe::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GUIPerson::drawGL(), GNERerouter::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNEDetectorE3::drawGL(), GNELane::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNEPoly::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GUIEdge::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNELane::getColorValue(), GNEJunction::getColorValue(), getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), getScaleValue(), GNECalibrator::GNECalibrator(), GNERouteProbe::GNERouteProbe(), GNEVaporizer::GNEVaporizer(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUIVehicle::isSelected(), GNEViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEViewNet::onCmdRevertRestriction(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), GUIBaseVehicle::~GUIBaseVehicle(), GUIGlObject::~GUIGlObject(), and GUIPerson::~GUIPerson().
|
inherited |
Returns the sum of last step noise emissions.
Definition at line 2249 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and HelpersHarmonoise::sum().
Referenced by MSLane::getBruttoVehLenSum(), getColorValue(), TraCI_Lane::getNoiseEmission(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Returns the sum of last step HC emissions.
Definition at line 2213 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by MSLane::getBruttoVehLenSum(), getColorValue(), TraCI_Lane::getHCEmission(), getScaleValue(), and MSFullExport::writeLane().
|
inlineinherited |
Returns the id.
Definition at line 66 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), PCPolyContainer::add(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), MSNet::addParkingArea(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), MSVehicle::addTraciStopAtStoppingPlace(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NLDetectorBuilder::buildE2Detector(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), NBEdgeCont::checkGrade(), MSVehicleTransfer::checkInsertions(), NBEdgeCont::checkOverlap(), MSDevice_Battery::checkParam(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBEdge::computeAngle(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), MSDevice_SSM::createEncounters(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), TraCI_Vehicle::getBestLanes(), MSNet::getBusStopID(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSNet::getChargingStationID(), NBEdge::getConnection(), NBEdge::getConnectionRef(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), TraCI_Lane::getEdgeID(), MSMeanData::getEdgeID(), NBEdge::getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowersOnConsecutive(), TraCI_InductionLoop::getLaneID(), TraCI_LaneArea::getLaneID(), TraCI_Vehicle::getLaneID(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLengthBeforeCrossing(), TraCI_Lane::getLinks(), MSLane::getLinkTo(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIE2Collector::MyWrapper::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSNet::getParkingAreaID(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), TraCI_Vehicle::getRoadID(), TraCI_Vehicle::getRouteID(), MSDevice_SSM::getUpstreamVehicles(), MSDevice_SSM::getVehiclesOnJunction(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), MSLane::integrateNewVehicle(), IntermodalNetwork< E, L, N, V >::IntermodalNetwork(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), MSLane::isInsertionSuccess(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), MSE2Collector::makeVehicleInfo(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), MSE2Collector::MSE2Collector(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_SSM::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSDevice_SSM::notifyLeave(), MSE2Collector::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSDevice_SSM::notifyMove(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::by_id_sorter::operator()(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::outgoing_lane_priority_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSLane::planMovements(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), MSDevice_SSM::processEncounters(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSDelayBasedTrafficLightLogic::proposeProlongation(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckLanes(), NBEdge::recheckLanes(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBNodeCont::remapIDs(), NBEdgeCont::remapIDs(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSVehicle::replaceParkingArea(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIImporter_DlrNavteq::ConnectedLanesHandler::report(), MSBaseVehicle::reroute(), MSTriggeredRerouter::rerouteParkingZone(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSDevice_Vehroutes::saveState(), MSDevice::saveState(), MSDevice_Tripinfo::saveState(), MSBaseVehicle::saveState(), MSLane::saveState(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), NBNodeCont::setAsTLControlled(), GNEEdge::setAttribute(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), GNEJunction::setLogicValid(), MSDevice_Battery::setMaximumBatteryCapacity(), NBEdge::setNodeBorder(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSLink::setRequestInformation(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSDevice_Battery::setStoppingTreshold(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSStopOut::stopEnded(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), toString(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSDevice_SSM::update(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditorFrame::updateDescription(), MSDevice_SSM::updateEncounter(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), MSLink::writeApproaching(), NBSign::writeAsPOI(), NWWriter_DlrNavteq::writeConnectedLanes(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_DlrNavteq::writeProhibitedManoeuvres(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and RONet::~RONet().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 59 of file Named.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::changeOpposite(), MSLaneChanger::continueChange(), MSVehicle::getBackPositionOnLane(), MSVehicle::getCenterOnEdge(), NBEdge::Connection::getDescription(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), GUIVehicle::getParameterWindow(), MSPModel_Striping::PState::moveToNextLane(), operator<<(), TraCIServerAPI_Vehicle::processSet(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSLeaderInfo::toString(), MSLeaderDistanceInfo::toString(), toString(), MSCriticalFollowerDistanceInfo::toString(), MSVehicle::updateBestLanes(), MSAbstractLaneChangeModel::updateShadowLane(), and TraCIServerAPI_Vehicle::vtdMap().
|
inlineinherited |
Definition at line 719 of file MSLane.h.
References MSLane::addApproachingLane(), MSLane::getBruttoOccupancy(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), MSLane::getCriticalLeader(), MSLane::getFollowersOnConsecutive(), MSLane::getIncomingLinkState(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLane::getLogicalPredecessorLane(), MSLane::getMeanSpeed(), MSLane::getMissingRearGap(), MSLane::getNettoOccupancy(), MSLane::getOutgoingLanes(), MSLane::getPartialBehind(), MSLane::getWaitingSeconds(), MSLane::isApproachedFrom(), and MSLane::myIncomingLanes.
Referenced by MSLane::getFollowersOnConsecutive(), MSPModel_Striping::getNextWalkingArea(), MSRailSignal::init(), MSLane::incoming_lane_priority_sorter::operator()(), MSVehicle::planMoveInternal(), MSInternalJunction::postloadInit(), and MSLink::setRequestInformation().
|
inherited |
get the state of the link from the logical predecessor to this lane
Definition at line 2059 of file MSLane.cpp.
References MSLinkContHelper::getConnectingLink(), MSLane::getLogicalPredecessorLane(), MSLink::getState(), and LINKSTATE_DEADEND.
Referenced by MSLane::getIncomingLanes().
|
inlineinherited |
Returns the lane's index.
Definition at line 507 of file MSLane.h.
References MSLane::appropriate(), MSLane::detectCollisions(), MSLane::executeMovements(), MSLane::getCrossingIndex(), MSLane::getEntryLink(), MSLane::getLinkCont(), MSLane::getLinkTo(), MSLane::integrateNewVehicle(), MSLane::myIndex, and MSLane::planMovements().
Referenced by MSLCM_SL2015::_wantsChangeSublane(), drawLinkNo(), TraCI_Vehicle::getLaneIndex(), MSAbstractLaneChangeModel::getShadowDirection(), MSLink::getZipperSpeed(), MSEdge::insertVehicle(), MSDevice_Vehroutes::notifyEnter(), MSLink::opened(), MSLaneChangerSublane::startChangeSublane(), and MSLaneChangerSublane::updateChanger().
|
inherited |
returns the last vehicle that is fully or partially on this lane
Definition at line 1520 of file MSLane.cpp.
References MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSVehicle::checkRewindLinkLanes(), MSLane::dictSize(), MSLane::getCriticalLeader(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), and MSLink::maybeOccupied().
|
inherited |
returns the last vehicle for which this lane is responsible or 0
Definition at line 1502 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by MSLane::dictSize().
|
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 859 of file MSLane.cpp.
References MSLeaderInfo::addLeader(), MSLane::anyVehiclesBegin(), DEBUG_COND2, MSNet::getCurrentTimeStep(), Named::getID(), MSBaseVehicle::getID(), MSNet::getInstance(), MSVehicle::getLatOffset(), MSVehicle::getPositionOnLane(), MSLane::myLeaderInfo, MSLane::myLeaderInfoTime, MSLane::myLeaderInfoTmp, and MSLeaderInfo::toString().
Referenced by MSLane::detectCollisions(), MSLane::getLeadersOnConsecutive(), MSLane::getMoveReminders(), 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 1765 of file MSLane.cpp.
References MSLane::anyVehiclesBegin(), MSLane::anyVehiclesEnd(), MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), Named::getID(), MSBaseVehicle::getID(), MSLane::getLeaderOnConsecutive(), MSLane::getLength(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSLane::myTmpVehicles, MSLane::myVehicles, NUMERICAL_EPS, and toString().
Referenced by MSLaneChanger::checkChange(), MSLane::getIncomingLanes(), 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 1830 of file MSLane.cpp.
References MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), Named::getID(), MSBaseVehicle::getID(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSVehicle::getLateralPositionOnLane(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSBaseVehicle::getVehicleType(), MAX2(), MSLane::myPartialVehicles, NUMERICAL_EPS, MSLane::succLinkSec(), TIME2STEPS, and toString().
Referenced by MSLane::getIncomingLanes(), 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 2595 of file MSLane.cpp.
References MSLeaderDistanceInfo::addLeader(), MSCFModel::brakeGap(), DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), Named::getID(), MSBaseVehicle::getID(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSLane::getLastVehicleInformation(), MSVehicle::getLateralPositionOnLane(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSVehicle::isFrontOnLane(), MSLane::isLinkEnd(), MAX2(), MIN2(), MSLane::myPartialVehicles, NUMERICAL_EPS, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), SIMTIME, MSLane::succLinkSec(), TIME2STEPS, MSLeaderInfo::toString(), and MSLink::LinkLeader::vehAndGap.
Referenced by MSLane::getIncomingLanes().
|
inlineinherited |
Returns the lane's length.
Definition at line 484 of file MSLane.h.
References MSLane::myLength.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::adaptToLeaders(), NLTriggerBuilder::addAccess(), NLHandler::addConnection(), MSLane::addIncomingLane(), MSVehicle::addStop(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NLDetectorBuilder::buildE2Detector(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), MSLaneChanger::changeOpposite(), MSLaneChanger::checkChange(), MSE2Collector::checkPositioning(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSLCM_LC2013::distanceAlongNextRoundabout(), MSPModel_Striping::PState::distToLaneEnd(), GUIVehicle::drawAction_drawRailCarriages(), GUIEdge::drawMesoVehicles(), MSVehicle::executeMove(), MSLane::executeMovements(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSLane::freeInsertion(), getColorValue(), MSLane::getCriticalLeader(), MSVehicle::getDistanceToPosition(), MSE2Collector::getEstimateQueueLength(), MSLane::getFollowersOnConsecutive(), MSLink::getInternalLengthsAfter(), TraCI::getLaneChecking(), NLShapeHandler::getLanePos(), MSLane::getLeader(), MSVehicle::getLeader(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), TraCI_Lane::getLength(), MSLink::getLengthBeforeCrossing(), MSPModel_Striping::getNextLaneObstacles(), TraCI_Vehicle::getNextTLS(), MSLane::getOppositePos(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), MSVehicle::getRerouteOrigin(), MSLCM_LC2013::getRoundaboutAheadInfo(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpaceTillLastStanding(), TraCI_Lane::getTraveltime(), MSLane::handleCollisionBetween(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSE2Collector::initAuxiliaries(), MSPModel_Striping::initWalkingAreaPaths(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), MSLink::maybeOccupied(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), MSE2Collector::MSE2Collector(), NLTriggerBuilder::parseAndBeginParkingArea(), NLTriggerBuilder::parseAndBuildChargingStation(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessVTD(), MSE2Collector::recalculateDetectorLength(), GUIVehicle::selectBlockingFoes(), MSE2Collector::selectLanes(), MSVehicle::setBlinkerInformation(), MSLink::setRequestInformation(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData::writeEdge(), and MSQueueExport::writeLane().
|
inlineinherited |
return shape.length() / myLength
Definition at line 431 of file MSLane.h.
References MSLane::myLengthGeometryFactor.
|
inherited |
returns the container with all links !!!
Definition at line 1597 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLCM_SL2015::computeSublaneShift(), MSLCM_LC2013::distanceAlongNextRoundabout(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSVehicle::getBestLanesContinuation(), MSLinkContHelper::getConnectingLink(), MSLane::getIndex(), MSLinkContHelper::getInternalFollowingEdge(), MSEdge::getInternalFollowingEdge(), MSLinkContHelper::getInternalFollowingLane(), MSLink::getInternalLengthsAfter(), MSLink::getLeaderInfo(), MSLink::getLengthBeforeCrossing(), MESegment::getLink(), TraCI_Lane::getLinkNumber(), TraCI_Lane::getLinks(), MESegment::getMaxPenaltySeconds(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextWalkingArea(), MSDevice_SSM::getVehiclesOnJunction(), MSRailSignal::init(), MSInternalJunction::postloadInit(), MSRightOfWayJunction::postloadInit(), 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 1604 of file MSLane.cpp.
References Named::getID(), MSLane::isInternal(), and MSLane::myLinks.
Referenced by MSDevice_SSM::findFoeConflictLane(), MSLane::getEntryLink(), MSLane::getIndex(), MSE2Collector::initAuxiliaries(), MSLane::incoming_lane_priority_sorter::operator()(), MSE2Collector::recalculateDetectorLength(), and MSE2Collector::selectLanes().
double GUILane::getLoadedEdgeWeight | ( | ) | const |
Returns the loaded weight (effort) for the edge of this lane.
Definition at line 831 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 1979 of file MSLane.cpp.
References MSLane::getEdge(), MSEdge::getPredecessors(), MSLane::myEdge, MSLane::myIncomingLanes, and MSLane::myLogicalPredecessorLane.
Referenced by MSEdge::allowsLaneChanging(), MSVehicle::checkLinkLeader(), drawGL(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSLane::getIncomingLanes(), MSLane::getIncomingLinkState(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLane(), MSLink::lastWasContMajor(), MSLink::setRequestInformation(), MSVehicle::updateBestLanes(), and TraCIServerAPI_Vehicle::vtdMap().
return the (first) predecessor lane from the given edge
Definition at line 2007 of file MSLane.cpp.
References MSLane::getEdge(), and MSLane::myIncomingLanes.
|
inlineinherited |
Returns the inner key/value map.
Definition at line 119 of file Parameterised.h.
References Parameterised::myMap, and Parameterised::writeParams().
Referenced by NBTrafficLightDefinition::compute(), GUIPerson::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), TraCIServerAPI_TLS::processGet(), ROPerson::saveAsXML(), and PointOfInterest::writeXML().
|
protectedinherited |
compute maximum braking distance on this lane
Definition at line 1755 of file MSLane.cpp.
References MSNet::getInstance(), MSVehicleControl::getMaxSpeedFactor(), MSVehicleControl::getMinDeceleration(), MSLane::getSpeedLimit(), and MSNet::getVehicleControl().
Referenced by MSLane::getFollowersOnConsecutive().
|
inherited |
Returns the mean speed on this lane.
Definition at line 2149 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::myMaxSpeed, MSLane::myVehicles, and MSLane::releaseVehicles().
Referenced by getColorValue(), MSLane::getIncomingLanes(), TraCI_Lane::getLastStepMeanSpeed(), getScaleValue(), TraCI_Lane::getTraveltime(), and MSFullExport::writeLane().
|
virtualinherited |
Returns the id of the object as known to microsim.
Definition at line 135 of file GUIGlObject.cpp.
References GUIGlObject::myMicrosimID.
Referenced by GNEAdditional::changeEdge(), GNEAdditional::changeLane(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNEConnection::getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNENetElement::getParentName(), GNELane::getParentName(), GNEVaporizer::getParentName(), GNEVariableSpeedSign::getParentName(), GNERouteProbe::getParentName(), GNEStoppingPlace::getParentName(), GNERerouter::getParentName(), GNEDetector::getParentName(), GNEDetectorE3::getParentName(), GNECalibrator::getParentName(), GNEAdditional::getParentName(), GNEAdditional::getPopUpMenu(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEInspectorFrame::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEAdditional::setAdditionalID(), GNEEdge::setAttribute(), GNENet::splitEdge(), GNEConnectorFrame::updateDescription(), and GNEConnection::updateID().
|
inherited |
return by how much further the leader must be inserted to avoid rear end collisions
Definition at line 1739 of file MSLane.cpp.
References MSVehicle::getCarFollowModel(), MSLane::getFollowersOnConsecutive(), MSCFModel::getMaxDecel(), MSCFModel::getSecureGap(), and MSVehicle::getSpeed().
Referenced by MSLane::freeInsertion(), MSLane::getIncomingLanes(), and MSLane::isInsertionSuccess().
|
inlineinherited |
Return the list of this lane's move reminders.
Definition at line 229 of file MSLane.h.
References MSLane::checkFailure(), MSLane::forceVehicleInsertion(), MSLane::freeInsertion(), MSLane::getFirstVehicleInformation(), MSLane::getLastVehicleInformation(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), max, MSLane::myMoveReminders, MSMoveReminder::NOTIFICATION_DEPARTED, MSLane::resetPartialOccupation(), and MSLane::setPartialOccupation().
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), and MSVehicle::processNextStop().
|
inherited |
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps)
Definition at line 2121 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSLane::getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MSLane::myLength, MSLane::myNettoVehicleLengthSum, MSLane::myPartialVehicles, MSLane::myVehicles, and MSLane::releaseVehicles().
Referenced by getColorValue(), MSLane::getIncomingLanes(), TraCI_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 1360 of file MSLane.cpp.
References MSEdge::EDGEFUNCTION_INTERNAL, MSEdge::getPurpose(), MSEdge::getSuccessors(), and MSLane::myEdge.
Referenced by MSLane::getEdge(), MSVehicle::getRerouteOrigin(), and MSVehicle::updateBestLanes().
|
inherited |
Returns the sum of last step NOx emissions.
Definition at line 2201 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by MSLane::getBruttoVehLenSum(), getColorValue(), TraCI_Lane::getNOxEmission(), getScaleValue(), and MSFullExport::writeLane().
|
inlineinherited |
Returns this lane's numerical id.
Definition at line 418 of file MSLane.h.
References MSLane::myNumericalID.
Referenced by MSPModel_Striping::lane_by_numid_sorter::operator()(), and MSPModel_Striping::walkingarea_path_sorter::operator()().
|
inherited |
return the opposite direction lane for lane changing or 0
Definition at line 2704 of file MSLane.cpp.
References MSLane::dictionary(), and MSLane::myNeighs.
Referenced by MSLaneChanger::changeOpposite(), MSVehicle::executeMove(), MSLane::getCenterOnEdge(), MSLane::getOppositePos(), MSVehicle::planMoveInternal(), MSVehicle::updateBestLanes(), and MSVehicle::updateState().
|
inherited |
Definition at line 2767 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBackPositionOnLane(), MSLane::getFollower(), Named::getID(), MSBaseVehicle::getID(), MSVehicle::getLaneChangeModel(), MSLane::getLeader(), MSVehicleType::getLength(), MSLane::getOppositePos(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSAbstractLaneChangeModel::isOpposite(), and SIMTIME.
Referenced by MSLaneChanger::changeOpposite(), and MSLane::getCenterOnEdge().
|
inherited |
Definition at line 2744 of file MSLane.cpp.
References DEBUG_COND2, MSVehicle::getBestLanesContinuation(), MSLane::getFollower(), Named::getID(), MSBaseVehicle::getID(), MSVehicle::getLaneChangeModel(), MSLane::getLeader(), MSVehicleType::getLength(), MSVehicleType::getMinGap(), MSLane::getOppositePos(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSAbstractLaneChangeModel::isOpposite(), and SIMTIME.
Referenced by MSLaneChanger::changeOpposite(), MSLane::getCenterOnEdge(), and MSVehicle::planMoveInternal().
|
inherited |
return the corresponding position on the opposite lane
Definition at line 2713 of file MSLane.cpp.
References Named::getID(), MSLane::getLength(), MSLane::getOpposite(), and MAX2().
Referenced by MSLCM_LC2013::_wantsChange(), MSLaneChanger::changeOpposite(), MSVehicle::executeMove(), MSLane::getCenterOnEdge(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), and MSVehicle::updateState().
|
inherited |
get the list of outgoing lanes
Definition at line 2070 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLane::getIncomingLanes(), MSRailSignal::init(), and 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 1685 of file MSLane.cpp.
References MSLane::myEdge, and MSEdge::parallelLane().
Referenced by MSLaneChanger::checkChange(), MSLink::computeParallelLink(), MSLane::dictSize(), MSAbstractLaneChangeModel::getShadowLane(), and MSVehicle::planMoveInternal().
|
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 79 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSDevice_SSM::getDetectionRange(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSDevice_SSM::getOutputFilename(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), TraCI_Polygon::getParameter(), TraCI_VehicleType::getParameter(), TraCI_Route::getParameter(), TraCI_POI::getParameter(), TraCI_Lane::getParameter(), TraCI_Vehicle::getParameter(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), MSTriggeredRerouter::getWeight(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_OpenStreetMap::insertEdge(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Person::processGet(), MSSOTLPolicyDesirability::readParameter(), MSDevice_SSM::requestsTrajectories(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), TraCIServerAPI_Vehicle::vtdMap(), and NWWriter_DlrNavteq::writeLinksUnsplitted().
|
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 746 of file GUILane.cpp.
References GUIParameterTableWindow::closeBuilding(), MSLane::getBruttoOccupancy(), MSEdge::getEdgeType(), getLoadedEdgeWeight(), MSLane::getNettoOccupancy(), MSEdge::getPriority(), MSEdge::getRoutingSpeed(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), MSEdge::getStreetName(), getVehicleClassNames(), GUIParameterTableWindow::mkItem(), MSLane::myEdge, MSLane::myLength, MSLane::myPermissions, and MSLane::myWidth.
|
inlinevirtual |
Returns the name of the parent object (if any)
Reimplemented from GUIGlObject.
Definition at line 2680 of file MSLane.cpp.
References DEBUG_COND2, Named::getID(), MSBaseVehicle::getID(), MSVehicle::getPositionOnLane(), MSVehicle::isFrontOnLane(), MSLane::myPartialVehicles, SIMTIME, and toString().
Referenced by MSLane::getIncomingLanes().
|
inlineinherited |
Returns the number of vehicles partially on this lane (for which this lane is not responsible)
Definition at line 368 of file MSLane.h.
References MSLane::myPartialVehicles.
|
inlineinherited |
Returns the vehicle class permissions for this lane.
Definition at line 492 of file MSLane.h.
References MSLane::myPermissions.
Referenced by MSSwarmTrafficLightLogic::allowLine(), TraCI_Lane::getAllowed(), and GUIApplicationWindow::onCmdEditChosen().
|
inherited |
Returns the sum of last step PMx emissions.
Definition at line 2189 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), and MSLane::releaseVehicles().
Referenced by MSLane::getBruttoVehLenSum(), getColorValue(), TraCI_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 711 of file GUILane.cpp.
References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), GUISUMOAbstractView::getPositionInformation(), MSLane::interpolateGeometryPosToLanePos(), MID_ADD_REROUTER, MID_CLOSE_EDGE, MID_CLOSE_LANE, MID_COPY_EDGE_NAME, myAmClosed, MSLane::myPermissionChanges, MSLane::myShape, PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset2D(), toString(), and Position::z().
|
inlineinherited |
Definition at line 928 of file MSLane.h.
References MSLane::myRightmostSublane.
Referenced by MSLCM_SL2015::_wantsChangeSublane().
|
inlineinherited |
Definition at line 924 of file MSLane.h.
References MSLane::myRightSideOnEdge.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLCM_SL2015::checkBlocking(), MSLaneChangerSublane::checkChangeSublane(), MSLane::detectCollisions(), MSVehicle::getCenterOnEdge(), MSLane::getFollowersOnConsecutive(), MSVehicle::getLatOffset(), MSLCM_SL2015::keepLatGap(), MSVehicle::planMoveInternal(), MSLaneChangerSublane::startChangeSublane(), and MSLaneChangerSublane::updateChanger().
|
private |
gets the scaling value according to the current scheme index
Definition at line 996 of file GUILane.cpp.
References firstWaitingTime(), MSLane::getBruttoOccupancy(), MSLane::getCO2Emissions(), MSLane::getCOEmissions(), getEdgeLaneNumber(), MSLane::getElectricityConsumption(), MSLane::getFuelConsumption(), GUIGlObject::getGlID(), 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(), GUIGlObject::getType(), MSNet::getWeightsStorage(), GLO_EDGE, gSelected, GUISelectedStorage::isSelected(), MSEdgeWeightsStorage::knowsTravelTime(), MSLane::myEdge, MSLane::myLength, MSLane::myLengthGeometryFactor, MSLane::myMaxSpeed, and MSEdgeWeightsStorage::retrieveExistingTravelTime().
Referenced by drawGL().
const PositionVector & GUILane::getShape | ( | ) | const |
Definition at line 788 of file GUILane.cpp.
References MSLane::myShape.
Referenced by drawArrows(), drawBikeMarkings(), drawCrossties(), 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 800 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 794 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 476 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(), getColorValue(), MSE2Collector::getEstimatedCurrentVehicleNumber(), TraCI_Lane::getLinks(), MSLane::getMaximumBrakeDist(), TraCI_Lane::getMaxSpeed(), getParameterWindow(), getScaleValue(), MSLCM_LC2013::informFollower(), MSActuatedTrafficLightLogic::init(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData::writeEdge(), and MSFullExport::writeLane().
double GUILane::getStoredEdgeTravelTime | ( | ) | const |
Returns the stored traveltime for the edge of this lane.
Definition at line 818 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 the type of the object as coded in GUIGlObjectType.
Definition at line 148 of file GUIGlObject.cpp.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GNEDetector::drawDetectorIcon(), GNEDetectorE1::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorExit::drawGL(), GNEDetectorE2::drawGL(), GNEBusStop::drawGL(), GNEContainerStop::drawGL(), GNEJunction::drawGL(), GUIMEInductLoop::MyWrapper::drawGL(), GNECrossing::drawGL(), GNEVaporizer::drawGL(), GUIContainer::drawGL(), GNEVariableSpeedSign::drawGL(), GNERouteProbe::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUICalibrator::drawGL(), GUIPerson::drawGL(), GNERerouter::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNEDetectorE3::drawGL(), GNELane::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GNEConnection::drawGL(), GUIParkingArea::drawGL(), GUIE2Collector::MyWrapper::drawGL(), GNECalibrator::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::drawLockIcon(), GUIBaseVehicle::drawOnPos(), GNEAdditional::drawParentAndChildrenConnections(), GNEJunction::getAttribute(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNELane::getColorValue(), GNEJunction::getColorValue(), getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), getScaleValue(), GNESelectorFrame::handleIDs(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnectorFrame::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdHideLFLinkItems(), GUIPerson::GUIPersonPopupMenu::onCmdHideWalkingareaPath(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowAllRoutes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowBestLanes(), GUIPerson::GUIPersonPopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowCurrentRoute(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowFoes(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdShowLFLinkItems(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdShowPhases(), GUIPerson::GUIPersonPopupMenu::onCmdShowWalkingareaPath(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GUIPerson::GUIPersonPopupMenu::onCmdStopTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStopTrack(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLS2Off(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdSwitchTLSLogic(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEJunction::setAttribute(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().
|
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 GUIVehicle, GUIBaseVehicle, GUIMEVehicle, and GUIPerson.
Definition at line 127 of file GUIGlObject.cpp.
References UNUSED_PARAMETER.
Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().
|
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 462 of file MSLane.h.
References SUMOVehicle::getChosenSpeedFactor(), SUMOVehicle::getMaxSpeed(), SUMOVehicle::getVClass(), MIN2(), MSLane::myMaxSpeed, and MSLane::myRestrictions.
Referenced by MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSLaneChanger::changeOpposite(), MSLaneChanger::computeOvertakingTime(), MEVehicle::estimateLeaveSpeed(), MSVehicle::estimateLeaveSpeed(), MSVehicle::executeMove(), MSCFModel_IDM::followSpeed(), TraCI_Vehicle::getAllowedSpeed(), GUIVehicle::getColorValue(), MSLane::getCriticalLeader(), MSLane::getDepartSpeed(), MSLane::getLeadersOnConsecutive(), MSVehicle::getMaxSpeedOnLane(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSLane::isInsertionSuccess(), MSCFModel_Daniel1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_IDM::moveHelper(), MSVehicle::planMoveInternal(), MSVehicle::setBlinkerInformation(), MSCFModel_IDM::stopSpeed(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), 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 352 of file MSLane.h.
References MSLane::myVehicles.
Referenced by MSVehicle::checkRewindLinkLanes(), TraCI_Lane::getLastStepVehicleNumber(), MSVehicle::planMoveInternal(), MSFullExport::writeLane(), and MSXMLRawOut::writeLane().
|
inlineinherited |
Returns the number of vehicles on this lane (including partial occupators)
Definition at line 360 of file MSLane.h.
References MSLane::myPartialVehicles, and MSLane::myVehicles.
|
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 122 of file GUILane.cpp.
References MFXMutex::lock(), myLock, and MSLane::myVehicles.
Referenced by drawGL().
|
inherited |
Returns the overall waiting time on this lane.
Definition at line 2136 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by MSLane::getIncomingLanes(), and TraCI_Lane::getWaitingTime().
|
inlineinherited |
Returns the lane's width.
Definition at line 500 of file MSLane.h.
References MSLane::myWidth.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLaneChanger::continueChange(), drawGL(), MSVehicle::executeMove(), MSVehicle::getCenterOnEdge(), MSVehicle::getLateralOverlap(), MSLink::getLeaderInfo(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::PState::getPosition(), MSVehicle::getRightSideOnLane(), TraCI_Lane::getWidth(), GUIParkingArea::GUIParkingArea(), MSPModel_Striping::initWalkingAreaPaths(), MSLane::insertVehicle(), MSLCM_SL2015::keepLatGap(), MSPModel_Striping::moveInDirection(), MSParkingArea::MSParkingArea(), MSPModel_Striping::numStripes(), MSVehicle::Influencer::postProcessVTD(), TraCIServerAPI_Vehicle::processSet(), GUIVehicle::selectBlockingFoes(), MSLink::setRequestInformation(), and MSLaneChangerSublane::startChangeSublane().
|
protectedinherited |
take action upon collision
Definition at line 1173 of file MSLane.cpp.
References MSVehicle::addStop(), 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, SUMOVehicleParameter::Stop::duration, SUMOVehicleParameter::Stop::endPos, MSVehicle::getCarFollowModel(), Named::getID(), MSBaseVehicle::getID(), MSVehicle::getInfluencer(), MSNet::getInstance(), MSVehicle::getLane(), MSVehicleType::getLength(), MSLane::getLength(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSVehicle::hasInfluencer(), SUMOVehicleParameter::Stop::index, MSVehicle::Influencer::isVTDAffected(), SUMOVehicleParameter::Stop::lane, MAX2(), MIN2(), MSLane::myCollisionAction, MSLane::myCollisionStopTime, SUMOVehicleParameter::Stop::parking, SUMOVehicleParameter::Stop::parkingarea, MSVehicleControl::registerCollision(), SUMOVehicleParameter::Stop::startPos, time2string(), toString(), SUMOVehicleParameter::Stop::triggered, SUMOVehicleParameter::Stop::until, 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 112 of file GUILane.cpp.
References MSLane::incorporateVehicle(), and myLock.
|
staticinherited |
Definition at line 2791 of file MSLane.cpp.
References MSLane::COLLISION_ACTION_NONE, MSLane::COLLISION_ACTION_REMOVE, MSLane::COLLISION_ACTION_TELEPORT, MSLane::COLLISION_ACTION_WARN, OptionsCont::getBool(), OptionsCont::getString(), MSLane::myCheckJunctionCollisions, MSLane::myCollisionAction, MSLane::myCollisionStopTime, and string2time().
Referenced by MSFrame::setMSGlobals(), and MSLane::visit().
|
inherited |
initialized vClass-specific speed limits
Definition at line 195 of file MSLane.cpp.
References MSEdge::getEdgeType(), MSNet::getInstance(), MSNet::getRestrictions(), MSLane::myEdge, and MSLane::myRestrictions.
Referenced by MSLane::MSLane(), and MSLane::setRightSideOnEdge().
|
staticinherited |
Adds the ids of all stored lanes into the given vector.
Definition at line 1403 of file MSLane.cpp.
References MSLane::myDict.
Referenced by MSLane::dictSize(), and TraCI_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 428 of file MSLane.cpp.
References MSLane::basePos(), DEPART_POS_BASE, DEPART_POS_DEFAULT, DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_LAST, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, DEPART_POSLAT_CENTER, DEPART_POSLAT_FREE, DEPART_POSLAT_GIVEN, DEPART_POSLAT_LEFT, DEPART_POSLAT_RANDOM, DEPART_POSLAT_RANDOM_FREE, DEPART_POSLAT_RIGHT, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosLat, SUMOVehicleParameter::departPosLatProcedure, SUMOVehicleParameter::departPosProcedure, MSLane::freeInsertion(), MSLane::getDepartSpeed(), MSLane::getLength(), MSBaseVehicle::getParameter(), MSBaseVehicle::getVehicleType(), MSVehicleType::getWidth(), MSLane::getWidth(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), MSLane::myLength, MSMoveReminder::NOTIFICATION_DEPARTED, and RandHelper::rand().
Referenced by MSLane::getMoveReminders(), and 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 163 of file GUILane.cpp.
References MSLane::integrateNewVehicle(), and myLock.
|
inlineinherited |
Definition at line 454 of file MSLane.h.
References MSLane::myLengthGeometryFactor.
Referenced by getPopUpMenu(), and MSLink::setRequestInformation().
|
inlineinherited |
Definition at line 442 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(), MSStoppingPlace::getWaitPosition(), and MSLaneChangerSublane::startChangeSublane().
|
inlineinherited |
return whether this lane is an acceleration lane
Definition at line 436 of file MSLane.h.
References MSLane::myIsRampAccel.
Referenced by MSLCM_LC2013::informFollower().
|
inherited |
Definition at line 1715 of file MSLane.cpp.
References MSLane::myApproachingLanes.
Referenced by MSLane::getIncomingLanes().
Definition at line 1721 of file MSLane.cpp.
References MSLane::myApproachingLanes.
|
inline |
Definition at line 252 of file GUILane.h.
References MSMoveReminder::NOTIFICATION_DEPARTED.
Referenced by GUIEdge::closeTraffic().
|
inherited |
Returns the information whether the lane is has no vehicle and no partial occupation
Definition at line 1492 of file MSLane.cpp.
References MSLane::myPartialVehicles, and MSLane::myVehicles.
Referenced by MSLane::dictSize().
|
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 535 of file MSLane.cpp.
References ARRIVAL_SPEED_GIVEN, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSRoute::begin(), MSCFModel::brakeGap(), MSLane::checkFailure(), DEBUG_COND2, MSInsertionControl::descheduleDeparture(), MSVehicle::Stop::endPos, MSCFModel::freeSpeed(), MSVehicle::getBackPositionOnLane(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSLane::getEdge(), MSLane::getFollowersOnConsecutive(), Named::getID(), MSBaseVehicle::getID(), MSBaseVehicle::getImpatience(), MSNet::getInsertionControl(), MSNet::getInstance(), MSLane::getLastAnyVehicle(), MSRoute::getLastEdge(), MSLane::getLastVehicleInformation(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getMissingRearGap(), MSVehicle::getNextStop(), MSBaseVehicle::getParameter(), MSBaseVehicle::getRoute(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSVehicle::hasStops(), MSLane::incorporateVehicle(), MSCFModel::insertionFollowSpeed(), MSCFModel::insertionStopSpeed(), MSLane::isLinkEnd(), MSVehicle::Stop::lane, LINKSTATE_ALLWAY_STOP, LINKSTATE_EQUAL, LINKSTATE_MINOR, LINKSTATE_STOP, MAX2(), Named::myID, MSLane::myLength, MSLane::myVehicles, NUMERICAL_EPS, MSLeaderInfo::numFreeSublanes(), MSLeaderInfo::numSublanes(), MSLane::safeInsertionSpeed(), MSVehicle::setTentativeLaneAndPosition(), SIMTIME, MSCFModel::stopSpeed(), MSLane::succLinkSec(), SUMO_const_haltingSpeed, TIME2STEPS, toString(), MSLeaderInfo::toString(), MSVehicle::updateBestLanes(), WRITE_ERROR, and WRITE_WARNING.
Referenced by MSVehicleTransfer::checkInsertions(), MSLane::freeInsertion(), MSLane::getMoveReminders(), MSLane::insertVehicle(), and MSLane::lastInsertion().
|
inherited |
Returns whether the lane pertains to an internal edge
Definition at line 1497 of file MSLane.cpp.
References MSEdge::EDGEFUNCTION_INTERNAL, MSEdge::getPurpose(), and MSLane::myEdge.
Referenced by MSLane::dictSize(), MSLCM_LC2013::distanceAlongNextRoundabout(), drawGL(), MSDevice_SSM::findFoeConflictLane(), MSDevice_SSM::findSurroundingVehicles(), MSLane::getEntryLink(), MSLink::getInternalLengthsAfter(), MSLane::getLinkTo(), MSE2Collector::initAuxiliaries(), MSLane::incoming_lane_priority_sorter::operator()(), MSLane::succLinkSec(), and MSVehicle::updateBestLanes().
|
inherited |
Returns the information whether the given link shows at the end of the list of links (is not valid)
Definition at line 1481 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLaneChanger::checkChange(), MSLane::dictSize(), MSLane::getCriticalLeader(), MSLane::getLeadersOnConsecutive(), TraCI_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 1487 of file MSLane.cpp.
References MSLane::myLinks.
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 73 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), NWWriter_DlrNavteq::getBrunnelType(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getLoggingFrequency(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), MSTriggeredRerouter::getWeight(), and MSDevice_SSM::requestsTrajectories().
|
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 276 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::getMoveReminders(), and MSLane::insertVehicle().
|
inherited |
Definition at line 2081 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, and MSLane::myNettoVehicleLengthSum.
Referenced by MSLane::dictSize(), and 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 |
What about throwing an IOError?
What about throwing an error if something else fails (a vehicle can not be referenced)?
Definition at line 2458 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 MSLane::getCenterOnEdge().
|
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 135 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 129 of file GUILane.cpp.
References myLock, and MFXMutex::unlock().
Referenced by drawGL().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 262 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
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 149 of file GUILane.cpp.
References myLock, and MSLane::removeVehicle().
|
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 184 of file GUILane.cpp.
References myLock, and MSLane::resetPartialOccupation().
|
inherited |
Definition at line 2822 of file MSLane.cpp.
References MSLane::myOriginalPermissions, MSLane::myPermissionChanges, MSLane::myPermissions, and SVCAll.
Referenced by closeTraffic(), MSLane::dictSize(), 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 840 of file MSLane.cpp.
References MSVehicle::getBackPositionOnLane(), MSVehicle::getCarFollowModel(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), MIN2(), and MSLeaderInfo::numSublanes().
Referenced by MSLane::isInsertionSuccess().
|
inherited |
Saves the state of this lane into the given stream.
Basically, a list of vehicle ids
Definition at line 2447 of file MSLane.cpp.
References OutputDevice::closeTag(), Named::getID(), MSLane::myVehicles, OutputDevice::openTag(), SUMO_ATTR_VALUE, SUMO_TAG_LANE, SUMO_TAG_VIEWSETTINGS_VEHICLES, and OutputDevice::writeAttr().
Referenced by MSLane::getCenterOnEdge().
|
private |
sets the color according to the currente settings
Definition at line 844 of file GUILane.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), MSGlobals::gUseMesoSim, GUIVisualizationSettings::laneColorer, MSLane::myEdge, GLHelper::setColor(), setFunctionalColor(), and setMultiColor().
Referenced by drawGL(), and drawMarkings().
|
private |
sets the color according to the current scheme index and some lane function
Definition at line 857 of file GUILane.cpp.
References PositionVector::beginEndAngle(), RGBColor::fromHSV(), MSLane::myShape, GeomHelper::naviDegree(), and GLHelper::setColor().
Referenced by setColor().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 74 of file Named.h.
References Named::myID.
Referenced by Distribution_Parameterized::Distribution_Parameterized(), NBNodeCont::remapIDs(), NBEdgeCont::remapIDs(), NBNodeCont::rename(), and NBEdgeCont::rename().
|
inherited |
Sets a new length for the lane (used by TraCI only)
[in] | val | the new length in m |
Definition at line 1649 of file MSLane.cpp.
References MSLane::myEdge, MSLane::myLength, and MSEdge::recalcCache().
Referenced by MSLane::empty(), and TraCI_Lane::setLength().
|
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 1642 of file MSLane.cpp.
References MSLane::myEdge, MSLane::myMaxSpeed, and MSEdge::recalcCache().
Referenced by MSLane::empty(), and TraCI_Lane::setMaxSpeed().
|
virtualinherited |
Changes the microsimID of the object.
Reimplemented in GNEEdge.
Definition at line 141 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENet::renameJunction(), GNEAdditional::setAdditionalID(), GNELane::setIndex(), GNEEdge::setMicrosimID(), and GNEConnection::updateID().
|
private |
sets multiple colors according to the current scheme index and some lane function
Definition at line 871 of file GUILane.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), GUIPropertySchemeStorage< T >::getScheme(), MAX2(), MSLane::myShape, myShapeColors, and POSITION_EPS.
Referenced by setColor().
|
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 177 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 2810 of file MSLane.cpp.
References MSLane::CHANGE_PERMISSIONS_PERMANENT, MSLane::myOriginalPermissions, MSLane::myPermissionChanges, MSLane::myPermissions, and MSLane::resetPermissions().
Referenced by closeTraffic(), MSLane::dictSize(), TraCI_Lane::setAllowed(), and TraCI_Lane::setDisallowed().
|
protectedinherited |
usually names are prefixed by a type-specific string. this method can be used to change the default
Definition at line 271 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
inlineinherited |
Definition at line 916 of file MSLane.h.
References MSLane::initRestrictions(), MSLane::myRightmostSublane, and MSLane::myRightSideOnEdge.
|
inherited |
sorts myPartialVehicles
Definition at line 1474 of file MSLane.cpp.
References MSLane::myPartialVehicles.
Referenced by MSLane::getCenterOnEdge(), MSLane::integrateNewVehicle(), and MSLane::swapAfterLaneChange().
|
private |
add intermediate points at segment borders
Definition at line 1106 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 1548 of file MSLane.cpp.
References Named::getID(), SUMOVehicle::getID(), MSNet::getInstance(), MSVehicleType::getVehicleClass(), SUMOVehicle::getVehicleType(), MSLane::isInternal(), MSLane::myLinks, SUMOVehicle::succEdge(), time2string(), and WRITE_WARNING.
Referenced by MSLane::appropriate(), MSLaneChanger::checkChange(), MSLane::dictSize(), MSLane::executeMovements(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), TraCI_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 156 of file GUILane.cpp.
References myLock, and MSLane::swapAfterLaneChange().
|
inlinestaticinherited |
Definition at line 1011 of file MSLane.h.
References MSLane::COLLISION_ACTION_TELEPORT, and MSLane::myCollisionAction.
Referenced by MSVehicleControl::getTeleportCount().
|
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 1004 of file MSLane.h.
References TraCIServerAPI_Lane::StoringVisitor::add(), and MSLane::initCollisionOptions().
Referenced by TraCIServer::collectObjectsInRange().
|
inherited |
Definition at line 104 of file Parameterised.cpp.
References OutputDevice::closeTag(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by Parameterised::getMap(), ROVehicle::saveAsXML(), MSVehicle::saveState(), SUMOVTypeParameter::write(), MSDevice_Vehroutes::writeOutput(), and SUMO::Polygon::writeXML().
|
staticinherited |
Definition at line 1020 of file MSLane.h.
Referenced by closeTraffic().
|
staticinherited |
Definition at line 1019 of file MSLane.h.
Referenced by TraCIServerAPI_Edge::processSet(), TraCI_Lane::setAllowed(), TraCI_Lane::setDisallowed(), and MSLane::setPermissions().
|
staticinherited |
Definition at line 77 of file GUIGlObject.h.
Referenced by GUISUMOAbstractView::getTrackedID(), GUISUMOAbstractView::paintGL(), and GUIViewTraffic::stopTrack().
|
private |
state for dynamic lane closings
Definition at line 334 of file GUILane.h.
Referenced by closeTraffic(), and getPopUpMenu().
All direct internal and direct (disregarding internal predecessors) non-internal predecessor lanes of this lane.
Definition at line 1157 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 1147 of file MSLane.h.
Referenced by MSLane::enteredByLaneChange(), MSLane::executeMovements(), MSLane::getBruttoOccupancy(), MSLane::getBruttoVehLenSum(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicle(), MSLane::leftByLaneChange(), and MSLane::removeVehicle().
|
mutableprotectedinherited |
Similar to LogicalPredecessorLane,.
Definition at line 1141 of file MSLane.h.
Referenced by MSLane::getCanonicalPredecessorLane().
|
mutableprotectedinherited |
Main successor lane,.
Definition at line 1144 of file MSLane.h.
Referenced by MSLane::getCanonicalSuccessorLane().
|
staticprotectedinherited |
Static dictionary to associate string-ids with objects.
Definition at line 1192 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 1120 of file MSLane.h.
Referenced by MSLane::appropriate(), MSLane::detectCollisions(), drawGL(), drawMarkings(), getColorValue(), MSLane::getEdge(), getEdgeLaneNumber(), getLoadedEdgeWeight(), MSLane::getLogicalPredecessorLane(), MSLane::getNextNormal(), MSLane::getParallelLane(), getParameterWindow(), getScaleValue(), getStoredEdgeTravelTime(), MSLane::incorporateVehicle(), MSLane::initRestrictions(), MSLane::integrateNewVehicle(), MSLane::isInternal(), setColor(), MSLane::setLength(), and MSLane::setMaxSpeed().
|
mutableprotectedinherited |
followers on all sublanes as seen by vehicles on consecutive lanes (cached)
Definition at line 1162 of file MSLane.h.
Referenced by MSLane::getFirstVehicleInformation().
|
mutableprotectedinherited |
time step for which myFollowerInfo was last updated
Definition at line 1169 of file MSLane.h.
Referenced by MSLane::getFirstVehicleInformation().
|
private |
Half of lane width, for speed-up.
Definition at line 324 of file GUILane.h.
Referenced by drawBikeMarkings(), drawDirectionIndicators(), drawGL(), drawLinkNo(), drawLinkRule(), drawMarkings(), drawTLSLinkNo(), and GUILane().
|
protectedinherited |
The name of the object.
Definition at line 136 of file Named.h.
Referenced by MSE2Collector::addDetectorToLanes(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), MSE2Collector::detectorUpdate(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSLane::getCanonicalPredecessorLane(), MSLane::getCanonicalSuccessorLane(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSDelayBasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSLane::isInsertionSuccess(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), Distribution_Parameterized::toStr(), MSChargingStation::writeChargingStationOutput(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
All direct predecessor lanes.
Definition at line 1135 of file MSLane.h.
Referenced by MSLane::addIncomingLane(), MSLane::getCanonicalPredecessorLane(), MSLane::getFollowersOnConsecutive(), MSLane::getIncomingLanes(), and MSLane::getLogicalPredecessorLane().
|
protectedinherited |
The lane index.
Definition at line 1077 of file MSLane.h.
Referenced by drawMarkings(), and MSLane::getIndex().
|
protectedinherited |
whether this lane is an acceleration lane
Definition at line 1175 of file MSLane.h.
Referenced by MSLane::isAccelLane().
|
mutableprotectedinherited |
leaders on all sublanes as seen by approaching vehicles (cached)
Definition at line 1160 of file MSLane.h.
Referenced by MSLane::getLastVehicleInformation().
|
mutableprotectedinherited |
time step for which myLeaderInfo was last updated
Definition at line 1167 of file MSLane.h.
Referenced by MSLane::getLastVehicleInformation().
|
mutableprotectedinherited |
Definition at line 1164 of file MSLane.h.
Referenced by MSLane::getFirstVehicleInformation(), and MSLane::getLastVehicleInformation().
|
protectedinherited |
Lane length [m].
Definition at line 1114 of file MSLane.h.
Referenced by MSLane::basePos(), MSLane::freeInsertion(), MSLane::getBruttoOccupancy(), getColorValue(), MSLane::getFirstVehicleInformation(), MSLane::getLength(), MSLane::getNettoOccupancy(), getParameterWindow(), getScaleValue(), MSLane::incorporateVehicle(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLane::setLength(), MSLane::setPartialOccupation(), and splitAtSegments().
|
protectedinherited |
precomputed myShape.length / myLength
Definition at line 1172 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 1154 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::getOutgoingLanes(), MSLane::isLinkEnd(), MSLane::succLinkSec(), and MSLane::~MSLane().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 338 of file GUILane.h.
Referenced by detectCollisions(), executeMovements(), getVehiclesSecure(), incorporateVehicle(), integrateNewVehicle(), planMovements(), releaseVehicles(), removeVehicle(), resetPartialOccupation(), setPartialOccupation(), swapAfterLaneChange(), and ~GUILane().
|
mutableprotectedinherited |
Definition at line 1138 of file MSLane.h.
Referenced by MSLane::getLogicalPredecessorLane().
|
protectedinherited |
Lane-wide speedlimit [m/s].
Definition at line 1123 of file MSLane.h.
Referenced by getColorValue(), MSLane::getMeanSpeed(), getScaleValue(), MSLane::getSpeedLimit(), MSLane::getVehicleMaxSpeed(), and MSLane::setMaxSpeed().
|
protectedinherited |
Definition at line 1183 of file MSLane.h.
Referenced by MSLane::addNeigh(), MSLane::getOpposite(), and MSLane::integrateNewVehicle().
|
protectedinherited |
The current length of all vehicles on this lane, excluding their minGaps.
Definition at line 1150 of file MSLane.h.
Referenced by MSLane::enteredByLaneChange(), MSLane::executeMovements(), MSLane::getNettoOccupancy(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicle(), MSLane::leftByLaneChange(), and MSLane::removeVehicle().
|
protectedinherited |
Unique numerical ID (set on reading by netload)
Definition at line 1071 of file MSLane.h.
Referenced by MSLane::getNumericalID().
|
protectedinherited |
The original vClass permissions for this lane (before temporary modifications)
Definition at line 1129 of file MSLane.h.
Referenced by MSLane::resetPermissions(), and MSLane::setPermissions().
|
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 occupancie 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 1102 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::getPartialVehicleNumber(), MSLaneChanger::getRealLeader(), MSLane::getVehicleNumberWithPartials(), MSLane::integrateNewVehicle(), MSLane::isEmpty(), MSLane::AnyVehicleIterator::nextIsMyVehicles(), MSLane::AnyVehicleIterator::operator*(), MSLane::planMovements(), MSLane::resetPartialOccupation(), MSLane::setPartialOccupation(), and MSLane::sortPartialVehicles().
|
protectedinherited |
Definition at line 1186 of file MSLane.h.
Referenced by closeTraffic(), getPopUpMenu(), MSLane::resetPermissions(), and MSLane::setPermissions().
|
protectedinherited |
The vClass permissions for this lane.
Definition at line 1126 of file MSLane.h.
Referenced by MSLane::allowsVehicleClass(), drawAsRailway(), drawAsWaterway(), drawGL(), drawMarkings(), getColorValue(), getParameterWindow(), MSLane::getPermissions(), MSLane::resetPermissions(), and MSLane::setPermissions().
|
private |
Quarter of lane width, for speed-up.
Definition at line 327 of file GUILane.h.
Referenced by drawDirectionIndicators(), drawGL(), drawMarkings(), and GUILane().
|
protectedinherited |
The vClass speed restrictions for this lane.
Definition at line 1132 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 1180 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 1178 of file MSLane.h.
Referenced by MSLane::getCenterOnEdge(), MSLane::getRightSideOnEdge(), and MSLane::setRightSideOnEdge().
|
protectedinherited |
The shape of the lane.
Definition at line 1074 of file MSLane.h.
Referenced by drawGL(), MSLane::geometryPositionAtOffset(), getCenteringBoundary(), getPopUpMenu(), getShape(), MSLane::getShape(), GUILane(), setFunctionalColor(), and setMultiColor().
|
mutableprivate |
The color of the shape parts (cached)
Definition at line 318 of file GUILane.h.
Referenced by drawGL(), GUILane(), and setMultiColor().
|
private |
The lengths of the shape parts.
Definition at line 315 of file GUILane.h.
Referenced by drawBikeMarkings(), drawCrossties(), drawDirectionIndicators(), drawGL(), drawMarkings(), getShapeLengths(), and GUILane().
|
private |
The rotations of the shape parts.
Definition at line 312 of file GUILane.h.
Referenced by drawBikeMarkings(), drawCrossties(), drawDirectionIndicators(), drawGL(), drawMarkings(), getShapeRotations(), and GUILane().
|
private |
the meso segment index for each geometry segment
Definition at line 321 of file GUILane.h.
Referenced by drawGL(), GUILane(), and splitAtSegments().
|
protectedinherited |
Container for lane-changing vehicles. After completion of lane-change- process, the containers will be swapped with myVehicles.
Definition at line 1106 of file MSLane.h.
Referenced by 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 1110 of file MSLane.h.
Referenced by MSLane::empty(), MSLane::executeMovements(), MSLane::integrateNewVehicle(), and MSXMLRawOut::writeLane().
|
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 1090 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::integrateNewVehicle(), MSLane::isEmpty(), MSLane::isInsertionSuccess(), MSLane::loadState(), MSLane::AnyVehicleIterator::nextIsMyVehicles(), MSLane::AnyVehicleIterator::operator*(), MSLane::planMovements(), MSLane::removeVehicle(), MSLane::saveState(), MSLane::swapAfterLaneChange(), MSQueueExport::writeLane(), and MSXMLRawOut::writeLane().
|
protectedinherited |
Lane width [m].
Definition at line 1117 of file MSLane.h.
Referenced by drawArrows(), drawDirectionIndicators(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSLane::getCenterOnEdge(), getParameterWindow(), MSLane::getWidth(), and GUILane().
|
staticinherited |
associates object types with strings
Definition at line 76 of file GUIGlObject.h.