SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GUILane Class Reference

Representation of a lane in the micro simulation (gui-version) More...

#include <GUILane.h>

Inheritance diagram for GUILane:
MSLane GUIGlObject Named Parameterised

Public Types

typedef std::vector< MSVehicle * > VehCont
 Container for vehicles. More...
 

Public Member Functions

void addApproachingLane (MSLane *lane)
 
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 detectCollisions (SUMOTime timestep, int stage)
 
void drawCrossties (const GUIVisualizationSettings &s) const
 draw crossties for railroads More...
 
virtual void drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
 Draws additional, user-triggered visualisations. More...
 
void drawMarkings (const GUIVisualizationSettings &s) 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
 
MSEdgegetEdge () const
 Returns the lane's edge. More...
 
SUMOReal getEdgeLaneNumber () const
 
virtual const MSVehiclegetFirstVehicle () const
 
std::pair< MSVehicle *const,
SUMOReal
getFollowerOnConsecutive (SUMOReal dist, SUMOReal seen, SUMOReal leaderSpeed, SUMOReal backOffset, SUMOReal predMaxDecel) const
 
SUMOReal getHalfWidth () const
 
const std::string & getID () const
 Returns the id. More...
 
const std::vector
< IncomingLaneInfo > & 
getIncomingLanes () const
 
virtual MSVehiclegetLastVehicle () const
 returns the last vehicle More...
 
std::pair< MSVehicle *const,
SUMOReal
getLeaderOnConsecutive (SUMOReal dist, SUMOReal seen, SUMOReal speed, const MSVehicle &veh, const std::vector< MSLane * > &bestLaneConts) const
 Returns the leader and the distance to him. More...
 
const MSLinkContgetLinkCont () const
 returns the container with all links !!! More...
 
MSLanegetLogicalPredecessorLane () const
 
const std::map< std::string,
std::string > & 
getMap () const
 Returns the inner key/value map. More...
 
SUMOReal getMissingRearGap (SUMOReal dist, SUMOReal backOffset, SUMOReal leaderSpeed, SUMOReal leaderMaxDecel) const
 return by how much further the leader must be inserted to avoid rear end collisions More...
 
MSLanegetParallelLane (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 PositionVectorgetShape () 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 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)
 
MSVehicleremoveVehicle (MSVehicle *remVehicle, MSMoveReminder::Notification notification)
 
void setID (const std::string &newID)
 resets the id More...
 
void setLength (SUMOReal val)
 
void setMaxSpeed (SUMOReal val)
 
void setPermissions (SVCPermissions permissions)
 
virtual MSLinkCont::const_iterator succLinkSec (const SUMOVehicle &veh, unsigned int nRouteSuccs, const MSLane &succLinkSource, const std::vector< MSLane * > &conts) const
 
 ~GUILane ()
 Destructor. More...
 
Access to vehicles
const VehContgetVehiclesSecure () 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
GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own popup-menu. More...
 
