![]() |
SUMO - Simulation of Urban MObility
|
Representation of a lane in the micro simulation (gui-version) More...
#include <GUILane.h>
Public Types | |
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 (SUMOReal length, SUMOReal spacing, SUMOReal halfWidth) const |
draw crossties for railroads or pedestrian crossings More... | |
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const |
Draws additional, user-triggered visualisations. More... | |
void | drawMarkings (const GUIVisualizationSettings &s, SUMOReal scale) const |
draw lane borders and white markings More... | |
void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const |
bool | empty () const |
Returns true if there is not a single vehicle on the lane. More... | |
void | enteredByLaneChange (MSVehicle *v) |
SUMOReal | firstWaitingTime () const |
std::pair< MSVehicle *const, SUMOReal > | getCriticalLeader (SUMOReal dist, SUMOReal seen, SUMOReal 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... | |
MSEdge & | getEdge () const |
Returns the lane's edge. More... | |
SUMOReal | getEdgeLaneNumber () const |
MSVehicle * | getFirstVehicle () const |
std::pair< MSVehicle *const, SUMOReal > | getFollowerOnConsecutive (SUMOReal backOffset, SUMOReal leaderSpeed, SUMOReal leaderMaxDecel) const |
return the follower 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... | |
const MSEdge * | getInternalFollower () const |
Returns the lane's follower if it is an internal lane, the edge of the lane otherwise. More... | |
MSVehicle * | getLastVehicle () const |
returns the last vehicle More... | |
std::pair< MSVehicle *const, SUMOReal > | getLeader (const MSVehicle *veh, const SUMOReal vehPos, bool checkNext) const |
Returns the immediate leader of veh and the distance to veh starting on this lane. More... | |
std::pair< MSVehicle *const, SUMOReal > | getLeaderOnConsecutive (SUMOReal dist, SUMOReal seen, SUMOReal speed, const MSVehicle &veh, const std::vector< MSLane * > &bestLaneConts) const |
Returns the immediate leader and the distance to him. More... | |
const MSLinkCont & | getLinkCont () const |
returns the container with all links !!! More... | |
SUMOReal | 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... | |
SUMOReal | getMissingRearGap (SUMOReal backOffset, SUMOReal leaderSpeed, SUMOReal leaderMaxDecel) const |
return by how much further the leader must be inserted to avoid rear end collisions 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... | |
const PositionVector & | getShape () const |
const std::vector< SUMOReal > & | getShapeLengths () const |
const std::vector< SUMOReal > & | getShapeRotations () const |
SUMOReal | getStoredEdgeTravelTime () const |
Returns the stored traveltime for the edge of this lane. More... | |
GUILane (const std::string &id, SUMOReal maxSpeed, SUMOReal length, MSEdge *const edge, unsigned int numericalID, const PositionVector &shape, SUMOReal width, SVCPermissions permissions, unsigned int index) | |
Constructor. More... | |
bool | isApproachedFrom (MSEdge *const edge) |
bool | isApproachedFrom (MSEdge *const edge, MSLane *const lane) |
bool | isClosed () const |
bool | isEmpty () 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 | setID (const std::string &newID) |
resets the id More... | |
void | setLength (SUMOReal val) |
Sets a new length for the lane (used by TraCI only) More... | |
void | setMaxSpeed (SUMOReal val) |
Sets a new maximum speed for the lane (used by TraCI and MSCalibrator) More... | |
void | setPermissions (SVCPermissions permissions) |
void | visit (const TraCIServerAPI_Lane::StoringVisitor &cont) const |
Callback for visiting the lane when traversing an RTree. More... | |
~GUILane () | |
Destructor. More... | |
Access to vehicles | |
const VehCont & | getVehiclesSecure () const |
Returns the vehicles container; locks it for microsimulation. More... | |
void | releaseVehicles () const |
Allows to use the container for microsimulation again. More... | |
Vehicle movement (longitudinal) | |
void | planMovements (const SUMOTime t) |
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... | |
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, SUMOReal speed, SUMOReal pos, bool recheckNextLanes, MSMoveReminder::Notification notification) |
Tries to insert the given vehicle with the given state (speed and pos) More... | |
bool | checkFailure (MSVehicle *aVehicle, SUMOReal &speed, SUMOReal &dist, const SUMOReal nspeed, const bool patchSpeed, const std::string errorMsg) const |
bool | lastInsertion (MSVehicle &veh, SUMOReal mspeed) |
bool | freeInsertion (MSVehicle &veh, SUMOReal speed, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED) |
Tries to insert the given vehicle on any place. More... | |
void | forceVehicleInsertion (MSVehicle *veh, SUMOReal pos) |
Inserts the given vehicle at the given position. More... | |
Handling vehicles lapping into lanes | |
SUMOReal | setPartialOccupation (MSVehicle *v, SUMOReal leftVehicleLength) |
Sets the information about a vehicle lapping into this lane. More... | |
void | resetPartialOccupation (MSVehicle *v) |
Removes the information about a vehicle lapping into this lane. More... | |
MSVehicle * | getPartialOccupator () const |
Returns the vehicle which laps into this lane. More... | |
SUMOReal | getPartialOccupatorEnd () const |
Returns the position of the in-lapping vehicle's end. More... | |
std::pair< MSVehicle *, SUMOReal > | getLastVehicleInformation () const |
Returns the last vehicle which is still on the lane. More... | |
Access to vehicles | |
unsigned int | getVehicleNumber () const |
Returns the number of vehicles on this lane. More... | |
Atomar value getter | |
size_t | getNumericalID () const |
Returns this lane's numerical id. More... | |
SUMOReal | getLengthGeometryFactor () const |
return shape.length() / myLength More... | |
SUMOReal | interpolateLanePosToGeometryPos (SUMOReal lanePos) const |
const Position | geometryPositionAtOffset (SUMOReal offset) const |
SUMOReal | interpolateGeometryPosToLanePos (SUMOReal geometryPos) const |
SUMOReal | getVehicleMaxSpeed (const SUMOVehicle *const veh) const |
Returns the lane's maximum speed, given a vehicle's speed limit adaptation. More... | |
SUMOReal | getSpeedLimit () const |
Returns the lane's maximum allowed speed. More... | |
SUMOReal | getLength () const |
Returns the lane's length. More... | |
SVCPermissions | getPermissions () const |
Returns the vehicle class permissions for this lane. More... | |
SUMOReal | getWidth () const |
Returns the lane's width. More... | |
int | getIndex () const |
Returns the lane's index. More... | |
Current state retrieval | |
SUMOReal | getMeanSpeed () const |
Returns the mean speed on this lane. More... | |
SUMOReal | getWaitingSeconds () const |
Returns the overall waiting time on this lane. More... | |
SUMOReal | getBruttoOccupancy () const |
Returns the brutto (including minGaps) occupancy of this lane during the last step. More... | |
SUMOReal | getNettoOccupancy () const |
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps) More... | |
SUMOReal | getBruttoVehLenSum () const |
Returns the sum of lengths of vehicles, including their minGaps, which were on the lane during the last step. More... | |
SUMOReal | getCO2Emissions () const |
Returns the sum of last step CO2 emissions. More... | |
SUMOReal | getCOEmissions () const |
Returns the sum of last step CO emissions. More... | |
SUMOReal | getPMxEmissions () const |
Returns the sum of last step PMx emissions. More... | |
SUMOReal | getNOxEmissions () const |
Returns the sum of last step NOx emissions. More... | |
SUMOReal | getHCEmissions () const |
Returns the sum of last step HC emissions. More... | |
SUMOReal | getFuelConsumption () const |
Returns the sum of last step fuel consumption. More... | |
SUMOReal | getElectricityConsumption () const |
Returns the sum of last step electricity consumption. More... | |
SUMOReal | 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 | |
const std::string & | getFullName () const |
Returns the full name appearing in the tool tip. More... | |
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... | |
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 (happens in NETEDIT) More... | |
GUIGlObjectType | getType () const |
Returns the type of the object as coded in GUIGlObjectType. More... | |
Parameter table window I/O | |
void | addParameterTable (GUIParameterTableWindow *w) |
Lets this object know a parameter window showing the object's values was opened. More... | |
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 size_t | dictSize () |
Returns the number of stored lanes. More... | |
template<class RTREE > | |
static void | fill (RTREE &into) |
Fills the given RTree with lane instances. More... | |
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 | 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, unsigned int nRouteSuccs, const MSLane &succLinkSource, const std::vector< MSLane * > &conts) |
Static Public Attributes | |
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 | |
SUMOReal | basePos (const MSVehicle &veh) const |
departure position where the vehicle fits fully onto the lane (if possible) More... | |
SUMOReal | getDepartSpeed (const MSVehicle &veh, bool &patchSpeed) |
SUMOReal | getMaximumBrakeDist () const |
compute maximum braking distance on this lane More... | |
bool | handleCollision (SUMOTime timestep, const std::string &stage, MSVehicle *collider, MSVehicle *victim, const SUMOReal victimRear) |
detect whether there is a collision. then issue warning and add the vehicle to MSVehicleTransfer More... | |
virtual void | incorporateVehicle (MSVehicle *veh, SUMOReal pos, SUMOReal speed, const MSLane::VehCont::iterator &at, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED) |
Inserts the vehicle into this lane, and informs it about entering the network. More... | |
void | setPrefix (const std::string &prefix) |
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 |
SUMOReal | myBruttoVehicleLengthSum |
The current length of all vehicles on this lane, including their minGaps. More... | |
MSEdge *const | myEdge |
The lane's edge, for routing only. More... | |
std::string | myID |
The name of the object. More... | |
std::vector< IncomingLaneInfo > | myIncomingLanes |
int | myIndex |
The lane index. More... | |
MSVehicle * | myInlappingVehicle |
The vehicle which laps into this lane. More... | |
SUMOReal | myInlappingVehicleEnd |
End position of a vehicle which laps into this lane. More... | |
SUMOReal | myLength |
Lane length [m]. More... | |
const SUMOReal | myLengthGeometryFactor |
MSLinkCont | myLinks |
MSLane * | myLogicalPredecessorLane |
SUMOReal | myMaxSpeed |
Lane-wide speedlimit [m/s]. More... | |
SUMOReal | myNettoVehicleLengthSum |
The current length of all vehicles on this lane, excluding their minGaps. More... | |
size_t | myNumericalID |
Unique numerical ID (set on reading by netload) More... | |
SVCPermissions | myPermissions |
The vClass permissions for this lane. More... | |
const std::map< SUMOVehicleClass, SUMOReal > * | myRestrictions |
The vClass speed restrictions for this lane. More... | |
PositionVector | myShape |
The shape of the lane. More... | |
VehCont | myTmpVehicles |
std::vector< MSVehicle * > | myVehBuffer |
VehCont | myVehicles |
The lane's vehicles. 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. More... | |
const SUMOReal | 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, SUMOReal x1, SUMOReal x2) const |
void | drawLinkRules (const GUIVisualizationSettings &s, const GUINet &net) const |
void | drawTextAtEnd (const std::string &text, const PositionVector &shape, SUMOReal x, const GUIVisualizationTextSettings &settings) const |
void | drawTLSLinkNo (const GUIVisualizationSettings &s, const GUINet &net) const |
SUMOReal | getColorValue (size_t activeScheme) const |
gets the color value according to the current scheme index More... | |
SUMOReal | getScaleValue (size_t 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 (size_t 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... | |
Private Attributes | |
bool | myAmClosed |
state for dynamic lane closings More... | |
SUMOReal | myHalfLaneWidth |
Half of lane width, for speed-up. More... | |
MFXMutex | myLock |
The mutex used to avoid concurrent updates of the vehicle buffer. More... | |
SVCPermissions | myOriginalPermissions |
SUMOReal | myQuarterLaneWidth |
Quarter of lane width, for speed-up. More... | |
std::vector< RGBColor > | myShapeColors |
The color of the shape parts (cached) More... | |
std::vector< SUMOReal > | myShapeLengths |
The lengths of the shape parts. More... | |
std::vector< SUMOReal > | myShapeRotations |
The rotations of the shape parts. 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 |
GUILane::GUILane | ( | const std::string & | id, |
SUMOReal | maxSpeed, | ||
SUMOReal | length, | ||
MSEdge *const | edge, | ||
unsigned int | numericalID, | ||
const PositionVector & | shape, | ||
SUMOReal | width, | ||
SVCPermissions | permissions, | ||
unsigned int | index | ||
) |
Constructor.
[in] | id | The lane's id |
[in] | maxSpeed | The speed allowed on this lane |
[in] | length | The lane's length |
[in] | edge | The edge this lane belongs to |
[in] | numericalID | The numerical id of the lane |
[in] | shape | The shape of the lane |
[in] | width | The width of the lane |
[in] | permissions | Encoding of vehicle classes that may drive on this lane |
Definition at line 73 of file GUILane.cpp.
References Position::distanceTo2D(), myHalfLaneWidth, myQuarterLaneWidth, MSLane::myShape, myShapeColors, myShapeLengths, myShapeRotations, MSLane::myWidth, RAD2DEG, SUMOReal, Position::x(), and Position::y().
GUILane::~GUILane | ( | ) |
Destructor.
Definition at line 96 of file GUILane.cpp.
References MFXMutex::locked(), myLock, and MFXMutex::unlock().
|
inherited |
Definition at line 1007 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 997 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 108 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 115 of file MSLane.cpp.
References MSLane::myMoveReminders, and MSLane::myVehicles.
Referenced by MSMoveReminder::MSMoveReminder().
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 53 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by SUMORouteHandler::addParam(), NLHandler::addParam(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NBTrafficLightDefinition::compute(), NIImporter_OpenDrive::loadNetwork(), NIImporter_MATSim::EdgesHandler::myStartElement(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_TLS::processSet(), TraCIServerAPI_POI::processSet(), TraCIServerAPI_Polygon::processSet(), and TraCIServerAPI_Lane::processSet().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 59 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 67 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Lets this object know a parameter window showing the object's values was opened.
[in] | w | The opened parameter window |
Definition at line 198 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
inlineinherited |
Adds this object to the given container.
Definition at line 126 of file Named.h.
References Named::StoringVisitor::add().
|
inlineinherited |
Definition at line 576 of file MSLane.h.
References MSLane::addIncomingLane(), and MSLane::myPermissions.
Referenced by MSVehicle::addStop(), MSEdge::allowedLanes(), MSPModel_NonInteracting::PState::getPosition(), and MSVehicle::updateBestLanes().
|
virtualinherited |
Returns the information whether this lane may be used to continue the current route
Definition at line 830 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().
departure position where the vehicle fits fully onto the lane (if possible)
Definition at line 318 of file MSLane.cpp.
References MSVehicleType::getLength(), MSBaseVehicle::getVehicleType(), MIN2(), MSLane::myLength, and POSITION_EPS.
Referenced by MSLane::insertVehicle(), MSLane::lastInsertion(), and MSLane::visit().
|
protectedinherited |
Builds an entry which allows to center to the object.
Definition at line 127 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
Definition at line 136 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds the header.
Definition at line 117 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GNECrossing::getPopUpMenu(), GNEInternalLane::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::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 177 of file GUIGlObject.cpp.
References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GNENet::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
Definition at line 146 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(), GUIContainer::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GNELane::getPopUpMenu(), GNEJunction::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GNEEdge::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIContainerStop::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
Definition at line 189 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 159 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(), GUIBusStop::getPopUpMenu(), GUIChargingStation::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the type parameter window.
Definition at line 168 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWTYPEPARS.
Referenced by GUIBaseVehicle::getPopUpMenu().
|
inherited |
Definition at line 323 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 795 of file MSLane.cpp.
References MSLane::myDict.
Referenced by MSNet::clearAll(), and MSLane::getEdge().
|
inherited |
Clears the parameter map.
Definition at line 91 of file Parameterised.cpp.
References Parameterised::myMap.
void GUILane::closeTraffic | ( | bool | rebuildAllowed = true | ) |
close this lane for traffic
Definition at line 1019 of file GUILane.cpp.
References MSGlobals::gCheckRoutes, MSLane::getEdge(), myAmClosed, myOriginalPermissions, MSLane::myPermissions, MSEdge::rebuildAllowedLanes(), and SVC_AUTHORITY.
Referenced by GUIEdge::closeTraffic(), and GUIViewTraffic::onCmdCloseLane().
|
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 164 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 772 of file MSLane.cpp.
References MSLane::myDict.
Referenced by NLHandler::addConnection(), NLHandler::addLane(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSLane::getEdge(), NLTriggerBuilder::getLane(), NLDetectorBuilder::getLaneChecking(), NLShapeHandler::getLanePos(), TraCIServerAPI_Lane::getShape(), MSPedestrianPushButton::loadPushButtons(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), NLHandler::parseLanes(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), and TraCIServerAPI_Lane::processSet().
|
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 784 of file MSLane.cpp.
References MSLane::myDict.
|
inlinestaticinherited |
Returns the number of stored lanes.
Definition at line 510 of file MSLane.h.
References MSLane::enteredByLaneChange(), MSLane::fill(), MSLane::getFirstVehicle(), MSLane::getLastVehicle(), MSLane::getParallelLane(), MSLane::insertIDs(), MSLane::isEmpty(), MSLane::isLinkEnd(), MSLane::leftByLaneChange(), MSLane::myDict, MSLane::removeVehicle(), and MSLane::succLinkSec().
|
private |
Definition at line 331 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, SUMOReal, Position::x(), and Position::y().
Referenced by drawGL().
|
private |
whether to draw this lane as a railway
Definition at line 996 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 1002 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 606 of file GUILane.cpp.
References getShape(), GLO_JUNCTION, myHalfLaneWidth, myShapeLengths, myShapeRotations, SUMO_const_laneOffset, and SUMOReal.
Referenced by drawGL().
draw crossties for railroads or pedestrian crossings
Definition at line 631 of file GUILane.cpp.
References getShape(), myShapeLengths, myShapeRotations, and SUMOReal.
Referenced by drawGL().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 417 of file GUILane.cpp.
References GLHelper::debugVertices(), drawArrows(), drawAsRailway(), drawAsWaterway(), drawBikeMarkings(), GLHelper::drawBoxLines(), GUIVisualizationSettings::drawCrossingsAndWalkingareas, drawCrossties(), GLHelper::drawFilledPoly(), GLHelper::drawFilledPolyTesselated(), 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(), 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(), GLO_JUNCTION, MSGlobals::gUseMesoSim, MSLink::havePriority(), isWaterway(), GUIVisualizationSettings::laneScaler, GUIVisualizationSettings::laneWidthExaggeration, MAX2(), GUIVisualizationSizeSettings::minSize, MSLane::myEdge, myHalfLaneWidth, MSLane::myPermissions, myQuarterLaneWidth, MSLane::myShape, myShapeColors, myShapeLengths, myShapeRotations, releaseVehicles(), GUIVisualizationSettings::scale, setColor(), GUIVisualizationTextSettings::show, GUIVisualizationSettings::showLane2Lane, GUIVisualizationSettings::showLinkDecals, SUMOReal, SVC_BICYCLE, SVC_PEDESTRIAN, and GUIVisualizationSettings::vehicleSize.
Referenced by GUIEdge::drawGL().
|
inlinevirtualinherited |
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 203 of file GUIGlObject.h.
References SUMOReal, and UNUSED_PARAMETER.
|
private |
Definition at line 398 of file GUILane.cpp.
References GLHelper::drawTriangleAtEnd(), getLinkColor(), getShape(), MSLane::getShape(), MSLane::myLinks, GLHelper::setColor(), SUMOReal, Position::x(), and Position::y().
Referenced by drawGL().
|
private |
helper methods
Definition at line 172 of file GUILane.cpp.
References GUIVisualizationSettings::drawLinkJunctionIndex, 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(), SUMOReal, and toString().
Referenced by drawGL().
|
private |
Definition at line 275 of file GUILane.cpp.
References drawAsRailway(), drawAsWaterway(), GUIGlObject::getGlID(), 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(), SUMOReal, Position::x(), and Position::y().
Referenced by drawLinkRules().
|
private |
Definition at line 247 of file GUILane.cpp.
References drawLinkRule(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSNet::getInstance(), MSLane::getLogicalPredecessorLane(), getShape(), MSNet::lefthand(), MSLane::myLinks, MSLane::myWidth, PositionVector::reverse(), and SUMOReal.
Referenced by drawGL().
void GUILane::drawMarkings | ( | const GUIVisualizationSettings & | s, |
SUMOReal | scale | ||
) | const |
draw lane borders and white markings
Definition at line 568 of file GUILane.cpp.
References GLHelper::drawBoxLines(), MSNet::getInstance(), MSEdge::getLanes(), getShape(), getShapeLengths(), getShapeRotations(), GLO_EDGE, MSGlobals::gUseMesoSim, MSNet::lefthand(), MIN2(), MSLane::myEdge, myHalfLaneWidth, MSLane::myIndex, MSLane::myPermissions, myQuarterLaneWidth, myShapeLengths, myShapeRotations, setColor(), SUMO_const_laneOffset, and SUMOReal.
Referenced by drawGL().
|
inherited |
Definition at line 225 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), and GUIInductLoop::MyWrapper::drawGL().
|
private |
Definition at line 234 of file GUILane.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), RAD2DEG, GUIVisualizationTextSettings::size, SUMOReal, Position::x(), and Position::y().
Referenced by drawLinkNo(), and drawTLSLinkNo().
|
private |
Definition at line 200 of file GUILane.cpp.
References GUIVisualizationSettings::drawLinkTLIndex, drawTextAtEnd(), PositionVector::extrapolate(), MSLinkContHelper::getConnectingLink(), MSLane::getEdge(), MSNet::getInstance(), GUINet::getLinkTLIndex(), MSLane::getLogicalPredecessorLane(), getShape(), MSNet::lefthand(), myHalfLaneWidth, MSLane::myLinks, MSLane::myWidth, PositionVector::reverse(), SUMOReal, and toString().
Referenced by drawGL().
|
inlineinherited |
Returns true if there is not a single vehicle on the lane.
Definition at line 449 of file MSLane.h.
References MSLane::myVehBuffer, MSLane::myVehicles, MSLane::setLength(), MSLane::setMaxSpeed(), and SUMOReal.
Referenced by MSQueueExport::writeLane().
|
inherited |
Definition at line 1377 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, and MSLane::myNettoVehicleLengthSum.
Referenced by MSLane::dictSize(), and MSAbstractLaneChangeModel::startLaneChangeManeuver().
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 136 of file GUILane.cpp.
References MSLane::executeMovements(), and myLock.
|
staticinherited |
Fills the given RTree with lane instances.
Definition at line 812 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().
SUMOReal GUILane::firstWaitingTime | ( | ) | const |
Definition at line 743 of file GUILane.cpp.
References MSLane::myVehicles, and SUMOReal.
Referenced by getColorValue(), and getScaleValue().
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 |
Definition at line 521 of file MSLane.cpp.
References MSLane::getDepartSpeed(), MSVehicle::getSpeed(), MSBaseVehicle::hasDeparted(), MSLane::incorporateVehicle(), MSLane::myVehicles, SUMOReal, and MSVehicle::updateBestLanes().
Referenced by 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 163 of file MSLane.cpp.
References MSVehicle::getCarFollowModel(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getMissingRearGap(), MSLane::getPartialOccupator(), MSLane::getPartialOccupatorEnd(), MSVehicle::getPositionOnLane(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), MSLane::isInsertionSuccess(), MIN2(), MSLane::myLength, MSLane::myVehicles, MSMoveReminder::NOTIFICATION_TELEPORT, POSITION_EPS, and SUMOReal.
Referenced by MSVehicleTransfer::checkInsertions(), MSLane::getMoveReminders(), and MSLane::insertVehicle().
Definition at line 339 of file MSLane.h.
References MSLane::interpolateLanePosToGeometryPos(), MSLane::myShape, and PositionVector::positionAtOffset().
Referenced by GUIE3Collector::MyWrapper::buildDefinition(), MSVehicle::computeAngle(), GUIVehicle::drawAction_drawRailCarriages(), GUIBaseVehicle::drawGL(), GUIEdge::drawMesoVehicles(), 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 1395 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSLane::getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, MSLane::myInlappingVehicle, MSLane::myInlappingVehicleEnd, MSLane::myLength, MSLane::myVehicles, MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getParameterWindow(), getScaleValue(), and MSEdge::insertVehicle().
|
inherited |
Returns the sum of lengths of vehicles, including their minGaps, which were on the lane during the last step.
Definition at line 1425 of file MSLane.cpp.
References MSLane::myBruttoVehicleLengthSum, and SUMOReal.
Referenced by MSVehicle::checkRewindLinkLanes(), and MSLane::getIncomingLanes().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 708 of file GUILane.cpp.
References Boundary::add(), Boundary::grow(), and MSLane::myShape.
|
inherited |
Returns the sum of last step CO2 emissions.
Definition at line 1460 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
inherited |
Returns the sum of last step CO emissions.
Definition at line 1472 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
private |
gets the color value according to the current scheme index
Definition at line 826 of file GUILane.cpp.
References firstWaitingTime(), MSDevice_Routing::getAssumedSpeed(), MSLane::getBruttoOccupancy(), MSLane::getCO2Emissions(), MSLane::getCOEmissions(), MSLane::getEdge(), getEdgeLaneNumber(), MSLane::getElectricityConsumption(), MSLane::getFuelConsumption(), GUIGlObject::getGlID(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHCEmissions(), MSNet::getInstance(), MSLane::getLength(), getLoadedEdgeWeight(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getNOxEmissions(), MSLane::getPMxEmissions(), MSEdge::getPriority(), 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(), SUMOReal, 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 1229 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSLane::getLastVehicle(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getPartialOccupator(), MSLane::getPartialOccupatorEnd(), MSVehicle::getPositionOnLane(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSCFModel::insertionFollowSpeed(), MSLane::isLinkEnd(), max, MAX2(), NUMERICAL_EPS, MSLane::succLinkSec(), SUMOReal, 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 1384 of file MSLane.cpp.
References MSLane::myLinks, and SUMOReal.
Referenced by MSLane::getIndex().
Definition at line 246 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(), RandHelper::rand(), and SUMOReal.
Referenced by MSLane::forceVehicleInsertion(), MSLane::insertVehicle(), and MSLane::visit().
|
inlineinherited |
Returns the lane's edge.
Definition at line 467 of file MSLane.h.
References MSLane::clear(), MSLane::dictionary(), MSLane::getInternalFollower(), and MSLane::myEdge.
Referenced by MSLCM_JE2013::_patchSpeed(), MSLCM_LC2013::_patchSpeed(), MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), TraCIServerAPI_Lane::StoringVisitor::add(), MSLane::addApproachingLane(), MSRouteHandler::addStop(), MSVehicle::addStop(), MSEdge::allowedLanes(), MSSwarmTrafficLightLogic::allowLine(), MSSOTLE2Sensors::buildSensorForLane(), MSEdge::changeLanes(), MSLaneChanger::checkChange(), MSVehicle::checkRewindLinkLanes(), MSEdge::closeBuilding(), closeTraffic(), MSDevice_Tripinfo::computeLengthAndDuration(), GUIDetectorBuilder::createInductLoop(), NLDetectorBuilder::createInductLoop(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSVehicle::enterLaneAtMove(), MSVehicle::executeMove(), MSLane::executeMovements(), MS_E2_ZS_CollectorOverLanes::extendTo(), MSVehicle::getBestLanesContinuation(), getColorValue(), MSVehicle::getDistanceToPosition(), MSVehicle::getLaneIndex(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLogicalPredecessorLane(), MSPModel_Striping::PState::getNextEdge(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextLaneObstacles(), MSVehicle::getPosition(), MSStoppingPlace::hasAccess(), MSVehicle::Influencer::implicitDeltaPosVTD(), MSVehicle::Influencer::implicitSpeedVTD(), MSVehicle::influenceChangeDecision(), MSRailSignal::init(), MSLane::isInsertionSuccess(), MSJunction::isLeader(), MSLink::lastWasContMajor(), MESegment::limitedControlOverride(), MSPedestrianPushButton::loadPushButtons(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), GUIViewTraffic::onCmdAddRerouter(), GUIViewTraffic::onCmdCloseEdge(), MSLane::edge_finder::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), MSRouteHandler::parseWalkPositions(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSContainer::MSContainerStage_Driving::proceed(), MSPerson::MSPersonStage_Driving::proceed(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Lane::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), TraCIServerAPI_Lane::processSet(), MSPModel_Striping::PState::PState(), MSVehicle::resumeFromStopping(), MSLink::setRequestInformation(), MSLane::succLinkSec(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSFCDExport::write(), and MSLink::writeApproaching().
SUMOReal GUILane::getEdgeLaneNumber | ( | ) | const |
Definition at line 749 of file GUILane.cpp.
References MSEdge::getLanes(), MSLane::myEdge, and SUMOReal.
Referenced by getColorValue(), and getScaleValue().
|
inherited |
Returns the sum of last step electricity consumption.
Definition at line 1532 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), and MSFullExport::writeLane().
|
inherited |
Definition at line 889 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by MSLane::dictSize(), and MSLane::getFollowerOnConsecutive().
|
inherited |
return the follower with the largest missing rear gap among all predecessor lanes (within dist)
Definition at line 1070 of file MSLane.cpp.
References MSLane::getFirstVehicle(), MSLane::getIncomingLanes(), MSLane::getLength(), MSLane::getMaximumBrakeDist(), MSVehicleType::getMinGap(), MSLane::getPartialOccupator(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSLane::IncomingLaneInfo::lane, MSLane::IncomingLaneInfo::length, max, MAX2(), MSLane::myIncomingLanes, SUMOReal, and MSLane::IncomingLaneInfo::viaLink.
Referenced by MSLane::getIncomingLanes(), and MSLane::getMissingRearGap().
|
inherited |
Returns the sum of last step fuel consumption.
Definition at line 1520 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
inlineinherited |
Returns the full name appearing in the tool tip.
Definition at line 108 of file GUIGlObject.h.
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().
|
inlineinherited |
Returns the numerical id of the object.
Definition at line 123 of file GUIGlObject.h.
Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GUIMEInductLoop::MyWrapper::drawGL(), GNEInternalLane::drawGL(), GNECrossing::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GNEEdge::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GNEPoly::drawGL(), GUIEdge::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), drawLinkRule(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GUIContainer::getColorValue(), GNELane::getColorValue(), GUIPerson::getColorValue(), getColorValue(), GNEJunction::getColorValue(), GUIEdge::getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), GUIEdge::getScaleValue(), getScaleValue(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelector::handleIDs(), GNETLSEditor::handleMultiChange(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEConnector::onCmdSelectDeadStarts(), GNEConnector::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().
|
inherited |
Returns the sum of last step noise emissions.
Definition at line 1544 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), HelpersHarmonoise::sum(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
inherited |
Returns the sum of last step HC emissions.
Definition at line 1508 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
inlineinherited |
Returns the id.
Definition at line 65 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::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(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNEConnector::buildIinternalLanes(), GNETLSEditor::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(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), NIVissimDistrictConnection::dict_BuildDistricts(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::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(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), MSNet::getChargingStationID(), NBEdge::getConnection(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), GNEEdge::getDest(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), MSE2Collector::getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), GNEEdge::getSource(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollision(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), IntermodalNetwork< E, L, N, V >::IntermodalNetwork(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), 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(), MSE2Collector::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE2Collector::notifyMove(), GUIViewTraffic::onGamingClick(), 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()(), 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_JE2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice_Battery::setActualBatteryCapacity(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChrgPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditor::updateDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_JE2013::wantsChange(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), NBSign::writeAsPOI(), 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_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), MSInductLoop::writeTypedXMLOutput(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 58 of file Named.h.
Referenced by operator<<(), and toString().
|
inlineinherited |
Definition at line 589 of file MSLane.h.
References MSLane::addApproachingLane(), MSLane::getBruttoOccupancy(), MSLane::getBruttoVehLenSum(), MSLane::getCO2Emissions(), MSLane::getCOEmissions(), MSLane::getCriticalLeader(), MSLane::getElectricityConsumption(), MSLane::getFollowerOnConsecutive(), MSLane::getFuelConsumption(), MSLane::getHarmonoise_NoiseEmissions(), MSLane::getHCEmissions(), MSLane::getIncomingLinkState(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLogicalPredecessorLane(), MSLane::getMeanSpeed(), MSLane::getMissingRearGap(), MSLane::getNettoOccupancy(), MSLane::getNOxEmissions(), MSLane::getOutgoingLanes(), MSLane::getPMxEmissions(), MSLane::getWaitingSeconds(), MSLane::isApproachedFrom(), MSLane::loadState(), MSLane::myIncomingLanes, MSLane::saveState(), and SUMOReal.
Referenced by MSLink::getApproachingLane(), MSLane::getFollowerOnConsecutive(), MSPModel_Striping::getNextWalkingArea(), MSRailSignal::init(), and MSLink::setRequestInformation().
|
inherited |
get the state of the link from the logical predecessor to this lane
Definition at line 1348 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 398 of file MSLane.h.
References MSLane::appropriate(), MSLane::detectCollisions(), MSLane::executeMovements(), MSLane::getCrossingIndex(), MSLane::getLinkCont(), MSLane::integrateNewVehicle(), MSLane::myIndex, and MSLane::planMovements().
Referenced by drawLinkNo(), and MSLink::getZipperSpeed().
|
inherited |
Returns the lane's follower if it is an internal lane, the edge of the lane otherwise.
Definition at line 761 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 last vehicle
Definition at line 880 of file MSLane.cpp.
References MSLane::myVehicles.
Referenced by MSVehicle::checkRewindLinkLanes(), MSLane::dictSize(), MSLane::getCriticalLeader(), MSLane::isInsertionSuccess(), and MSLink::maybeOccupied().
Returns the last vehicle which is still on the lane.
The information about the last vehicle in this lane's que is returned. If there is no such vehicle, the information about the vehicle which laps into this lane is returned. If there is no such vehicle, the first returned member is 0.
Definition at line 563 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSLane::myInlappingVehicle, MSLane::myInlappingVehicleEnd, MSLane::myVehicles, and SUMOReal.
Referenced by MSLane::getPartialOccupatorEnd(), 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] | checkNext | Whether lanes after this one shall be checked |
Definition at line 1135 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSLane::getLeaderOnConsecutive(), MSLane::getLength(), MSVehicleType::getMinGap(), MSLane::getPartialOccupator(), MSLane::getPartialOccupatorEnd(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSLane::myVehicles, NUMERICAL_EPS, and SUMOReal.
Referenced by MSLaneChanger::checkChange(), MSLane::getIncomingLanes(), and MSVehicle::planMoveInternal().
|
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 1166 of file MSLane.cpp.
References MSCFModel::brakeGap(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSBaseVehicle::getImpatience(), MSNet::getInstance(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getPartialOccupator(), MSLane::getPartialOccupatorEnd(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MAX2(), NUMERICAL_EPS, MSLane::succLinkSec(), and TIME2STEPS.
Referenced by MSLane::getIncomingLanes(), MSLane::getLeader(), and MSVehicle::getLeader().
|
inlineinherited |
Returns the lane's length.
Definition at line 375 of file MSLane.h.
References MSLane::myLength.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), NLTriggerBuilder::addAccess(), NLHandler::addConnection(), MSLane::addIncomingLane(), MSVehicle::addStop(), GUI_E2_ZS_CollectorOverLanes::buildCollector(), MS_E2_ZS_CollectorOverLanes::buildCollector(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), MSLaneChanger::checkChange(), MSVehicle::checkRewindLinkLanes(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), MSPModel_Striping::PState::distToLaneEnd(), GUIVehicle::drawAction_drawRailCarriages(), MSVehicle::executeMove(), MSLane::executeMovements(), MS_E2_ZS_CollectorOverLanes::extendTo(), MSVehicle::fixPosition(), MSLane::freeInsertion(), getColorValue(), MSLane::getCriticalLeader(), MSVehicle::getDistanceToPosition(), MSE2Collector::getEstimatedCurrentVehicleNumber(), MSE2Collector::getEstimateQueueLength(), MSLane::getFollowerOnConsecutive(), TraCIServerAPI_Simulation::getLaneChecking(), NLShapeHandler::getLanePos(), MSLane::getLeader(), MSVehicle::getLeader(), MSLane::getLeaderOnConsecutive(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), MSDevice_Battery::getPropEnergy(), MSVehicle::getRerouteOrigin(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpaceTillLastStanding(), MSActuatedTrafficLightLogic::init(), MS_E2_ZS_CollectorOverLanes::init(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLink::maybeOccupied(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), NLTriggerBuilder::parseAndBuildChargingStation(), NLTriggerBuilder::parseAndBuildStoppingPlace(), MSVehicle::planMoveInternal(), MSVehicle::Influencer::postProcessVTD(), TraCIServerAPI_Lane::processGet(), GUIVehicle::selectBlockingFoes(), MSVehicle::setBlinkerInformation(), MSLink::setRequestInformation(), MSVehicle::unsafeLinkAhead(), MSVehicle::updateBestLanes(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSLink::writeApproaching(), MSMeanData::writeEdge(), and MSQueueExport::writeLane().
|
inlineinherited |
return shape.length() / myLength
Definition at line 327 of file MSLane.h.
References MSLane::myLengthGeometryFactor.
|
inherited |
returns the container with all links !!!
Definition at line 947 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSEdge::changeLanes(), MSLink::getApproachingLane(), MSVehicle::getBestLanesContinuation(), MSLinkContHelper::getConnectingLink(), MSLane::getIndex(), MESegment::getLink(), MSPModel_Striping::getNextLane(), MSPModel_Striping::getNextWalkingArea(), MSRailSignal::init(), MSRightOfWayJunction::postloadInit(), TraCIServerAPI_Lane::processGet(), MSVehicle::setBlinkerInformation(), MSLink::setRequestInformation(), MSVehicle::updateBestLanes(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSLink::writeApproaching().
SUMOReal GUILane::getLoadedEdgeWeight | ( | ) | const |
Returns the loaded weight (effort) for the edge of this lane.
Definition at line 768 of file GUILane.cpp.
References MSNet::getInstance(), MSNet::getWeightsStorage(), MSEdgeWeightsStorage::knowsEffort(), MSLane::myEdge, MSEdgeWeightsStorage::retrieveExistingEffort(), STEPS2TIME, and SUMOReal.
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 1308 of file MSLane.cpp.
References MSLane::getEdge(), MSEdge::getIncomingEdges(), MSLane::myEdge, MSLane::myIncomingLanes, and MSLane::myLogicalPredecessorLane.
Referenced by MSEdge::changeLanes(), drawGL(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSLane::getIncomingLanes(), MSLane::getIncomingLinkState(), MSPModel_Striping::getNextLane(), MSLink::lastWasContMajor(), MSVehicle::planMoveInternal(), MSLink::setRequestInformation(), MSAbstractLaneChangeModel::startLaneChangeManeuver(), MSVehicle::updateBestLanes(), TraCIServerAPI_Vehicle::vtdMap(), and MSLink::writeApproaching().
return the (first) predecessor lane from the given edge
Definition at line 1336 of file MSLane.cpp.
References MSLane::getEdge(), and MSLane::myIncomingLanes.
|
inlineinherited |
Returns the inner key/value map.
Definition at line 107 of file Parameterised.h.
References Parameterised::myMap.
Referenced by NBTrafficLightDefinition::compute(), GUIPerson::getParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), GUIVehicle::getTypeParameterWindow(), TraCIServerAPI_TLS::processGet(), ROVehicle::saveAsXML(), ROPerson::saveAsXML(), SUMOVTypeParameter::write(), PointOfInterest::writeXML(), and SUMO::Polygon::writeXML().
|
protectedinherited |
compute maximum braking distance on this lane
Definition at line 1061 of file MSLane.cpp.
References MSNet::getInstance(), MSVehicleControl::getMaxSpeedFactor(), MSVehicleControl::getMinDeceleration(), MSLane::getSpeedLimit(), MSNet::getVehicleControl(), and SUMOReal.
Referenced by MSLane::getFollowerOnConsecutive(), and MSLane::visit().
|
inherited |
Returns the mean speed on this lane.
Definition at line 1444 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::myMaxSpeed, MSLane::myVehicles, MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 167 of file GUIGlObject.h.
Referenced by GNETLSEditor::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNELane::getAttribute(), GNEPoly::getAttribute(), GNEJunction::getAttribute(), GNEEdge::getAttribute(), GNELane::getParentName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnector::handleLaneClick(), GNETLSEditor::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspector::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnector::updateDescription().
|
inherited |
return by how much further the leader must be inserted to avoid rear end collisions
Definition at line 1045 of file MSLane.cpp.
References MSVehicle::getCarFollowModel(), MSLane::getFollowerOnConsecutive(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), and SUMOReal.
Referenced by MSLane::freeInsertion(), MSLane::getIncomingLanes(), and MSLane::isInsertionSuccess().
|
inlineinherited |
Return the list of this lane's move reminders.
Definition at line 151 of file MSLane.h.
References MSLane::checkFailure(), MSLane::forceVehicleInsertion(), MSLane::freeInsertion(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), MSLane::myMoveReminders, MSMoveReminder::NOTIFICATION_DEPARTED, MSLane::resetPartialOccupation(), MSLane::setPartialOccupation(), and SUMOReal.
Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::enterLaneAtInsertion(), and MSVehicle::enterLaneAtLaneChange().
|
inherited |
Returns the netto (excluding minGaps) occupancy of this lane during the last step (including minGaps)
Definition at line 1410 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSLane::getVehiclesSecure(), MSBaseVehicle::getVehicleType(), MSLane::myInlappingVehicle, MSLane::myInlappingVehicleEnd, MSLane::myLength, MSLane::myNettoVehicleLengthSum, MSLane::myVehicles, MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
inherited |
Returns the sum of last step NOx emissions.
Definition at line 1496 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().
|
inlineinherited |
Returns this lane's numerical id.
Definition at line 314 of file MSLane.h.
References MSLane::myNumericalID.
Referenced by MSPModel_Striping::lane_by_numid_sorter::operator()(), and MSPModel_Striping::walkingarea_path_sorter::operator()().
|
inherited |
get the list of outgoing lanes
Definition at line 1359 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLane::getIncomingLanes(), and MSRailSignal::init().
|
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 991 of file MSLane.cpp.
References MSLane::myEdge, and MSEdge::parallelLane().
Referenced by MSLaneChanger::checkChange(), MSLane::dictSize(), and MSAbstractLaneChangeModel::getShadowLane().
|
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 81 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSDevice_Example::buildVehicleDevices(), MSDevice_Battery::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSOTLTrafficLightLogic::getDecayConstant(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSOTLTrafficLightLogic::getThreshold(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), MSSOTLPolicyDesirability::readParameter(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), and TraCIServerAPI_Vehicle::vtdMap().
|
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 685 of file GUILane.cpp.
References GUIParameterTableWindow::closeBuilding(), MSLane::getBruttoOccupancy(), MSEdge::getEdgeType(), getLoadedEdgeWeight(), MSEdge::getPriority(), 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 98 of file GUILane.h.
References SUMOReal.
|
inlineinherited |
Returns the vehicle which laps into this lane.
Definition at line 252 of file MSLane.h.
References MSLane::myInlappingVehicle.
Referenced by MSVehicle::checkRewindLinkLanes(), MSLane::detectCollisions(), MSE2Collector::detectorUpdate(), MSLane::freeInsertion(), MSLane::getCriticalLeader(), MSLane::getFollowerOnConsecutive(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), MSLane::isInsertionSuccess(), MSLink::maybeOccupied(), MSE2Collector::by_vehicle_position_sorter::operator()(), MSVehicle::planMoveInternal(), MSLane::planMovements(), and MSLink::writeApproaching().
|
inlineinherited |
Returns the position of the in-lapping vehicle's end.
Definition at line 260 of file MSLane.h.
References MSLane::getLastVehicleInformation(), and MSLane::myInlappingVehicleEnd.
Referenced by MSVehicle::checkRewindLinkLanes(), MSLane::detectCollisions(), MSE2Collector::detectorUpdate(), MSLane::freeInsertion(), MSLane::getCriticalLeader(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealLeader(), MSLane::isInsertionSuccess(), MSLink::maybeOccupied(), MSVehicle::planMoveInternal(), and MSLink::writeApproaching().
|
inlineinherited |
Returns the vehicle class permissions for this lane.
Definition at line 383 of file MSLane.h.
References MSLane::myPermissions.
Referenced by MSSwarmTrafficLightLogic::allowLine(), GUIApplicationWindow::onCmdEditChosen(), and TraCIServerAPI_Lane::processGet().
|
inherited |
Returns the sum of last step PMx emissions.
Definition at line 1484 of file MSLane.cpp.
References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.
Referenced by getColorValue(), MSLane::getIncomingLanes(), getScaleValue(), TraCIServerAPI_Lane::processGet(), 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 655 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::myShape, PositionVector::nearest_offset_to_point2D(), PositionVector::positionAtOffset2D(), SUMOReal, toString(), and Position::z().
|
private |
gets the scaling value according to the current scheme index
Definition at line 927 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::getInstance(), getLoadedEdgeWeight(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getNOxEmissions(), 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, MSEdgeWeightsStorage::retrieveExistingTravelTime(), and SUMOReal.
Referenced by drawGL().
const PositionVector & GUILane::getShape | ( | ) | const |
Definition at line 725 of file GUILane.cpp.
References MSLane::myShape.
Referenced by drawArrows(), drawBikeMarkings(), drawCrossties(), GUIEdge::drawGL(), GUIPerson::drawGLAdditional(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawMarkings(), GUIEdge::drawMesoVehicles(), GUIVehicle::drawRouteHelper(), GUIMEVehicle::drawRouteHelper(), drawTLSLinkNo(), and getColorValue().
const std::vector< SUMOReal > & GUILane::getShapeLengths | ( | ) | const |
Definition at line 737 of file GUILane.cpp.
References myShapeLengths, and SUMOReal.
Referenced by GUIPerson::drawGLAdditional(), drawMarkings(), GUIVehicle::drawRouteHelper(), and GUIMEVehicle::drawRouteHelper().
const std::vector< SUMOReal > & GUILane::getShapeRotations | ( | ) | const |
Definition at line 731 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 367 of file MSLane.h.
References MSLane::myMaxSpeed.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSVehicleTransfer::checkInsertions(), MSAbstractLaneChangeModel::congested(), MSLane::executeMovements(), getColorValue(), MSE2Collector::getEstimatedCurrentVehicleNumber(), MSLane::getMaximumBrakeDist(), getParameterWindow(), getScaleValue(), MSActuatedTrafficLightLogic::init(), TraCIServerAPI_Lane::processGet(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData::writeEdge(), and MSFullExport::writeLane().
SUMOReal GUILane::getStoredEdgeTravelTime | ( | ) | const |
Returns the stored traveltime for the edge of this lane.
Definition at line 755 of file GUILane.cpp.
References MSNet::getInstance(), MSNet::getWeightsStorage(), MSEdgeWeightsStorage::knowsTravelTime(), MSLane::myEdge, MSEdgeWeightsStorage::retrieveExistingTravelTime(), STEPS2TIME, and SUMOReal.
Referenced by getColorValue(), getParameterWindow(), and getScaleValue().
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 180 of file GUIGlObject.h.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GUIMEInductLoop::MyWrapper::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GUIInstantInductLoop::MyWrapper::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GNEJunction::drawGL(), GUIJunctionWrapper::drawGL(), GUIE3Collector::MyWrapper::drawGL(), GNELane::drawGL(), GUI_E2_ZS_Collector::MyWrapper::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIBaseVehicle::drawGL(), GUIInductLoop::MyWrapper::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUIJunctionWrapper::getColorValue(), GUIEdge::getColorValue(), GNELane::getColorValue(), getColorValue(), GNEJunction::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIEdge::getScaleValue(), getScaleValue(), GNESelector::handleIDs(), GUIGlChildWindow::isSelected(), GNEViewParent::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUITrafficLightLogicWrapper::GUITrafficLightLogicWrapperPopupMenu::onCmdBegin2TrackPhases(), GNEConnector::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::setColor(), and GUISelectedStorage::toggleSelection().
|
inlinevirtualinherited |
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, GUIMEVehicle, and GUIBaseVehicle.
Definition at line 156 of file GUIGlObject.h.
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 353 of file MSLane.h.
References SUMOVehicle::getChosenSpeedFactor(), SUMOVehicle::getMaxSpeed(), SUMOVehicle::getVClass(), MIN2(), MSLane::myMaxSpeed, and MSLane::myRestrictions.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MEVehicle::estimateLeaveSpeed(), MSVehicle::estimateLeaveSpeed(), MSCFModel_IDM::followSpeed(), GUIVehicle::getColorValue(), MSLane::getCriticalLeader(), MSLane::getDepartSpeed(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSLane::isInsertionSuccess(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel::moveHelper(), MSCFModel_IDM::moveHelper(), MSVehicle::planMoveInternal(), TraCIServerAPI_Vehicle::processGet(), MSVehicle::setBlinkerInformation(), MSCFModel_IDM::stopSpeed(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
|
inlineinherited |
Returns the number of vehicles on this lane.
Definition at line 284 of file MSLane.h.
References MSLane::myVehicles.
Referenced by MSVehicle::checkRewindLinkLanes(), TraCIServerAPI_Lane::processGet(), MSFullExport::writeLane(), and MSXMLRawOut::writeLane().
|
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 116 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 1431 of file MSLane.cpp.
References MSLane::myVehicles, and SUMOReal.
Referenced by MSLane::getIncomingLanes(), and TraCIServerAPI_Lane::processGet().
|
inlineinherited |
Returns the lane's width.
Definition at line 391 of file MSLane.h.
References MSLane::myWidth.
Referenced by MSAbstractLaneChangeModel::continueLaneChangeManeuver(), drawGL(), MSPModel_Striping::getNextLaneObstacles(), MSPModel_Striping::PState::getPosition(), MSPModel_Striping::initWalkingAreaPaths(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::PState::moveToNextLane(), MSPModel_Striping::numStripes(), TraCIServerAPI_Lane::processGet(), MSLink::setRequestInformation(), and MSLink::writeApproaching().
|
protectedinherited |
detect whether there is a collision. then issue warning and add the vehicle to MSVehicleTransfer
Definition at line 631 of file MSLane.cpp.
References MSVehicleTransfer::add(), DELTA_T, Named::getID(), MSBaseVehicle::getID(), MSVehicleTransfer::getInstance(), MSNet::getInstance(), MSVehicle::getLane(), MSVehicle::getLaneChangeModel(), MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSNet::getVehicleControl(), MSBaseVehicle::getVehicleType(), MSGlobals::gLaneChangeDuration, MSAbstractLaneChangeModel::isChangingLanes(), MSLane::myBruttoVehicleLengthSum, MSLane::myNettoVehicleLengthSum, NUMERICAL_EPS, MSVehicleControl::registerCollision(), SUMOReal, time2string(), toString(), and WRITE_WARNING.
Referenced by MSLane::detectCollisions(), and MSLane::visit().
|
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] | at | |
[in] | notification | The cause of insertion (i.e. departure, teleport, parking) defaults to departure |
Reimplemented from MSLane.
Definition at line 106 of file GUILane.cpp.
References MSLane::incorporateVehicle(), and myLock.
|
staticinherited |
Adds the ids of all stored lanes into the given vector.
Definition at line 804 of file MSLane.cpp.
References MSLane::myDict.
Referenced by MSLane::dictSize(), and TraCIServerAPI_Lane::processGet().
|
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 273 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, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, MSLane::freeInsertion(), MSLane::getDepartSpeed(), MSLane::getLength(), MSBaseVehicle::getParameter(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), MSLane::myLength, MSMoveReminder::NOTIFICATION_DEPARTED, RandHelper::rand(), and SUMOReal.
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 157 of file GUILane.cpp.
References MSLane::integrateNewVehicle(), and myLock.
Definition at line 345 of file MSLane.h.
References MSLane::myLengthGeometryFactor.
Referenced by getPopUpMenu(), and MSLink::setRequestInformation().
Definition at line 333 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(), and MSStoppingPlace::getWaitPosition().
|
inherited |
Definition at line 1021 of file MSLane.cpp.
References MSLane::myApproachingLanes.
Referenced by MSLane::getIncomingLanes().
Definition at line 1027 of file MSLane.cpp.
References MSLane::myApproachingLanes.
|
inline |
Definition at line 235 of file GUILane.h.
References MSMoveReminder::NOTIFICATION_DEPARTED, and SUMOReal.
Referenced by GUIEdge::closeTraffic().
|
inherited |
Returns the information whether the lane is has no vehicle and no partial occupation
Definition at line 875 of file MSLane.cpp.
References MSLane::myInlappingVehicle, 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, incorporateVehicleis 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] | 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 341 of file MSLane.cpp.
References ARRIVAL_SPEED_GIVEN, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSRoute::begin(), MSCFModel::brakeGap(), MSLane::checkFailure(), MSInsertionControl::descheduleDeparture(), MSCFModel::freeSpeed(), MSVehicle::gap(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSLane::getEdge(), MSBaseVehicle::getID(), MSBaseVehicle::getImpatience(), MSNet::getInsertionControl(), MSNet::getInstance(), MSRoute::getLastEdge(), MSLane::getLastVehicle(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getMissingRearGap(), MSBaseVehicle::getParameter(), MSLane::getPartialOccupator(), MSLane::getPartialOccupatorEnd(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getRoute(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSLane::incorporateVehicle(), MSCFModel::insertionFollowSpeed(), MSLane::isLinkEnd(), LINKSTATE_ALLWAY_STOP, LINKSTATE_EQUAL, LINKSTATE_MINOR, LINKSTATE_STOP, MAX2(), MSLane::myLength, MSLane::myVehicles, NUMERICAL_EPS, MSVehicle::setTentativeLaneAndPosition(), MSCFModel::stopSpeed(), MSLane::succLinkSec(), SUMO_const_haltingSpeed, SUMOReal, TIME2STEPS, toString(), MSVehicle::updateBestLanes(), WRITE_ERROR, and WRITE_WARNING.
Referenced by MSVehicleTransfer::checkInsertions(), MSLane::freeInsertion(), MSLane::getMoveReminders(), MSLane::insertVehicle(), and MSLane::lastInsertion().
|
inherited |
Returns the information whether the given link shows at the end of the list of links (is not valid)
Definition at line 864 of file MSLane.cpp.
References MSLane::myLinks.
Referenced by MSLaneChanger::checkChange(), MSLane::dictSize(), MSLane::getCriticalLeader(), 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 870 of file MSLane.cpp.
References MSLane::myLinks.
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 75 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSDevice_Example::buildVehicleDevices(), and MSDevice::equippedByDefaultAssignmentOptions().
Definition at line 146 of file MSLane.cpp.
References MSLane::basePos(), MSVehicle::getCarFollowModel(), MSVehicleType::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSVehicle::getPositionOnLane(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSLane::isInsertionSuccess(), MSLane::myVehicles, MSMoveReminder::NOTIFICATION_DEPARTED, POSITION_EPS, and SUMOReal.
Referenced by MSLane::getMoveReminders(), and MSLane::insertVehicle().
|
inherited |
Definition at line 1370 of file MSLane.cpp.
References MSVehicleType::getLength(), MSVehicleType::getLengthWithGap(), MSBaseVehicle::getVehicleType(), MSLane::myBruttoVehicleLengthSum, and MSLane::myNettoVehicleLengthSum.
Referenced by MSLane::dictSize(), and MSAbstractLaneChangeModel::startLaneChangeManeuver().
|
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 1605 of file MSLane.cpp.
References MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSVehicleControl::getVehicle(), MSLane::incorporateVehicle(), MSLane::myVehicles, MSMoveReminder::NOTIFICATION_JUNCTION, and MSVehicle::updateBestLanes().
Referenced by MSLane::getIncomingLanes().
|
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 129 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 123 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 204 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 143 of file GUILane.cpp.
References myLock, and MSLane::removeVehicle().
|
inherited |
Removes the information about a vehicle lapping into this lane.
[in] | v | The vehicle which laps into this lane |
Definition at line 547 of file MSLane.cpp.
References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::getShadowLane(), MSAbstractLaneChangeModel::isChangingLanes(), MSLane::myInlappingVehicle, and MSLane::myInlappingVehicleEnd.
Referenced by MSAbstractLaneChangeModel::continueLaneChangeManeuver(), MSAbstractLaneChangeModel::endLaneChangeManeuver(), and MSLane::getMoveReminders().
|
inherited |
Saves the state of this lane into the given stream.
Basically, a list of vehicle ids
Definition at line 1594 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::getIncomingLanes().
|
private |
sets the color according to the currente settings
Definition at line 781 of file GUILane.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), getColorValue(), GUIPropertySchemeStorage< T >::getScheme(), GUIVisualizationSettings::laneColorer, 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 790 of file GUILane.cpp.
References PositionVector::beginEndAngle(), RGBColor::fromHSV(), MSLane::myShape, GeomHelper::naviDegree(), GLHelper::setColor(), and SUMOReal.
Referenced by setColor().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 73 of file Named.h.
References Named::myID.
Referenced by 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 960 of file MSLane.cpp.
References MSLane::myEdge, and MSEdge::recalcCache().
Referenced by MSLane::empty(), and TraCIServerAPI_Lane::processSet().
|
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 953 of file MSLane.cpp.
References MSLane::myEdge, MSLane::myMaxSpeed, and MSEdge::recalcCache().
Referenced by MSLane::empty(), and TraCIServerAPI_Lane::processSet().
|
virtualinherited |
Changes the microsimID of the object (happens in NETEDIT)
Reimplemented in GNEEdge.
Definition at line 110 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.
Referenced by GNENet::renameJunction(), GNELane::setIndex(), and GNEEdge::setMicrosimID().
|
private |
sets multiple colors according to the current scheme index and some lane function
Definition at line 804 of file GUILane.cpp.
References GUIPropertySchemeStorage< T >::getActive(), GUIPropertyScheme< T >::getColor(), GUIPropertySchemeStorage< T >::getScheme(), MAX2(), MSLane::myShape, myShapeColors, POSITION_EPS, and SUMOReal.
Referenced by setColor().
Sets the information about a vehicle lapping into this lane.
The given left length of vehicle which laps into this lane is used to determine the vehicle's end position in regard to this lane's length. This information is set into myInlappingVehicleState; additionally, the vehicle pointer is stored in myInlappingVehicle; Returns this lane's length for subtracting it from the left vehicle length.
[in] | v | The vehicle which laps into this lane |
[in] | leftVehicleLength | The distance the vehicle laps into this lane |
Definition at line 531 of file MSLane.cpp.
References MSVehicle::getLaneChangeModel(), MSAbstractLaneChangeModel::getShadowLane(), MSAbstractLaneChangeModel::hasShadowVehicle(), MSAbstractLaneChangeModel::isChangingLanes(), MSLane::myInlappingVehicle, MSLane::myInlappingVehicleEnd, MSLane::myLength, and MSAbstractLaneChangeModel::setShadowPartialOccupator().
Referenced by MSLane::getMoveReminders(), and MSAbstractLaneChangeModel::startLaneChangeManeuver().
|
inlineinherited |
Definition at line 571 of file MSLane.h.
References MSLane::myPermissions.
Referenced by TraCIServerAPI_Lane::processSet().
|
protectedinherited |
Definition at line 213 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
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 898 of file MSLane.cpp.
References MSEdge::EDGEFUNCTION_INTERNAL, MSLane::getEdge(), Named::getID(), SUMOVehicle::getID(), MSNet::getInstance(), MSEdge::getPurpose(), MSVehicleType::getVehicleClass(), SUMOVehicle::getVehicleType(), MSLane::myLinks, SUMOVehicle::succEdge(), time2string(), and WRITE_WARNING.
Referenced by MSLane::appropriate(), MSLaneChanger::checkChange(), MSLane::dictSize(), MSLane::executeMovements(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), 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 150 of file GUILane.cpp.
References myLock, and MSLane::swapAfterLaneChange().
|
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 797 of file MSLane.h.
References TraCIServerAPI_Lane::StoringVisitor::add(), MSLane::basePos(), MSLane::getDepartSpeed(), MSLane::getMaximumBrakeDist(), MSLane::handleCollision(), MSLane::incorporateVehicle(), MSMoveReminder::NOTIFICATION_DEPARTED, SUMOReal, and MSLane::swapAfterLaneChange().
Referenced by TraCIServer::collectObjectsInRange().
|
private |
state for dynamic lane closings
Definition at line 312 of file GUILane.h.
Referenced by closeTraffic(), and getPopUpMenu().
Definition at line 903 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 887 of file MSLane.h.
Referenced by MSLane::enteredByLaneChange(), MSLane::executeMovements(), MSLane::getBruttoOccupancy(), MSLane::getBruttoVehLenSum(), MSLane::handleCollision(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicle(), MSLane::leftByLaneChange(), and MSLane::removeVehicle().
|
staticprotectedinherited |
Static dictionary to associate string-ids with objects.
Definition at line 912 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 863 of file MSLane.h.
Referenced by MSLane::appropriate(), drawGL(), drawMarkings(), getColorValue(), MSLane::getEdge(), getEdgeLaneNumber(), MSLane::getInternalFollower(), getLoadedEdgeWeight(), MSLane::getLogicalPredecessorLane(), MSLane::getParallelLane(), getParameterWindow(), getScaleValue(), getStoredEdgeTravelTime(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicle(), MSLane::setLength(), and MSLane::setMaxSpeed().
|
private |
Half of lane width, for speed-up.
Definition at line 302 of file GUILane.h.
Referenced by drawBikeMarkings(), drawGL(), drawLinkNo(), drawLinkRule(), drawMarkings(), drawTLSLinkNo(), and GUILane().
|
protectedinherited |
The name of the object.
Definition at line 133 of file Named.h.
Referenced by GUI_E2_ZS_CollectorOverLanes::buildCollector(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
protectedinherited |
Definition at line 882 of file MSLane.h.
Referenced by MSLane::addIncomingLane(), MSLane::getFollowerOnConsecutive(), MSLane::getIncomingLanes(), and MSLane::getLogicalPredecessorLane().
|
protectedinherited |
The lane index.
Definition at line 845 of file MSLane.h.
Referenced by drawMarkings(), and MSLane::getIndex().
|
protectedinherited |
The vehicle which laps into this lane.
Definition at line 896 of file MSLane.h.
Referenced by MSLane::getBruttoOccupancy(), MSLane::getLastVehicleInformation(), MSLane::getNettoOccupancy(), MSLane::getPartialOccupator(), MSLane::isEmpty(), MSLane::resetPartialOccupation(), and MSLane::setPartialOccupation().
|
protectedinherited |
End position of a vehicle which laps into this lane.
Definition at line 893 of file MSLane.h.
Referenced by MSLane::getBruttoOccupancy(), MSLane::getLastVehicleInformation(), MSLane::getNettoOccupancy(), MSLane::getPartialOccupatorEnd(), MSLane::resetPartialOccupation(), and MSLane::setPartialOccupation().
|
protectedinherited |
Lane length [m].
Definition at line 857 of file MSLane.h.
Referenced by MSLane::basePos(), MSLane::freeInsertion(), MSLane::getBruttoOccupancy(), getColorValue(), MSLane::getLength(), MSLane::getNettoOccupancy(), getParameterWindow(), getScaleValue(), MSLane::incorporateVehicle(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), and MSLane::setPartialOccupation().
|
protectedinherited |
Definition at line 906 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 901 of file MSLane.h.
Referenced by MSLane::addLink(), MSLane::appropriate(), drawArrows(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSLane::executeMovements(), MSLane::getCrossingIndex(), MSLane::getLinkCont(), MSLane::getOutgoingLanes(), MSLane::isLinkEnd(), MSLane::succLinkSec(), and MSLane::~MSLane().
|
mutableprivate |
The mutex used to avoid concurrent updates of the vehicle buffer.
Definition at line 317 of file GUILane.h.
Referenced by detectCollisions(), executeMovements(), getVehiclesSecure(), incorporateVehicle(), integrateNewVehicle(), planMovements(), releaseVehicles(), removeVehicle(), swapAfterLaneChange(), and ~GUILane().
|
mutableprotectedinherited |
Definition at line 883 of file MSLane.h.
Referenced by MSLane::getLogicalPredecessorLane().
|
protectedinherited |
Lane-wide speedlimit [m/s].
Definition at line 866 of file MSLane.h.
Referenced by getColorValue(), MSLane::getMeanSpeed(), getScaleValue(), MSLane::getSpeedLimit(), MSLane::getVehicleMaxSpeed(), and MSLane::setMaxSpeed().
|
protectedinherited |
The current length of all vehicles on this lane, excluding their minGaps.
Definition at line 890 of file MSLane.h.
Referenced by MSLane::enteredByLaneChange(), MSLane::executeMovements(), MSLane::getNettoOccupancy(), MSLane::handleCollision(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicle(), MSLane::leftByLaneChange(), and MSLane::removeVehicle().
|
protectedinherited |
Unique numerical ID (set on reading by netload)
Definition at line 839 of file MSLane.h.
Referenced by MSLane::getNumericalID().
|
private |
Definition at line 313 of file GUILane.h.
Referenced by closeTraffic().
|
protectedinherited |
The vClass permissions for this lane.
Definition at line 877 of file MSLane.h.
Referenced by MSLane::allowsVehicleClass(), closeTraffic(), drawAsRailway(), drawAsWaterway(), drawGL(), drawMarkings(), getColorValue(), getParameterWindow(), MSLane::getPermissions(), and MSLane::setPermissions().
|
private |
Quarter of lane width, for speed-up.
Definition at line 305 of file GUILane.h.
Referenced by drawGL(), drawMarkings(), and GUILane().
|
protectedinherited |
The vClass speed restrictions for this lane.
Definition at line 880 of file MSLane.h.
Referenced by MSLane::getVehicleMaxSpeed(), and MSLane::MSLane().
|
protectedinherited |
The shape of the lane.
Definition at line 842 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 299 of file GUILane.h.
Referenced by drawGL(), GUILane(), and setMultiColor().
|
private |
The lengths of the shape parts.
Definition at line 296 of file GUILane.h.
Referenced by drawBikeMarkings(), drawCrossties(), drawGL(), drawMarkings(), getShapeLengths(), and GUILane().
|
private |
The rotations of the shape parts.
Definition at line 293 of file GUILane.h.
Referenced by drawBikeMarkings(), drawCrossties(), drawGL(), drawMarkings(), getShapeRotations(), and GUILane().
|
protectedinherited |
Container for lane-changing vehicles. After completion of lane-change- process, the two containers will be swapped.
Definition at line 870 of file MSLane.h.
Referenced by MSLane::swapAfterLaneChange().
|
protectedinherited |
buffer for vehicles that moved from their previous lane onto this one
Definition at line 874 of file MSLane.h.
Referenced by MSLane::empty(), MSLane::executeMovements(), MSLane::integrateNewVehicle(), and MSXMLRawOut::writeLane().
|
protectedinherited |
The lane's vehicles. 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 854 of file MSLane.h.
Referenced by MSLane::addMoveReminder(), MSLane::detectCollisions(), MSLane::empty(), MSLane::executeMovements(), firstWaitingTime(), MSLane::forceVehicleInsertion(), MSLane::freeInsertion(), MSLane::getBruttoOccupancy(), MSLane::getFirstVehicle(), MSLane::getLastVehicle(), MSLane::getLastVehicleInformation(), MSLane::getLeader(), MSLane::getMeanSpeed(), MSLane::getNettoOccupancy(), MSLane::getVehicleNumber(), getVehiclesSecure(), MSLane::getVehiclesSecure(), MSLane::getWaitingSeconds(), MSLane::incorporateVehicle(), MSLane::integrateNewVehicle(), MSLane::isEmpty(), MSLane::isInsertionSuccess(), MSLane::lastInsertion(), MSLane::loadState(), MSLane::planMovements(), MSLane::removeVehicle(), MSLane::saveState(), MSLane::swapAfterLaneChange(), MSQueueExport::writeLane(), and MSXMLRawOut::writeLane().
|
protectedinherited |
Lane width [m].
Definition at line 860 of file MSLane.h.
Referenced by drawArrows(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), getParameterWindow(), MSLane::getWidth(), and GUILane().
|
staticinherited |
associates object types with strings
Definition at line 100 of file GUIGlObject.h.