GUIParameterTableWindowgetParameterWindow (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...
 
Current state retrieval
SUMOReal getNormedHBEFA_CO2Emissions () const
 Returns the sum of last step CO2 emissions normed by the lane's length. More...
 
SUMOReal getNormedHBEFA_COEmissions () const
 Returns the sum of last step CO emissions normed by the lane's length. More...
 
SUMOReal getNormedHBEFA_PMxEmissions () const
 Returns the sum of last step PMx emissions normed by the lane's length. More...
 
SUMOReal getNormedHBEFA_NOxEmissions () const
 Returns the sum of last step NOx emissions normed by the lane's length. More...
 
SUMOReal getNormedHBEFA_HCEmissions () const
 Returns the sum of last step HC emissions normed by the lane's length. More...
 
SUMOReal getNormedHBEFA_FuelConsumption () const
 Returns the sum of last step fuel comsumption normed by the lane's length. 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...
 
virtual bool isInsertionSuccess (MSVehicle *vehicle, SUMOReal speed, SUMOReal pos, bool recheckNextLanes, MSMoveReminder::Notification notification=MSMoveReminder::NOTIFICATION_DEPARTED)
 Tries to insert the given vehicle with the given state (speed and pos) More...
 
bool pWagGenericInsertion (MSVehicle &veh, SUMOReal speed, SUMOReal maxPos, SUMOReal minPos)
 
bool pWagSimpleInsertion (MSVehicle &veh, SUMOReal speed, SUMOReal maxPos, SUMOReal minPos)
 
bool maxSpeedGapInsertion (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...
 
MSVehiclegetPartialOccupator () 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 *, SUMORealgetLastVehicleInformation () 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 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...
 
Current state retrieval
SUMOReal getMeanSpeed () const
 Returns the mean speed on this lane. More...
 
SUMOReal getOccupancy () const
 Returns the occupancy of this lane during the last step. More...
 
SUMOReal getVehLenSum () const
 Returns the sum of lengths of vehicles which were on the lane during the last step. More...
 
SUMOReal getHBEFA_CO2Emissions () const
 Returns the sum of last step CO2 emissions. More...
 
SUMOReal getHBEFA_COEmissions () const
 Returns the sum of last step CO emissions. More...
 
SUMOReal getHBEFA_PMxEmissions () const
 Returns the sum of last step PMx emissions. More...
 
SUMOReal getHBEFA_NOxEmissions () const
 Returns the sum of last step NOx emissions. More...
 
SUMOReal getHBEFA_HCEmissions () const
 Returns the sum of last step HC emissions. More...
 
SUMOReal getHBEFA_FuelConsumption () const
 Returns the sum of last step fuel 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
const std::string & getMicrosimID () const
 Returns the id of the object as known to microsim. More...
 
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 ()
 
static bool dictionary (std::string id, MSLane *lane)
 Inserts a MSLane into the static dictionary Returns true if the key id isn't already in the dictionary. Otherwise returns false. More...
 
static MSLanedictionary (std::string id)
 Returns the MSLane associated to the key id if exists Otherwise returns 0. More...
 
static size_t dictSize ()
 
static void insertIDs (std::vector< std::string > &into)
 

Data Fields

PositionVector myShape
 The shape of the lane. More...
 

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

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 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
 
MSEdgemyEdge
 The lane's edge, for routing only. More...
 
std::string myID
 The name of the object. More...
 
std::vector< IncomingLaneInfomyIncomingLanes
 
MSVehiclemyInlappingVehicle
 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
 
MSLanemyLogicalPredecessorLane
 
SUMOReal myMaxSpeed
 Lane-wide speedlimit [m/s]. More...
 
size_t myNumericalID
 Unique numerical ID (set on reading by netload) More...
 
SVCPermissions myPermissions
 The vClass permissions for this lane. More...
 
VehCont myTmpVehicles
 
std::vector< MSVehicle * > myVehBuffer
 
SUMOReal myVehicleLengthSum
 The current length of all vehicles on this lane. More...
 
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...
 
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
 
void drawLane2LaneConnections () const
 
void drawLinkNo () const
 helper methods More...
 
void drawLinkRules (const GUINet &net) const
 
void drawTLSLinkNo (const GUINet &net) const
 
SUMOReal getColorValue (size_t activeScheme) const
 gets the color value according to the current scheme index More...
 
void setColor (const GUIVisualizationSettings &s) const
 sets the color according to the currente settings More...
 

Private Attributes

SUMOReal myHalfLaneWidth
 Half of lane width, for speed-up. More...
 
unsigned int myIndex
 The lane index. More...
 
MFXMutex myLock
 The mutex used to avoid concurrent updates of the vehicle buffer. More...
 
SUMOReal myQuarterLaneWidth
 Quarter of lane width, for speed-up. More...
 
std::vector< SUMORealmyShapeLengths
 The lengths of the shape parts. More...
 
std::vector< SUMORealmyShapeRotations
 The rotations of the shape parts. More...
 

Detailed Description

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.

Definition at line 70 of file GUILane.h.

Member Typedef Documentation

typedef std::map< std::string, MSLane* > MSLane::DictType
protectedinherited

definition of the static dictionary type

Definition at line 745 of file MSLane.h.

typedef std::vector< MSVehicle* > MSLane::VehCont
inherited

Container for vehicles.

Definition at line 84 of file MSLane.h.

Constructor & Destructor Documentation

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.

Parameters
[in]idThe lane's id
[in]maxSpeedThe speed allowed on this lane
[in]lengthThe lane's length
[in]edgeThe edge this lane belongs to
[in]numericalIDThe numerical id of the lane
[in]shapeThe shape of the lane
[in]widthThe width of the lane
[in]permissionsEncoding of vehicle classes that may drive on this lane
See Also
SUMOVehicleClass
MSLane

Definition at line 68 of file GUILane.cpp.

References Position::distanceTo2D(), myHalfLaneWidth, myIndex, myQuarterLaneWidth, MSLane::myShape, myShapeLengths, myShapeRotations, MSLane::myWidth, RAD2DEG, SUMOReal, Position::x(), and Position::y().

GUILane::~GUILane ( )

Destructor.

Definition at line 90 of file GUILane.cpp.

References MFXMutex::locked(), myLock, and MFXMutex::unlock().

Member Function Documentation

void MSLane::addApproachingLane ( MSLane lane)
inherited

Definition at line 988 of file MSLane.cpp.

References MSLane::getEdge(), and MSLane::myApproachingLanes.

Referenced by NLHandler::addConnection().

void MSLane::addIncomingLane ( MSLane lane,
MSLink viaLink 
)
inherited
void MSLane::addLink ( MSLink link)
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.

Parameters
[in]linkAn outgoing link

Definition at line 105 of file MSLane.cpp.

References MSLane::myLinks.

Referenced by NLHandler::addConnection().

void MSLane::addMoveReminder ( MSMoveReminder rem)
virtualinherited

Add a move-reminder to move-reminder container.

The move reminder will not be deleted by the lane.

Parameters
[in]remThe move reminder to add

Definition at line 112 of file MSLane.cpp.

References MSLane::myMoveReminders, and MSLane::myVehicles.

Referenced by MSMoveReminder::MSMoveReminder().

void Parameterised::addParameter ( const std::string &  key,
const std::string &  value 
)
inherited

Adds a parameter.

Parameters
[in]keyThe parameter's name
[in]valueThe parameter's value

Definition at line 53 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by NLHandler::addParam(), SUMORouteHandler::addParam(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), and NIImporter_MATSim::EdgesHandler::myStartElement().

void Parameterised::addParameter ( const std::map< std::string, std::string > &  mapArg)
inherited

Adds all given parameter.

Parameters
[in]mapArgThe keys/values to insert

Definition at line 59 of file Parameterised.cpp.

References Parameterised::myMap.

void Parameterised::addParameter ( const Parameterised p)
inherited

Adds all given parameter.

Parameters
[in]pThe keys/values to insert

Definition at line 67 of file Parameterised.cpp.

References Parameterised::myMap.

void GUIGlObject::addParameterTable ( GUIParameterTableWindow w)
inherited

Lets this object know a parameter window showing the object's values was opened.

Parameters
[in]wThe opened parameter window

Definition at line 187 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

void Named::addTo ( const StoringVisitor cont) const
inlineinherited

Adds this object to the given container.

Parameters
in,filled]cont The container to add this item to

Definition at line 114 of file Named.h.

References Named::StoringVisitor::add().

bool MSLane::allowsVehicleClass ( SUMOVehicleClass  vclass) const
inlineinherited

Definition at line 512 of file MSLane.h.

References MSLane::myPermissions.

Referenced by getColorValue().

bool MSLane::appropriate ( const MSVehicle veh)
virtualinherited

Returns the information whether this lane may be used to continue the current route

Definition at line 847 of file MSLane.cpp.

References MSEdge::EDGEFUNCTION_INTERNAL, MSVehicle::getBestLanesContinuation(), MSEdge::getPurpose(), MSLane::myEdge, MSLane::myLinks, and MSLane::succLinkSec().

Referenced by MSLane::executeMovements().

void GUIGlObject::buildCenterPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited
void GUIGlObject::buildNameCopyPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited
void GUIGlObject::buildPositionCopyEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
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.

Parameters
in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 166 of file GUIGlObject.cpp.

References GeoConvHelper::getFinal(), MID_COPY_CURSOR_GEOPOSITION, and MID_COPY_CURSOR_POSITION.

Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and getPopUpMenu().

void GUIGlObject::buildShowManipulatorPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the manipulator window.

Parameters
in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 178 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.

Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().

void GUIGlObject::buildShowParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the parameter window.

Parameters
in,filled]ret The popup menu to add the entry to
[in]addSeparatorWhether a separator shall be added, too

Definition at line 157 of file GUIGlObject.cpp.

References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.

Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUICalibrator::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), GUIEdge::getPopUpMenu(), GUINet::getPopUpMenu(), and getPopUpMenu().

void MSLane::clear ( )
staticinherited

Clears the dictionary

Definition at line 830 of file MSLane.cpp.

References MSLane::myDict.

Referenced by MSNet::clearAll().

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 91 of file Parameterised.cpp.

References Parameterised::myMap.

void GUILane::detectCollisions ( SUMOTime  timestep,
int  stage 
)
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 158 of file GUILane.cpp.

References MSLane::detectCollisions(), and myLock.

MSLane * MSLane::dictionary ( std::string  id)
staticinherited

Returns the MSLane associated to the key id if exists Otherwise returns 0.

Definition at line 819 of file MSLane.cpp.

References MSLane::myDict.

static size_t MSLane::dictSize ( )
inlinestaticinherited

Definition at line 458 of file MSLane.h.

References MSLane::myDict.

void GUILane::drawCrossties ( const GUIVisualizationSettings s) const

draw crossties for railroads

Definition at line 582 of file GUILane.cpp.

References getShape(), MSGlobals::gUseMesoSim, myShapeLengths, myShapeRotations, setColor(), and SUMOReal.

Referenced by drawGL().

virtual void GUIGlObject::drawGLAdditional ( GUISUMOAbstractView *const  parent,
const GUIVisualizationSettings s 
) const
inlinevirtualinherited

Draws additional, user-triggered visualisations.

Parameters
[in]parentThe view
[in]sThe settings for the current view (may influence drawing)

Reimplemented in GUIVehicle, and GUIPerson.

Definition at line 182 of file GUIGlObject.h.

References UNUSED_PARAMETER.

void GUILane::drawLinkNo ( ) const
private
void GUILane::drawTLSLinkNo ( const GUINet net) const
private
bool MSLane::empty ( ) const
inlineinherited

Returns true if there is not a single vehicle on the lane.

Definition at line 425 of file MSLane.h.

References MSLane::myVehBuffer, and MSLane::myVehicles.

void MSLane::enteredByLaneChange ( MSVehicle v)
inherited
bool GUILane::executeMovements ( SUMOTime  t,
std::vector< MSLane * > &  into 
)
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 130 of file GUILane.cpp.

References MSLane::executeMovements(), and myLock.

SUMOReal GUILane::firstWaitingTime ( ) const

Definition at line 680 of file GUILane.cpp.

References MSLane::myVehicles.

Referenced by getColorValue().

void MSLane::forceVehicleInsertion ( MSVehicle veh,
SUMOReal  pos 
)
inherited

Inserts the given vehicle at the given position.

No checks are done, vehicle insertion using this method may generate collisions (possibly delayed).

Parameters
[in]vehThe vehicle to insert
[in]posThe position at which the vehicle shall be inserted

Definition at line 617 of file MSLane.cpp.

References MSVehicle::getSpeed(), MSLane::incorporateVehicle(), and MSLane::myVehicles.

Referenced by TraCIServerAPI_Vehicle::processSet().

bool MSLane::freeInsertion ( MSVehicle veh,
SUMOReal  speed,
MSMoveReminder::Notification  notification = MSMoveReminder::NOTIFICATION_DEPARTED 
)
inherited

Tries to insert the given vehicle on any place.

Parameters
[in]vehThe vehicle to insert
[in]speedThe maximum insertion speed
[in]notificationThe cause of insertion (i.e. departure, teleport, parking) defaults to departure
Returns
Whether the vehicle could be inserted

Definition at line 268 of file MSLane.cpp.

References MSCFModel::followSpeed(), MSVehicle::getCarFollowModel(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getPartialOccupator(), MSLane::getPartialOccupatorEnd(), MSVehicle::getPositionOnLane(), MSCFModel::getSecureGap(), MSVehicle::getSpeed(), MSBaseVehicle::getVehicleType(), MSLane::isInsertionSuccess(), MIN2(), MSLane::myVehicles, POSITION_EPS, and SUMOReal.

Referenced by MSVehicleTransfer::checkInsertions(), and MSLane::insertVehicle().

Boundary GUILane::getCenteringBoundary ( ) const
virtual

Returns the boundary to which the view shall be centered in order to show the object.

Returns
The boundary the object is within
See Also
GUIGlObject::getCenteringBoundary

Implements GUIGlObject.

Definition at line 647 of file GUILane.cpp.

References Boundary::add(), Boundary::grow(), and MSLane::myShape.

SUMOReal GUILane::getEdgeLaneNumber ( ) const

Definition at line 686 of file GUILane.cpp.

References MSEdge::getLanes(), MSLane::myEdge, and SUMOReal.

Referenced by getColorValue().

const MSVehicle * MSLane::getFirstVehicle ( ) const
virtualinherited

Definition at line 892 of file MSLane.cpp.

References MSLane::myVehicles.

Referenced by MSLane::getFollowerOnConsecutive(), and MSLane::getMissingRearGap().

SUMOReal GUILane::getHalfWidth ( ) const
inline

Definition at line 203 of file GUILane.h.

References myHalfLaneWidth.

Referenced by drawMarkings().

SUMOReal MSLane::getHarmonoise_NoiseEmissions ( ) const
inherited

Returns the sum of last step noise emissions.

Returns
noise emissions of vehicles on this lane during the last step

Definition at line 1316 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), HelpersHarmonoise::sum(), and SUMOReal.

Referenced by getColorValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

SUMOReal MSLane::getHBEFA_CO2Emissions ( ) const
inherited

Returns the sum of last step CO2 emissions.

Returns
CO2 emissions of vehicles on this lane during the last step

Definition at line 1244 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.

Referenced by getNormedHBEFA_CO2Emissions(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

SUMOReal MSLane::getHBEFA_COEmissions ( ) const
inherited

Returns the sum of last step CO emissions.

Returns
CO emissions of vehicles on this lane during the last step

Definition at line 1256 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.

Referenced by getNormedHBEFA_COEmissions(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

SUMOReal MSLane::getHBEFA_FuelConsumption ( ) const
inherited

Returns the sum of last step fuel consumption.

Returns
fuel consumption of vehicles on this lane during the last step

Definition at line 1304 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.

Referenced by getNormedHBEFA_FuelConsumption(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

SUMOReal MSLane::getHBEFA_HCEmissions ( ) const
inherited

Returns the sum of last step HC emissions.

Returns
HC emissions of vehicles on this lane during the last step

Definition at line 1292 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.

Referenced by getNormedHBEFA_HCEmissions(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

SUMOReal MSLane::getHBEFA_NOxEmissions ( ) const
inherited

Returns the sum of last step NOx emissions.

Returns
NOx emissions of vehicles on this lane during the last step

Definition at line 1280 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.

Referenced by getNormedHBEFA_NOxEmissions(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

SUMOReal MSLane::getHBEFA_PMxEmissions ( ) const
inherited

Returns the sum of last step PMx emissions.

Returns
PMx emissions of vehicles on this lane during the last step

Definition at line 1268 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::releaseVehicles(), and SUMOReal.

Referenced by getNormedHBEFA_PMxEmissions(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

const std::string& Named::getID ( ) const
inlineinherited

Returns the id.

Returns
The stored id

Definition at line 60 of file Named.h.

References Named::myID.

Referenced by NIImporter_SUMO::_loadNetwork(), Named::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBTrafficLightDefinition::collectEdges(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NBEdge::connections_sorter(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), GUINet::createTLWrapper(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), RODFNet::getDetectorEdge(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), AGStreet::getName(), NIImporter_VISUM::getNamedEdgeContinuating(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), RODFDetectorCon::guessEmptyFlows(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), NIImporter_OpenDrive::loadNetwork(), NBRampsComputer::moveRampRight(), MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting(), MSVehicle::MSVehicle(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), NIXMLTrafficLightsHandler::myEndElement(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), MSDevice_Person::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Example::notifyMove(), GUIViewTraffic::onGamingClick(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_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(), NBLoadedTLDef::SignalGroup::patchTYellow(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Vehicle::processSet(), NWWriter_SUMO::prohibitionConnection(), NBEdgeCont::recheckPostProcessConnections(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), PCPolyContainer::save(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), NIXMLEdgesHandler::setNodes(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), GUITrafficLightLogicWrapper::switchTLSLogic(), NIXMLConnectionsHandler::validateLaneInfo(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), 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(), 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(), MSInductLoop::writeTypedXMLOutput(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().

const std::vector<IncomingLaneInfo>& MSLane::getIncomingLanes ( ) const
inlineinherited
MSVehicle * MSLane::getLastVehicle ( ) const
virtualinherited
std::pair< MSVehicle *, SUMOReal > MSLane::getLastVehicleInformation ( ) const
inherited

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.

Returns
Information about the last vehicle and it's back position

Definition at line 645 of file MSLane.cpp.

References MSVehicleType::getLength(), MSVehicle::getPositionOnLane(), MSBaseVehicle::getVehicleType(), MSLane::myInlappingVehicle, MSLane::myInlappingVehicleEnd, MSLane::myVehicles, and SUMOReal.

Referenced by MSVehicle::planMoveInternal().

std::pair< MSVehicle *const, SUMOReal > MSLane::getLeaderOnConsecutive ( SUMOReal  dist,
SUMOReal  seen,
SUMOReal  speed,
const MSVehicle veh,
const std::vector< MSLane * > &  bestLaneConts 
) const
inherited

Returns the 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.

Todo:
: There are some oddities:
  • what about crossing a link at red, or if a link is closed? Has a following vehicle to be regarded or not?
Parameters
[in]distThe distance to investigate
[in]seenThe already seen place (normally the place in front on own lane)
[in]speedThe speed of the vehicle used for determining whether a subsequent link will be opened at arrival time
[in]vehThe vehicle for which the information shall be computed
[in]bestLaneContsThe lanes the vehicle will use in future
Returns

Definition at line 1113 of file MSLane.cpp.

References MSCFModel::brakeGap(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSVehicle::getImpatience(), MSNet::getInstance(), MSLane::getLastVehicle(), MSVehicleType::getLength(), MSLane::getLength(), MSCFModel::getMaxDecel(), MSVehicleType::getMinGap(), MSLane::getPartialOccupator(), MSLane::getPartialOccupatorEnd(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSLane::isLinkEnd(), LINKSTATE_TL_RED, MSLane::succLinkSec(), and TIME2STEPS.

Referenced by MSLane::pWagGenericInsertion(), and MSLane::pWagSimpleInsertion().

SUMOReal MSLane::getLength ( ) const
inlineinherited

Returns the lane's length.

Returns
This lane's length

Definition at line 360 of file MSLane.h.

References MSLane::myLength.

Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::adaptToLeader(), NLHandler::addConnection(), MSLane::addIncomingLane(), NLHandler::addPOI(), MSVehicle::addStop(), GUI_E2_ZS_CollectorOverLanes::buildCollector(), MS_E2_ZS_CollectorOverLanes::buildCollector(), NLDetectorBuilder::buildInductLoop(), MSVehicle::checkRewindLinkLanes(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), GUIVehicle::drawAction_drawRailCarriages(), MSVehicle::executeMove(), MSLane::executeMovements(), MS_E2_ZS_CollectorOverLanes::extendTo(), MSVehicle::fixPosition(), MSLane::freeInsertion(), MSVehicle::getBestLanes(), MSVehicle::getDistanceToPosition(), TraCIServerAPI_Simulation::getLaneChecking(), MSLane::getLeaderOnConsecutive(), getNormedHBEFA_CO2Emissions(), getNormedHBEFA_COEmissions(), getNormedHBEFA_FuelConsumption(), getNormedHBEFA_HCEmissions(), getNormedHBEFA_NOxEmissions(), getNormedHBEFA_PMxEmissions(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), MSVehicle::getSpaceTillLastStanding(), MSActuatedTrafficLightLogic::init(), MS_E2_ZS_CollectorOverLanes::init(), MSLane::insertVehicle(), MSLane::isInsertionSuccess(), MSLane::maxSpeedGapInsertion(), MSLink::maybeOccupied(), NLTriggerBuilder::parseAndBuildBusStop(), MSVehicle::planMoveInternal(), TraCIServerAPI_Lane::processGet(), MSLane::pWagGenericInsertion(), MSLane::pWagSimpleInsertion(), GUIVehicle::selectBlockingFoes(), MSVehicle::setBlinkerInformation(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSLCM_DK2004::wantsChangeToLeft(), MSLCM_DK2004::wantsChangeToRight(), MSMeanData::writeEdge(), and MSQueueExport::writeLane().

const std::map<std::string, std::string>& Parameterised::getMap ( ) const
inlineinherited

Returns the inner key/value map.

Returns
the inner map

Definition at line 106 of file Parameterised.h.

References Parameterised::myMap.

Referenced by PCPolyContainer::save().

SUMOReal MSLane::getMeanSpeed ( ) const
inherited

Returns the mean speed on this lane.

Returns
The average speed of vehicles during the last step; default speed if no vehicle was on this lane

Definition at line 1228 of file MSLane.cpp.

References MSLane::getVehiclesSecure(), MSLane::myMaxSpeed, MSLane::myVehicles, MSLane::releaseVehicles(), and SUMOReal.

Referenced by TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

const std::string& GUIGlObject::getMicrosimID ( ) const
inlineinherited

Returns the id of the object as known to microsim.

Returns
The id of the object

Definition at line 146 of file GUIGlObject.h.

References GUIGlObject::myMicrosimID.

Referenced by GUIGlObject::createFullName(), GUIGlObject::drawName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), and GUIGLObjectPopupMenu::onCmdCopyName().

const std::vector< MSMoveReminder* >& MSLane::getMoveReminders ( ) const
inlineinherited

Return the list of this lane's move reminders.

Returns
Previously added move reminder

Definition at line 146 of file MSLane.h.

References MSLane::myMoveReminders.

Referenced by MSVehicle::adaptLaneEntering2MoveReminder(), MSVehicle::enterLaneAtInsertion(), and MSVehicle::enterLaneAtLaneChange().

SUMOReal GUILane::getNormedHBEFA_CO2Emissions ( ) const

Returns the sum of last step CO2 emissions normed by the lane's length.

Returns
CO2 emissions of vehicles on this lane during the last step, normed by the lane length

Definition at line 693 of file GUILane.cpp.

References MSLane::getHBEFA_CO2Emissions(), and MSLane::getLength().

Referenced by getColorValue().

SUMOReal GUILane::getNormedHBEFA_COEmissions ( ) const

Returns the sum of last step CO emissions normed by the lane's length.

Returns
CO emissions of vehicles on this lane during the last step, normed by the lane length

Definition at line 699 of file GUILane.cpp.

References MSLane::getHBEFA_COEmissions(), and MSLane::getLength().

Referenced by getColorValue().

SUMOReal GUILane::getNormedHBEFA_FuelConsumption ( ) const

Returns the sum of last step fuel comsumption normed by the lane's length.

Returns
Fuel comsumption of vehicles on this lane during the last step, normed by the lane length

Definition at line 723 of file GUILane.cpp.

References MSLane::getHBEFA_FuelConsumption(), and MSLane::getLength().

Referenced by getColorValue().

SUMOReal GUILane::getNormedHBEFA_HCEmissions ( ) const

Returns the sum of last step HC emissions normed by the lane's length.

Returns
HC emissions of vehicles on this lane during the last step, normed by the lane length

Definition at line 717 of file GUILane.cpp.

References MSLane::getHBEFA_HCEmissions(), and MSLane::getLength().

Referenced by getColorValue().

SUMOReal GUILane::getNormedHBEFA_NOxEmissions ( ) const

Returns the sum of last step NOx emissions normed by the lane's length.

Returns
NOx emissions of vehicles on this lane during the last step, normed by the lane length

Definition at line 711 of file GUILane.cpp.

References MSLane::getHBEFA_NOxEmissions(), and MSLane::getLength().

Referenced by getColorValue().

SUMOReal GUILane::getNormedHBEFA_PMxEmissions ( ) const

Returns the sum of last step PMx emissions normed by the lane's length.

Returns
PMx emissions of vehicles on this lane during the last step, normed by the lane length

Definition at line 705 of file GUILane.cpp.

References MSLane::getHBEFA_PMxEmissions(), and MSLane::getLength().

Referenced by getColorValue().

size_t MSLane::getNumericalID ( ) const
inlineinherited

Returns this lane's numerical id.

Returns
This lane's numerical id

Definition at line 310 of file MSLane.h.

References MSLane::myNumericalID.

SUMOReal MSLane::getOccupancy ( ) const
inherited

Returns the occupancy of this lane during the last step.

Returns
The occupancy during the last step

Definition at line 1216 of file MSLane.cpp.

References MSLane::myLength, and MSLane::myVehicleLengthSum.

Referenced by getColorValue(), TraCIServerAPI_Lane::processGet(), and MSFullExport::writeLane().

MSLane * MSLane::getParallelLane ( int  offset) const
inherited

Returns the lane with the given offset parallel to this one or 0 if it does not exist.

Parameters
[in]offsetThe offset of the result lane

Definition at line 972 of file MSLane.cpp.

References MSLane::myEdge, and MSEdge::parallelLane().

Referenced by MSAbstractLaneChangeModel::continueLaneChangeManeuver(), and MSEdge::parallelLane().

const std::string & Parameterised::getParameter ( const std::string &  key,
const std::string &  defaultValue 
) const
inherited
GUIParameterTableWindow * GUILane::getParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtual

Returns an own parameter window.

Parameters
[in]appThe application needed to build the parameter window
[in]parentThe parent window needed to build the parameter window
Returns
The built parameter window
See Also
GUIGlObject::getParameterWindow

Implements GUIGlObject.

Definition at line 630 of file GUILane.cpp.

References GUIParameterTableWindow::closeBuilding(), getAllowedVehicleClassNames(), MSLane::getSpeedLimit(), getStoredEdgeTravelTime(), MSEdge::getStreetName(), GUIParameterTableWindow::mkItem(), MSLane::myEdge, MSLane::myLength, and MSLane::myPermissions.

SUMOReal MSLane::getPartialOccupatorEnd ( ) const
inlineinherited
SVCPermissions MSLane::getPermissions ( ) const
inlineinherited

Returns the vehicle class permissions for this lane.

Returns
This lane's allowed vehicle classes

Definition at line 368 of file MSLane.h.

References MSLane::myPermissions.

Referenced by TraCIServerAPI_Lane::processGet().

GUIGLObjectPopupMenu * GUILane::getPopUpMenu ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtual
const std::vector< SUMOReal > & GUILane::getShapeLengths ( ) const

Definition at line 674 of file GUILane.cpp.

References myShapeLengths.

Referenced by GUIEdge::drawGL(), drawMarkings(), and GUIVehicle::drawRouteHelper().

const std::vector< SUMOReal > & GUILane::getShapeRotations ( ) const

Definition at line 668 of file GUILane.cpp.

References myShapeRotations.

Referenced by GUIEdge::drawGL(), drawMarkings(), and GUIVehicle::drawRouteHelper().

SUMOReal MSLane::getSpeedLimit ( ) const
inlineinherited
SUMOReal GUILane::getStoredEdgeTravelTime ( ) const
unsigned int MSLane::getVehicleNumber ( ) const
inlineinherited

Returns the number of vehicles on this lane.

Returns
The number of vehicles on this lane

Definition at line 280 of file MSLane.h.

References MSLane::myVehicles.

Referenced by MSVehicle::checkRewindLinkLanes(), MSEdge::getFreeLane(), TraCIServerAPI_Lane::processGet(), MSQueueExport::writeLane(), MSFullExport::writeLane(), and MSXMLRawOut::writeLane().

const MSLane::VehCont & GUILane::getVehiclesSecure ( ) const
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".

Returns
The vehicles on this lane
See Also
MSLane::getVehiclesSecure

Reimplemented from MSLane.

Definition at line 110 of file GUILane.cpp.

References MFXMutex::lock(), myLock, and MSLane::myVehicles.

Referenced by drawGL().

SUMOReal MSLane::getVehLenSum ( ) const
inherited

Returns the sum of lengths of vehicles which were on the lane during the last step.

Returns
The sum of vehicle lengths of vehicles in the last step

Definition at line 1222 of file MSLane.cpp.

References MSLane::myVehicleLengthSum.

Referenced by MSVehicle::checkRewindLinkLanes().

SUMOReal MSLane::getWidth ( ) const
inlineinherited

Returns the lane's width.

Returns
This lane's width

Definition at line 376 of file MSLane.h.

References MSLane::myWidth.

Referenced by MSAbstractLaneChangeModel::continueLaneChangeManeuver(), and TraCIServerAPI_Lane::processGet().

void GUILane::incorporateVehicle ( MSVehicle veh,
SUMOReal  pos,
SUMOReal  speed,
const MSLane::VehCont::iterator &  at,
MSMoveReminder::Notification  notification = MSMoveReminder::NOTIFICATION_DEPARTED 
)
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

Parameters
[in]vehThe vehicle to be incorporated
[in]posThe position of the vehicle
[in]speedThe speed of the vehicle
[in]at
[in]notificationThe cause of insertion (i.e. departure, teleport, parking) defaults to departure
See Also
MSLane::incorporateVehicle

Reimplemented from MSLane.

Definition at line 100 of file GUILane.cpp.

References MSLane::incorporateVehicle(), and myLock.

void MSLane::insertIDs ( std::vector< std::string > &  into)
staticinherited

Definition at line 839 of file MSLane.cpp.

References MSLane::myDict.

Referenced by TraCIServerAPI_Lane::processGet().

bool MSLane::insertVehicle ( MSVehicle v)
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.

Parameters
[in]vThe vehicle to insert
Returns
Whether the vehicle could be inserted
See Also
isInsertionSuccess
MSVehicle::getDepartureDefinition
MSVehicle::DepartArrivalDefinition

Definition at line 335 of file MSLane.cpp.

References DEPART_POS_BASE, DEPART_POS_DEFAULT, DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_MAX_SPEED_GAP, DEPART_POS_PWAG_GENERIC, DEPART_POS_PWAG_SIMPLE, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, DEPART_SPEED_DEFAULT, DEPART_SPEED_GIVEN, DEPART_SPEED_MAX, DEPART_SPEED_RANDOM, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSLane::freeInsertion(), MSVehicleType::getLength(), MSLane::getLength(), MSBaseVehicle::getMaxSpeed(), MSBaseVehicle::getParameter(), MSLane::getVehicleMaxSpeed(), MSBaseVehicle::getVehicleType(), MSLane::isInsertionSuccess(), MSLane::maxSpeedGapInsertion(), MIN2(), MSLane::myLength, POSITION_EPS, MSLane::pWagGenericInsertion(), MSLane::pWagSimpleInsertion(), RandHelper::rand(), and SUMOReal.

Referenced by MSEdge::insertVehicle().

bool GUILane::integrateNewVehicle ( SUMOTime  t)
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 151 of file GUILane.cpp.

References MSLane::integrateNewVehicle(), and myLock.

SUMOReal MSLane::interpolateGeometryPosToLanePos ( SUMOReal  geometryPos) const
inlineinherited
SUMOReal MSLane::interpolateLanePosToGeometryPos ( SUMOReal  lanePos) const
inlineinherited
bool MSLane::isApproachedFrom ( MSEdge *const  edge)
inherited

Definition at line 998 of file MSLane.cpp.

References MSLane::myApproachingLanes.

bool MSLane::isApproachedFrom ( MSEdge *const  edge,
MSLane *const  lane 
)
inherited

Definition at line 1004 of file MSLane.cpp.

References MSLane::myApproachingLanes.

bool MSLane::isInsertionSuccess ( MSVehicle vehicle,
SUMOReal  speed,
SUMOReal  pos,
bool  recheckNextLanes,
MSMoveReminder::Notification  notification = MSMoveReminder::NOTIFICATION_DEPARTED 
)
virtualinherited

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.

Parameters
[in]vehicleThe vehicle to insert
[in]speedThe speed with which it shall be inserted
[in]posThe position at which it shall be inserted
[in]recheckNextLanesForces patching the speed for not being too fast on next lanes
[in]notificationThe cause of insertion (i.e. departure, teleport, parking) defaults to departure
Returns
Whether the vehicle could be inserted
See Also
MSVehicle::enterLaneAtInsertion

Definition at line 405 of file MSLane.cpp.

References ARRIVAL_SPEED_GIVEN, SUMOVehicleParameter::arrivalSpeed, SUMOVehicleParameter::arrivalSpeedProcedure, MSRoute::begin(), MSCFModel::brakeGap(), MSInsertionControl::descheduleDeparture(), MSCFModel::followSpeed(), MSCFModel::freeSpeed(), MSVehicle::gap(), MSVehicle::getBestLanes(), MSVehicle::getBestLanesContinuation(), MSVehicle::getCarFollowModel(), MSNet::getCurrentTimeStep(), MSLane::getEdge(), MSBaseVehicle::getID(), MSVehicle::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(), MSLane::isLinkEnd(), LINKSTATE_ALLWAY_STOP, LINKSTATE_EQUAL, LINKSTATE_MINOR, LINKSTATE_STOP, MIN2(), MSLane::myLength, MSLane::myMaxSpeed, MSLane::myVehicles, MSMoveReminder::NOTIFICATION_TELEPORT, MSCFModel::stopSpeed(), MSLane::succLinkSec(), SUMOReal, TIME2STEPS, toString(), WRITE_ERROR, and WRITE_WARNING.

Referenced by MSVehicleTransfer::checkInsertions(), traci::TraCIServer::commandAddVehicle(), MSLane::freeInsertion(), MSLane::insertVehicle(), and MSLane::maxSpeedGapInsertion().

bool MSLane::isLinkEnd ( MSLinkCont::const_iterator &  i) const
inherited

Returns the information whether the given link shows at the end of the list of links (is not valid)

Definition at line 871 of file MSLane.cpp.

References MSLane::myLinks.

Referenced by MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealThisLeader(), MSLane::isInsertionSuccess(), and MSVehicle::planMoveInternal().

bool MSLane::isLinkEnd ( MSLinkCont::iterator &  i)
inherited

Returns the information whether the given link shows at the end of the list of links (is not valid)

Definition at line 877 of file MSLane.cpp.

References MSLane::myLinks.

bool Parameterised::knowsParameter ( const std::string &  key) const
inherited

Returns whether the parameter is known.

Parameters
[in]keyThe key to ask for
Returns
Whether the key is known

Definition at line 75 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSDevice_Example::buildVehicleDevices(), and TraCIServerAPI_Vehicle::vtdMap_matchingNearest().

void MSLane::leftByLaneChange ( MSVehicle v)
inherited
void MSLane::loadState ( std::vector< std::string > &  vehIDs,
MSVehicleControl vc 
)
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.

Parameters
[in]vehIDsThe vehicle ids for the current que
[in]vcThe vehicle control to retrieve references vehicles from
Todo:

What about throwing an IOError?

What about throwing an error if something else fails (a vehicle can not be referenced)?

Definition at line 1376 of file MSLane.cpp.

References MSVehicle::getBestLanes(), MSVehicle::getPositionOnLane(), MSVehicle::getSpeed(), MSVehicleControl::getVehicle(), MSLane::incorporateVehicle(), MSLane::myVehicles, and MSMoveReminder::NOTIFICATION_JUNCTION.

void GUILane::planMovements ( const SUMOTime  t)
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 123 of file GUILane.cpp.

References myLock, and MSLane::planMovements().

void GUILane::releaseVehicles ( ) const
virtual

Allows to use the container for microsimulation again.

Unlocks "myLock" preventing usage by microsimulation.

See Also
MSLane::releaseVehicles

Reimplemented from MSLane.

Definition at line 117 of file GUILane.cpp.

References myLock, and MFXMutex::unlock().

Referenced by drawGL().

void GUIGlObject::removeParameterTable ( GUIParameterTableWindow w)
inherited

Lets this object know a parameter window showing the object's values was closed.

Parameters
[in]wThe closed parameter window

Definition at line 193 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

MSVehicle * GUILane::removeVehicle ( MSVehicle remVehicle,
MSMoveReminder::Notification  notification 
)
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 137 of file GUILane.cpp.

References myLock, and MSLane::removeVehicle().

void MSLane::resetPartialOccupation ( MSVehicle v)
inherited

Removes the information about a vehicle lapping into this lane.

Parameters
[in]vThe vehicle which laps into this lane

Definition at line 636 of file MSLane.cpp.

References MSLane::myInlappingVehicle, and MSLane::myInlappingVehicleEnd.

void MSLane::saveState ( OutputDevice out)
inherited

Saves the state of this lane into the given stream.

Basically, a list of vehicle ids

Parameters
in,filled]out The (possibly binary) device to write the state into
Todo:
What about throwing an IOError?

Definition at line 1366 of file MSLane.cpp.

References OutputDevice::closeTag(), MSLane::myVehicles, OutputDevice::openTag(), SUMO_ATTR_VALUE, SUMO_TAG_LANE, SUMO_TAG_VIEWSETTINGS_VEHICLES, and OutputDevice::writeAttr().

void GUILane::setColor ( const GUIVisualizationSettings s) const
private

sets the color according to the currente settings

Definition at line 729 of file GUILane.cpp.

References GUIColorer::getActive(), GUIColorScheme::getColor(), getColorValue(), GUIColorer::getScheme(), GUIVisualizationSettings::laneColorer, and GLHelper::setColor().

Referenced by drawCrossties(), drawGL(), and drawMarkings().

void Named::setID ( const std::string &  newID)
inlineinherited

resets the id

Parameters
[in]newIDThe new id of this object

Definition at line 68 of file Named.h.

References Named::myID.

Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().

void MSLane::setLength ( SUMOReal  val)
inlineinherited

Definition at line 434 of file MSLane.h.

References MSLane::myLength.

Referenced by TraCIServerAPI_Lane::processSet().

void MSLane::setMaxSpeed ( SUMOReal  val)
inlineinherited

Definition at line 430 of file MSLane.h.

References MSLane::myMaxSpeed.

Referenced by TraCIServerAPI_Lane::processSet().

void GUIGlObject::setMicrosimID ( const std::string &  newID)
inherited

Changes the microsimID of the object (happens in NETEDIT)

Definition at line 108 of file GUIGlObject.cpp.

References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myMicrosimID.

SUMOReal MSLane::setPartialOccupation ( MSVehicle v,
SUMOReal  leftVehicleLength 
)
inherited

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.

Parameters
[in]vThe vehicle which laps into this lane
[in]leftVehicleLengthThe distance the vehicle laps into this lane
Returns
This lane's length

Definition at line 624 of file MSLane.cpp.

References MSLane::myInlappingVehicle, MSLane::myInlappingVehicleEnd, and MSLane::myLength.

void MSLane::setPermissions ( SVCPermissions  permissions)
inlineinherited

Definition at line 507 of file MSLane.h.

References MSLane::myPermissions.

Referenced by TraCIServerAPI_Lane::processSet().

void GUIGlObject::setPrefix ( const std::string &  prefix)
protectedinherited
MSLinkCont::const_iterator MSLane::succLinkSec ( const SUMOVehicle veh,
unsigned int  nRouteSuccs,
const MSLane succLinkSource,
const std::vector< MSLane * > &  conts 
) const
virtualinherited

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 901 of file MSLane.cpp.

References MSEdge::EDGEFUNCTION_INTERNAL, MSLane::getEdge(), MSEdge::getPurpose(), MSVehicleType::getVehicleClass(), SUMOVehicle::getVehicleType(), MSLane::myLinks, and SUMOVehicle::succEdge().

Referenced by MSLane::appropriate(), MSLane::getLeaderOnConsecutive(), MSLaneChanger::getRealThisLeader(), MSLane::isInsertionSuccess(), MSVehicle::planMoveInternal(), and MSVehicle::setBlinkerInformation().

void GUILane::swapAfterLaneChange ( SUMOTime  t)
protectedvirtual

moves myTmpVehicles int myVehicles after a lane change procedure

Reimplemented from MSLane.

Definition at line 144 of file GUILane.cpp.

References myLock, and MSLane::swapAfterLaneChange().

Field Documentation

std::map<MSEdge*, std::vector<MSLane*> > MSLane::myApproachingLanes
protectedinherited

Definition at line 739 of file MSLane.h.

Referenced by MSLane::addApproachingLane(), and MSLane::isApproachedFrom().

MSLane::DictType MSLane::myDict
staticprotectedinherited

Static dictionary to associate string-ids with objects.

Definition at line 748 of file MSLane.h.

Referenced by MSLane::clear(), MSLane::dictionary(), MSLane::dictSize(), and MSLane::insertIDs().

SUMOReal GUILane::myHalfLaneWidth
private

Half of lane width, for speed-up.

Definition at line 304 of file GUILane.h.

Referenced by drawGL(), drawLinkNo(), drawLinkRules(), drawMarkings(), drawTLSLinkNo(), getHalfWidth(), and GUILane().

std::vector<IncomingLaneInfo> MSLane::myIncomingLanes
protectedinherited
unsigned int GUILane::myIndex
private

The lane index.

Definition at line 310 of file GUILane.h.

Referenced by drawMarkings(), and GUILane().

MSVehicle* MSLane::myInlappingVehicle
protectedinherited

The vehicle which laps into this lane.

Definition at line 732 of file MSLane.h.

Referenced by MSLane::getLastVehicleInformation(), MSLane::getPartialOccupator(), MSLane::resetPartialOccupation(), and MSLane::setPartialOccupation().

SUMOReal MSLane::myInlappingVehicleEnd
protectedinherited

End position of a vehicle which laps into this lane.

Definition at line 729 of file MSLane.h.

Referenced by MSLane::getLastVehicleInformation(), MSLane::getPartialOccupatorEnd(), MSLane::resetPartialOccupation(), and MSLane::setPartialOccupation().

const SUMOReal MSLane::myLengthGeometryFactor
protectedinherited
MSLinkCont MSLane::myLinks
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 737 of file MSLane.h.

Referenced by MSLane::addLink(), MSLane::appropriate(), drawArrows(), drawLane2LaneConnections(), drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSLane::getLinkCont(), MSLane::isLinkEnd(), MSLane::succLinkSec(), and MSLane::~MSLane().

MFXMutex GUILane::myLock
mutableprivate

The mutex used to avoid concurrent updates of the vehicle buffer.

Definition at line 319 of file GUILane.h.

Referenced by detectCollisions(), executeMovements(), getVehiclesSecure(), incorporateVehicle(), integrateNewVehicle(), planMovements(), releaseVehicles(), removeVehicle(), swapAfterLaneChange(), and ~GUILane().

MSLane* MSLane::myLogicalPredecessorLane
mutableprotectedinherited

Definition at line 722 of file MSLane.h.

Referenced by MSLane::getLogicalPredecessorLane().

SUMOReal MSLane::myMaxSpeed
protectedinherited
size_t MSLane::myNumericalID
protectedinherited

Unique numerical ID (set on reading by netload)

Definition at line 687 of file MSLane.h.

Referenced by MSLane::getNumericalID().

SVCPermissions MSLane::myPermissions
protectedinherited

The vClass permissions for this lane.

Definition at line 719 of file MSLane.h.

Referenced by MSLane::allowsVehicleClass(), drawGL(), drawLinkRules(), getParameterWindow(), MSLane::getPermissions(), and MSLane::setPermissions().

SUMOReal GUILane::myQuarterLaneWidth
private

Quarter of lane width, for speed-up.

Definition at line 307 of file GUILane.h.

Referenced by drawGL(), drawMarkings(), and GUILane().

PositionVector MSLane::myShape
inherited

The shape of the lane.

Definition at line 493 of file MSLane.h.

Referenced by drawGL(), MSLane::geometryPositionAtOffset(), getCenteringBoundary(), getPopUpMenu(), getShape(), MSLane::getShape(), and GUILane().

std::vector<SUMOReal> GUILane::myShapeLengths
private

The lengths of the shape parts.

Definition at line 301 of file GUILane.h.

Referenced by drawCrossties(), drawGL(), drawMarkings(), getShapeLengths(), and GUILane().

std::vector<SUMOReal> GUILane::myShapeRotations
private

The rotations of the shape parts.

Definition at line 298 of file GUILane.h.

Referenced by drawCrossties(), drawGL(), drawMarkings(), getShapeRotations(), and GUILane().

VehCont MSLane::myTmpVehicles
protectedinherited

Container for lane-changing vehicles. After completion of lane-change- process, the two containers will be swapped.

Definition at line 712 of file MSLane.h.

Referenced by MSLane::swapAfterLaneChange().

std::vector<MSVehicle*> MSLane::myVehBuffer
protectedinherited

buffer for vehicles that moved from their previous lane onto this one

Definition at line 716 of file MSLane.h.

Referenced by MSLane::empty(), MSLane::executeMovements(), MSLane::integrateNewVehicle(), MSQueueExport::writeLane(), and MSXMLRawOut::writeLane().

VehCont MSLane::myVehicles
protectedinherited
SUMOReal MSLane::myWidth
protectedinherited

Lane width [m].

Definition at line 702 of file MSLane.h.

Referenced by drawLinkNo(), drawLinkRules(), drawTLSLinkNo(), MSLane::getWidth(), and GUILane().

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 99 of file GUIGlObject.h.


The documentation for this class was generated from the following files: