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

A road/street connecting two junctions (gui-version) More...

#include <GUIEdge.h>

Inheritance diagram for GUIEdge:
Inheritance graph
Collaboration diagram for GUIEdge:
Collaboration graph

Public Types

typedef std::map< const MSEdge
*, std::vector< MSLane * > * > 
AllowedLanesCont
 Suceeding edges (keys) and allowed lanes to reach these edges (values). More...
 
typedef std::map
< SUMOVehicleClass,
AllowedLanesCont
ClassedAllowedLanesCont
 Map from vehicle types to lanes that may be used to reach one of the next edges. More...
 
enum  EdgeBasicFunction {
  EDGEFUNCTION_UNKNOWN = -1, EDGEFUNCTION_NORMAL = 0, EDGEFUNCTION_CONNECTOR = 1, EDGEFUNCTION_INTERNAL = 2,
  EDGEFUNCTION_DISTRICT = 3, EDGEFUNCTION_CROSSING = 4, EDGEFUNCTION_WALKINGAREA = 5
}
 Defines possible edge types. More...
 

Public Member Functions

void addContainer (MSTransportable *c) const
 Add a container to myContainers. More...
 
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 addPerson (MSTransportable *p) const
 
void addRerouter ()
 add a rerouter More...
 
void addTo (const StoringVisitor &cont) const
 Adds this object to the given container. More...
 
bool allowsLaneChanging ()
 
void buildLaneChanger ()
 Has to be called after all sucessors and predecessors have been set (after closeBuilding()) More...
 
bool canChangeToOpposite ()
 whether this edge allows changing to the opposite direction edge More...
 
virtual void changeLanes (SUMOTime t)
 Performs lane changing on this edge. More...
 
void clearParameter ()
 Clears the parameter map. More...
 
void closeBuilding ()
 
void closeTraffic (const GUILane *lane)
 close this edge for traffic More...
 
virtual void drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const
 Draws additional, user-triggered visualisations. More...
 
void drawMesoVehicles (const GUIVisualizationSettings &s) const
 
void drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const
 draw name of item More...
 
SUMOReal getAllowedSpeed () const
 
Boundary getBoundary () const
 Returns the street's geometry. More...
 
SUMOReal getBruttoOccupancy () const
 
SUMOReal getColorValue (int activeScheme) const
 gets the color value according to the current scheme index More...
 
const std::vector< std::string > & getCrossingEdges () const
 Gets the crossed edge ids. More...
 
SUMOReal getCurrentTravelTime (const SUMOReal minSpeed=NUMERICAL_EPS) const
 Computes and returns the current travel time for this edge. More...
 
SUMOReal getDistanceTo (const MSEdge *other) const
 optimistic air distance heuristic for use in routing More...
 
SUMOReal getFlow () const
 return flow based on meanSpead More...
 
const std::string & getID () const
 Returns the id. More...
 
MSLanegetLane (int laneNo)
 returns the enumerated lane (!!! why not private with a friend?) More...
 
SUMOReal getLength () const
 return the length of the edge More...
 
const std::map< std::string,
std::string > & 
getMap () const
 Returns the inner key/value map. More...
 
SUMOReal getMeanSpeed () const
 get the mean speed More...
 
SUMOReal getMinimumTravelTime (const SUMOVehicle *const veh) const
 returns the minimum travel time for the given vehicle More...
 
const std::string & getParameter (const std::string &key, const std::string &defaultValue) const
 Returns the value for a given key. More...
 
SVCPermissions getPermissions () const
 
SUMOReal getRelativeSpeed () const
 return meanSpead divided by allowedSpeed More...
 
SUMOReal getRoutingSpeed () const
 Returns the averaged speed used by the routing device. More...
 
SUMOReal getScaleValue (int activeScheme) const
 gets the scaling value according to the current scheme index More...
 
MESegmentgetSegmentAtPosition (const Position &pos)
 returns the segment closest to the given position More...
 
const std::vector< RGBColor > & getSegmentColors () const
 return segment colors (meso) More...
 
SUMOReal getSpeedLimit () const
 Returns the speed limit of the edge The speed limit of the first lane is retured; should probably be the fastest edge. More...
 
const std::vector< SUMORealgetSubLaneSides () const
 Returns the right side offsets of this edge's sublanes. More...
 
std::string getVehicleIDs () const
 
SUMOReal getVehicleMaxSpeed (const SUMOVehicle *const veh) const
 Returns the maximum speed the vehicle may use on this edge. More...
 
int getVehicleNo () const
 
SUMOReal getWidth () const
 Returns the edges's width (sum over all lanes) More...
 
 GUIEdge (const std::string &id, int numericalID, const EdgeBasicFunction function, const std::string &streetName, const std::string &edgeType, int priority)
 Constructor. More...
 
bool hasLaneChanger () const
 
void initialize (const std::vector< MSLane * > *lanes)
 Initialize the edge. More...
 
bool isRoundabout () const
 
bool knowsParameter (const std::string &key) const
 Returns whether the parameter is known. More...
 
void lock () const
 grant exclusive access to the mesoscopic state More...
 
void markAsRoundabout ()
 
void markDelayed () const
 
bool prohibits (const SUMOVehicle *const vehicle) const
 Returns whether the vehicle (class) is not allowed on the edge. More...
 
void rebuildAllowedLanes ()
 
void recalcCache ()
 Recalculates the cached values. More...
 
void removeContainer (MSTransportable *c) const
 Remove container from myContainers. More...
 
void removePerson (MSTransportable *p) const
 
void setColor (const GUIVisualizationSettings &s) const
 sets the color according to the currente settings More...
 
void setCrossingEdges (const std::vector< std::string > &crossingEdges)
 Sets the crossed edge ids for a crossing edge. More...
 
bool setFunctionalColor (int activeScheme) const
 sets the color according to the current scheme index and some edge function More...
 
void setID (const std::string &newID)
 resets the id More...
 
void setMaxSpeed (SUMOReal val) const
 Sets a new maximum speed for all lanes (used by TraCI and MSCalibrator) More...
 
bool setMultiColor (const GUIColorer &c) const
 sets multiple colors according to the current scheme index and edge function More...
 
void unlock () const
 release exclusive access to the mesoscopic state More...
 
 ~GUIEdge ()
 Destructor. More...
 
inherited from GUIGlObject
virtual GUIGLObjectPopupMenugetPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own popup-menu. More...
 
virtual 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...
 
Access to the edge's lanes
MSLaneleftLane (const MSLane *const lane) const
 Returns the lane left to the one given, 0 if the given lane is leftmost. More...
 
MSLanerightLane (const MSLane *const lane) const
 Returns the lane right to the one given, 0 if the given lane is rightmost. More...
 
MSLaneparallelLane (const MSLane *const lane, int offset) const
 Returns the lane with the given offset parallel to the given lane one or 0 if it does not exist. More...
 
const std::vector< MSLane * > & getLanes () const
 Returns this edge's lanes. More...
 
const std::set
< MSTransportable * > & 
getPersons () const
 Returns this edge's persons set. More...
 
std::vector< MSTransportable * > getSortedPersons (SUMOTime timestep) const
 Returns this edge's persons sorted by pos. More...
 
std::vector< MSTransportable * > getSortedContainers (SUMOTime timestep) const
 Returns this edge's containers sorted by pos. More...
 
const std::vector< MSLane * > * allowedLanes (const MSEdge &destination, SUMOVehicleClass vclass=SVC_IGNORING) const
 Get the allowed lanes to reach the destination-edge. More...
 
const std::vector< MSLane * > * allowedLanes (SUMOVehicleClass vclass=SVC_IGNORING) const
 Get the allowed lanes for the given vehicle class. More...
 
Access to other edge attributes
EdgeBasicFunction getPurpose () const
 Returns the edge type (EdgeBasicFunction) More...
 
bool isInternal () const
 return whether this edge is an internal edge More...
 
bool isCrossing () const
 return whether this edge is a pedestrian crossing More...
 
bool isWalkingArea () const
 return whether this edge is walking area More...
 
bool isTaz () const
 
int getNumericalID () const
 Returns the numerical id of the edge. More...
 
const std::string & getStreetName () const
 Returns the street name of the edge. More...
 
const std::string & getEdgeType () const
 Returns the type of the edge. More...
 
int getPriority () const
 Returns the priority of the edge. More...
 
Access to succeeding/predecessing edges
void addSuccessor (MSEdge *edge)
 Adds an edge to the list of edges which may be reached from this edge and to the incoming of the other edge. More...
 
const MSEdgeVectorgetIncomingEdges () const
 Returns the list of edges from which this edge may be reached. More...
 
const std::vector< MSEdge * > & getOutgoingEdges () const
 Returns the list of edges that may be reached from this edge. More...
 
int getNumSuccessors () const
 Returns the number of edges that may be reached from this edge. More...
 
const MSEdgeVectorgetSuccessors () const
 Returns the following edges. More...
 
const MSEdgeVectorgetSuccessors (SUMOVehicleClass vClass) const
 Returns the following edges, restricted by vClass. More...
 
int getNumPredecessors () const
 Returns the number of edges this edge is connected to. More...
 
const MSEdgeVectorgetPredecessors () const
 Returns the edge at the given position from the list of reachable edges. More...
 
const MSJunctiongetFromJunction () const
 
const MSJunctiongetToJunction () const
 
void setJunctions (MSJunction *from, MSJunction *to)
 
Access to vaporizing interface
bool isVaporizing () const
 Returns whether vehicles on this edge shall be vaporized. More...
 
SUMOTime incVaporization (SUMOTime t)
 Enables vaporization. More...
 
SUMOTime decVaporization (SUMOTime t)
 Disables vaporization. More...
 
Methods releated to vehicle insertion
bool insertVehicle (SUMOVehicle &v, SUMOTime time, const bool checkOnly=false) const
 Tries to insert the given vehicle into the network. More...
 
MSLanegetFreeLane (const std::vector< MSLane * > *allowed, const SUMOVehicleClass vclass) const
 Finds the emptiest lane allowing the vehicle class. More...
 
MSLanegetDepartLane (MSVehicle &veh) const
 Finds a depart lane for the given vehicle parameters. More...
 
SUMOTime getLastFailedInsertionTime () const
 Returns the last time a vehicle could not be inserted. More...
 
void setLastFailedInsertionTime (SUMOTime time) const
 Sets the last time a vehicle could not be inserted. More...
 
Atomar getter methods

Returns the full name appearing in the tool tip

Returns
This object's typed id
const std::string & getFullName () const
 
virtual const std::string & getParentName () const
 Returns the name of the parent object (if any) More...
 
GUIGlID getGlID () const
 Returns the numerical id of the object. More...
 
interfaces to be implemented by derived classes
virtual GUIParameterTableWindowgetTypeParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent)
 Returns an own type parameter window (optional) More...
 
virtual const std::string & getMicrosimID () const
 Returns the id of the object as known to microsim. More...
 
virtual void setMicrosimID (const std::string &newID)
 Changes the microsimID of the object. More...
 
GUIGlObjectType getType () const
 Returns the type of the object as coded in GUIGlObjectType. More...
 
Parameter table window I/O

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

Parameters
[in]wThe opened parameter window
void addParameterTable (GUIParameterTableWindow *w)
 
void removeParameterTable (GUIParameterTableWindow *w)
 Lets this object know a parameter window showing the object's values was closed. More...
 

Static Public Member Functions

static void clear ()
 Clears the dictionary. More...
 
static bool dictionary (const std::string &id, MSEdge *edge)
 Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary. Otherwise returns false. More...
 
static MSEdgedictionary (const std::string &id)
 Returns the MSEdge associated to the key id if exists, otherwise returns 0. More...
 
static int dictSize ()
 Returns the number of edges. More...
 
static void fill (std::vector< GUIEdge * > &netsWrappers)
 
static const MSEdgeVectorgetAllEdges ()
 Returns all edges with a numerical id. More...
 
static std::vector< GUIGlIDgetIDs (bool includeInternal)
 
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 std::pair< SUMOReal,
SUMOReal
getLaneOffsets (SUMOReal x1, SUMOReal y1, SUMOReal x2, SUMOReal y2, SUMOReal prev, SUMOReal wanted)
 
static SUMOReal getTotalLength (bool includeInternal, bool eachLane)
 
static SUMOReal getTravelTimeStatic (const MSEdge *const edge, const SUMOVehicle *const veh, SUMOReal time)
 Returns the travel time for the given edge. More...
 
static void insertIDs (std::vector< std::string > &into)
 Inserts IDs of all known edges into the given vector. More...
 
Static parser helper
static void parseEdgesList (const std::string &desc, ConstMSEdgeVector &into, const std::string &rid)
 Parses the given string assuming it contains a list of edge ids divided by spaces. More...
 
static void parseEdgesList (const std::vector< std::string > &desc, ConstMSEdgeVector &into, const std::string &rid)
 Parses the given string vector assuming it edge ids. More...
 

Data Fields

std::vector< RGBColormySegmentColors
 The color of the segments (cached) More...
 

Static Public Attributes

static const GUIGlID INVALID_ID = 0
 
static StringBijection
< GUIGlObjectType
TypeNames
 associates object types with strings More...
 

Protected Member Functions

const std::vector< MSLane * > * allowedLanes (const MSEdge *destination, SUMOVehicleClass vclass=SVC_IGNORING) const
 Get the allowed lanes to reach the destination-edge. More...
 
const std::vector< MSLane * > * getAllowedLanesWithDefault (const AllowedLanesCont &c, const MSEdge *dest) const
 lookup in map and return 0 if not found More...
 
void setPrefix (const std::string &prefix)
 usually names are prefixed by a type-specific string. this method can be used to change the default More...
 
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

bool myAmDelayed
 whether this edge had a vehicle with less than max speed on it More...
 
bool myAmRoundabout
 whether this edge belongs to a roundabout More...
 
std::map< SUMOVehicleClass,
MSEdgeVector
myClassesSuccessorMap
 The successors available for a given vClass. More...
 
std::set< MSTransportable * > myContainers
 Containers on the edge. More...
 
std::vector< std::string > myCrossingEdges
 The crossed edges id for a crossing edge. On not crossing edges it is empty. More...
 
std::string myEdgeType
 the type of the edge (optionally used during network creation) More...
 
SUMOReal myEmptyTraveltime
 the traveltime on the empty edge (cached value for speedup) More...
 
MSJunctionmyFromJunction
 the junctions for this edge More...
 
const EdgeBasicFunction myFunction
 the purpose of the edge More...
 
std::string myID
 The name of the object. More...
 
MSLaneChangermyLaneChanger
 This member will do the lane-change. More...
 
const std::vector< MSLane * > * myLanes
 Container for the edge's lane; should be sorted: (right-hand-traffic) the more left the lane, the higher the container-index. More...
 
SUMOTime myLastFailedInsertionTime
 The time of last insertion failure. More...
 
SUMOReal myLength
 the length of the edge (cached value for speedup) More...
 
const int myNumericalID
 This edge's numerical id. More...
 
std::set< MSTransportable * > myPersons
 Persons on the edge for drawing and pushbutton. More...
 
MSEdgeVector myPredecessors
 The preceeding edges. More...
 
const int myPriority
 the priority of the edge (used during network creation) More...
 
std::string myStreetName
 the real-world name of this edge (need not be unique) More...
 
std::vector< SUMORealmySublaneSides
 the right side for each sublane on this edge More...
 
MSEdgeVector mySuccessors
 The succeeding edges. More...
 
MSJunctionmyToJunction
 
int myVaporizationRequests
 Vaporizer counter. More...
 
SUMOReal myWidth
 Edge width [m]. More...
 
Storages for allowed lanes (depending on vehicle classes)
AllowedLanesCont myAllowed
 Associative container from destination-edge to allowed-lanes. More...
 
ClassedAllowedLanesCont myClassedAllowed
 From vehicle class to lanes allowed to be used by it. More...
 
SVCPermissions myMinimumPermissions
 The intersection of lane permissions for this edge. More...
 
SVCPermissions myCombinedPermissions
 The union of lane permissions for this edge. More...
 

Private Member Functions

 GUIEdge (const GUIEdge &s)
 invalidated copy constructor More...
 
GUIEdgeoperator= (const GUIEdge &s)
 invalidated assignment operator More...
 

Private Attributes

MFXMutex myLock
 The mutex used to avoid concurrent updates of myPersons/ myContainers. More...
 

Static edge container

typedef std::map< std::string,
MSEdge * > 
DictType
 definition of the static dictionary type More...
 
static DictType myDict
 Static dictionary to associate string-ids with objects. More...
 
static MSEdgeVector myEdges
 Static list of edges. More...
 

Detailed Description

A road/street connecting two junctions (gui-version)

See also
MSEdge

Definition at line 60 of file GUIEdge.h.

Member Typedef Documentation

typedef std::map< const MSEdge*, std::vector<MSLane*>* > MSEdge::AllowedLanesCont
inherited

Suceeding edges (keys) and allowed lanes to reach these edges (values).

Definition at line 108 of file MSEdge.h.

Map from vehicle types to lanes that may be used to reach one of the next edges.

Definition at line 111 of file MSEdge.h.

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

definition of the static dictionary type

Definition at line 846 of file MSEdge.h.

Member Enumeration Documentation

enum MSEdge::EdgeBasicFunction
inherited

Defines possible edge types.

For different purposes, it is necessary to know whether the edge is a normal street or something special.

Enumerator
EDGEFUNCTION_UNKNOWN 

The purpose of the edge is not known.

EDGEFUNCTION_NORMAL 

The edge is a normal street.

EDGEFUNCTION_CONNECTOR 

The edge is a macroscopic connector (source/sink)

EDGEFUNCTION_INTERNAL 

The edge is an internal edge.

EDGEFUNCTION_DISTRICT 

The edge is a district edge.

EDGEFUNCTION_CROSSING 

The edge is a pedestrian crossing (a special type of internal edge)

EDGEFUNCTION_WALKINGAREA 

The edge is a pedestrian walking area (a special type of internal edge)

Definition at line 89 of file MSEdge.h.

Constructor & Destructor Documentation

GUIEdge::GUIEdge ( const std::string &  id,
int  numericalID,
const EdgeBasicFunction  function,
const std::string &  streetName,
const std::string &  edgeType,
int  priority 
)

Constructor.

Parameters
[in]idThe id of the edge
[in]numericalIDThe numerical id (index) of the edge
See also
MSEdge

Definition at line 78 of file GUIEdge.cpp.

GUIEdge::~GUIEdge ( )

Destructor.

Definition at line 85 of file GUIEdge.cpp.

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

GUIEdge::GUIEdge ( const GUIEdge s)
private

invalidated copy constructor

Member Function Documentation

void GUIEdge::addContainer ( MSTransportable container) const
inlinevirtual

Add a container to myContainers.

Reimplemented from MSEdge.

Definition at line 157 of file GUIEdge.h.

References MSEdge::addContainer(), and myLock.

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

Definition at line 260 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

void GUIEdge::addPerson ( MSTransportable p) const
inlinevirtual

Reimplemented from MSEdge.

Definition at line 146 of file GUIEdge.h.

References MSEdge::addPerson(), and myLock.

void MSEdge::addSuccessor ( MSEdge edge)
inlineinherited

Adds an edge to the list of edges which may be reached from this edge and to the incoming of the other edge.

This is mainly used by the taz (district) parsing

Parameters
[in]edgeThe edge to add

Definition at line 323 of file MSEdge.h.

References MSEdge::myPredecessors, and MSEdge::mySuccessors.

Referenced by NLHandler::addDistrict().

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 129 of file Named.h.

References Named::StoringVisitor::add().

const std::vector< MSLane * > * MSEdge::allowedLanes ( const MSEdge destination,
SUMOVehicleClass  vclass = SVC_IGNORING 
) const
inherited

Get the allowed lanes to reach the destination-edge.

If there is no such edge, get 0. Then you are on the wrong edge.

Parameters
[in]destinationThe edge to reach
[in]vclassThe vehicle class for which this information shall be returned
Returns
The lanes that may be used to reach the given edge, 0 if no such lanes exist

Definition at line 300 of file MSEdge.cpp.

Referenced by MSEdge::allowedLanes(), MSVehicleTransfer::checkInsertions(), MSEdge::getDepartLane(), MSEdge::getFreeLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSEdge::getSuccessors(), MESegment::MESegment(), MSLane::by_connections_to_sorter::operator()(), MSBaseVehicle::reroute(), and MSVehicle::updateBestLanes().

const std::vector< MSLane * > * MSEdge::allowedLanes ( SUMOVehicleClass  vclass = SVC_IGNORING) const
inherited

Get the allowed lanes for the given vehicle class.

If there is no such edge, get 0. Then you are on the wrong edge.

Parameters
[in]vclassThe vehicle class for which this information shall be returned
Returns
The lanes that may be used by the given vclass

Definition at line 306 of file MSEdge.cpp.

References MSEdge::allowedLanes().

const std::vector< MSLane * > * MSEdge::allowedLanes ( const MSEdge destination,
SUMOVehicleClass  vclass = SVC_IGNORING 
) const
protectedinherited

Get the allowed lanes to reach the destination-edge.

If there is no such edge, get 0. Then you are on the wrong edge.

Parameters
[in]destinationThe edge to reach
[in]vclassThe vehicle class for which this information shall be returned
Returns
The lanes that may be used to reach the given edge, 0 if no such lanes exist

Definition at line 322 of file MSEdge.cpp.

References MSLane::allowsVehicleClass(), MSEdge::getAllowedLanesWithDefault(), MSLane::getEdge(), MSEdge::myAllowed, MSEdge::myClassedAllowed, and MSEdge::myMinimumPermissions.

void MSEdge::buildLaneChanger ( )
inherited

Has to be called after all sucessors and predecessors have been set (after closeBuilding())

Definition at line 210 of file MSEdge.cpp.

References MSEdge::allowsLaneChanging(), MSEdge::canChangeToOpposite(), MSGlobals::gLaneChangeDuration, MSGlobals::gLateralResolution, MSEdge::myLaneChanger, and MSEdge::myLanes.

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 251 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
void GUIGlObject::buildShowTypeParamsPopupEntry ( GUIGLObjectPopupMenu ret,
bool  addSeparator = true 
)
protectedinherited

Builds an entry which allows to open the type 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 230 of file GUIGlObject.cpp.

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

Referenced by GUIBaseVehicle::getPopUpMenu().

bool MSEdge::canChangeToOpposite ( )
inherited

whether this edge allows changing to the opposite direction edge

Definition at line 857 of file MSEdge.cpp.

References MSEdge::myLanes.

Referenced by MSEdge::buildLaneChanger(), and MSLaneChanger::changeOpposite().

void MSEdge::clear ( )
staticinherited

Clears the dictionary.

Definition at line 712 of file MSEdge.cpp.

References MSEdge::myDict.

Referenced by MSNet::clearAll(), and MSVehicle::updateBestLanes().

void Parameterised::clearParameter ( )
inherited

Clears the parameter map.

Definition at line 91 of file Parameterised.cpp.

References Parameterised::myMap.

void MSEdge::closeBuilding ( )
inherited
Todo:
Has to be called after all edges were built and all connections were set...; Still, is not very nice

Definition at line 166 of file MSEdge.cpp.

References MELoop::buildSegmentsFor(), MSLane::getEdge(), OptionsCont::getOptions(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, MSEdge::myAllowed, MSEdge::myLanes, MSEdge::myPredecessors, MSEdge::mySuccessors, and MSEdge::rebuildAllowedLanes().

void GUIEdge::closeTraffic ( const GUILane lane)

close this edge for traffic

Definition at line 538 of file GUIEdge.cpp.

References GUILane::closeTraffic(), MSEdge::getLanes(), GUILane::isClosed(), and MSEdge::rebuildAllowedLanes().

SUMOTime MSEdge::decVaporization ( SUMOTime  t)
inherited

Disables vaporization.

The internal vaporization counter is decreased what disables the vaporization if it was only once enabled. Called from the event handler.

Parameters
[in]tThe current time (unused)
Returns
Time to next call (always 0)
Exceptions
ProcessErrornot thrown by this method, just derived

Definition at line 390 of file MSEdge.cpp.

References MSEdge::myVaporizationRequests.

Referenced by NLTriggerBuilder::buildVaporizer().

MSEdge * MSEdge::dictionary ( const std::string &  id)
staticinherited

Returns the MSEdge associated to the key id if exists, otherwise returns 0.

Definition at line 689 of file MSEdge.cpp.

References MSEdge::myDict.

int MSEdge::dictSize ( )
staticinherited

Returns the number of edges.

Definition at line 700 of file MSEdge.cpp.

References MSEdge::myDict.

Referenced by fill(), and MSStateHandler::saveState().

void GUIEdge::drawGL ( const GUIVisualizationSettings s) const
virtual
void GUIGlObject::drawGLAdditional ( GUISUMOAbstractView *const  parent,
const GUIVisualizationSettings s 
) const
virtualinherited

Draws additional, user-triggered visualisations.

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

Reimplemented in GUIBaseVehicle, GUIPerson, and GUIContainer.

Definition at line 158 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

void GUIEdge::fill ( std::vector< GUIEdge * > &  netsWrappers)
static

Definition at line 158 of file GUIEdge.cpp.

References MSEdge::dictSize(), MSEdge::EDGEFUNCTION_DISTRICT, and MSEdge::myDict.

Referenced by GUINet::initGUIStructures().

const std::vector< MSLane * > * MSEdge::getAllowedLanesWithDefault ( const AllowedLanesCont c,
const MSEdge dest 
) const
protectedinherited

lookup in map and return 0 if not found

Definition at line 312 of file MSEdge.cpp.

Referenced by MSEdge::allowedLanes().

SUMOReal GUIEdge::getAllowedSpeed ( ) const
Boundary GUIEdge::getBoundary ( ) const
SUMOReal GUIEdge::getBruttoOccupancy ( ) const

Definition at line 387 of file GUIEdge.cpp.

References MSGlobals::gMesoNet, MSEdge::myLanes, and SUMOReal.

Referenced by getColorValue(), getParameterWindow(), and getScaleValue().

Boundary GUIEdge::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 220 of file GUIEdge.cpp.

References getBoundary(), and Boundary::grow().

const std::vector<std::string>& MSEdge::getCrossingEdges ( ) const
inlineinherited

Gets the crossed edge ids.

Returns
The list of crossed edge ids in a crossing edge or an empty vector

Definition at line 310 of file MSEdge.h.

References MSEdge::myCrossingEdges.

Referenced by MSPedestrianPushButton::loadCrossingEdgeMap().

SUMOReal MSEdge::getCurrentTravelTime ( const SUMOReal  minSpeed = NUMERICAL_EPS) const
inherited

Computes and returns the current travel time for this edge.

The mean speed of all lanes is used to compute the travel time. To avoid infinite travel times, the given minimum speed is used.

Parameters
[in]minSpeedThe minimumSpeed to assume if traffic on this edge is stopped
Returns
The current effort (travel time) to pass the edge

Definition at line 656 of file MSEdge.cpp.

References MSEdge::getLength(), MSEdge::getMeanSpeed(), MAX2(), MSEdge::myAmDelayed, and MSEdge::myEmptyTraveltime.

Referenced by MSVehicleTransfer::add(), MSVehicleTransfer::checkInsertions(), TraCIServerAPI_Edge::processGet(), and MSFullExport::writeEdge().

MSLane * MSEdge::getDepartLane ( MSVehicle veh) const
inherited

Finds a depart lane for the given vehicle parameters.

Depending on the depart lane procedure a depart lane is chosen. Repeated calls with the same vehicle may return different results if the procedure is "random" or "free". In case no appropriate lane was found, 0 is returned.

Parameters
[in]vehThe vehicle to get the depart lane for
Returns
a possible/chosen depart lane, 0 if no lane can be used

Definition at line 417 of file MSEdge.cpp.

References MSEdge::allowedLanes(), MSRoute::begin(), DEPART_LANE_ALLOWED_FREE, DEPART_LANE_BEST_FREE, DEPART_LANE_DEFAULT, DEPART_LANE_FIRST_ALLOWED, DEPART_LANE_FREE, DEPART_LANE_GIVEN, DEPART_LANE_RANDOM, SUMOVehicleParameter::departLane, SUMOVehicleParameter::departLaneProcedure, MSVehicle::getBestLanes(), MSEdge::getFreeLane(), MSBaseVehicle::getParameter(), RandHelper::getRandomFrom(), MSBaseVehicle::getRoute(), MSVehicleType::getVehicleClass(), MSBaseVehicle::getVehicleType(), MSEdge::myLanes, MSRoute::size(), SUMOReal, and MSVehicle::updateBestLanes().

Referenced by MSEdge::insertVehicle().

SUMOReal MSEdge::getDistanceTo ( const MSEdge other) const
inherited

optimistic air distance heuristic for use in routing

Parameters
[in]otherThe edge to which the distance shall be returned
Returns
The distance to the other edge

Definition at line 759 of file MSEdge.cpp.

References Position::distanceTo2D(), MSEdge::getFromJunction(), MSEdge::getLanes(), MSJunction::getPosition(), and MSEdge::getToJunction().

const std::string& MSEdge::getEdgeType ( ) const
inlineinherited

Returns the type of the edge.

Definition at line 288 of file MSEdge.h.

References MSEdge::myEdgeType.

Referenced by GUILane::getParameterWindow(), and MSLane::MSLane().

SUMOReal GUIEdge::getFlow ( ) const

return flow based on meanSpead

Note
: may produced incorrect results when jammed

Definition at line 377 of file GUIEdge.cpp.

References MSGlobals::gMesoNet, and SUMOReal.

Referenced by getColorValue(), getParameterWindow(), and getScaleValue().

MSLane * MSEdge::getFreeLane ( const std::vector< MSLane * > *  allowed,
const SUMOVehicleClass  vclass 
) const
inherited

Finds the emptiest lane allowing the vehicle class.

The emptiest lane is the one with the fewest vehicles on. If there is more than one, the first according to its index in the lane container is chosen.

If allowed==0, the lanes allowed for the given vehicle class will be used.

Parameters
[in]allowedThe lanes to choose from
[in]vclassThe vehicle class to look for
Returns
the least occupied lane
See also
allowedLanes

Definition at line 397 of file MSEdge.cpp.

References MSEdge::allowedLanes(), max, and SUMOReal.

Referenced by MSVehicleTransfer::checkInsertions(), and MSEdge::getDepartLane().

GUIGlID GUIGlObject::getGlID ( ) const
inherited

Returns the numerical id of the object.

Returns
This object's gl-id

Definition at line 125 of file GUIGlObject.cpp.

References GUIGlObject::myGlID.

Referenced by GNENet::addReversedEdge(), GUIMessageWindow::appendMsg(), GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GNENet::deleteConnection(), GNENet::deleteEdge(), GNENet::deleteJunction(), GNENet::deleteLane(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIVehicle::drawAction_drawPersonsAndContainers(), GNEDetectorExit::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEDetectorE3::drawGL(), GNEInternalLane::drawGL(), GNECrossing::drawGL(), GNEJunction::drawGL(), GUIContainer::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignal::drawGL(), GUIPerson::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GUIPointOfInterest::drawGL(), GNERouteProbe::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNELane::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNEPoly::drawGL(), GNEConnection::drawGL(), GNECalibrator::drawGL(), GUIBusStop::drawGL(), drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNERerouter::drawGL(), GUIContainer::drawGLAdditional(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), GUIJunctionWrapper::getColorValue(), getColorValue(), GUIContainer::getColorValue(), GUIPerson::getColorValue(), GNEJunction::getColorValue(), GUILane::getColorValue(), GNELane::getColorValue(), getIDs(), GNEEdge::getLaneGlIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), GUIPerson::getPopUpMenu(), GNELane::getPopUpMenu(), GUIBaseVehicle::getPopUpMenu(), getScaleValue(), GUILane::getScaleValue(), GNECalibrator::GNECalibrator(), GNERouteProbe::GNERouteProbe(), GNEVaporizer::GNEVaporizer(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNESelectorFrame::handleIDs(), GNETLSEditorFrame::handleMultiChange(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GUIViewTraffic::onCmdAddRerouter(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIViewTraffic::onCmdCloseEdge(), GUIViewTraffic::onCmdCloseLane(), GNEViewNet::onCmdDuplicateLane(), GUIApplicationWindow::onCmdEditChosen(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GNEViewNet::onCmdRevertRestriction(), GNEConnectorFrame::onCmdSelectDeadStarts(), GNEConnectorFrame::onCmdSelectPass(), GUIPerson::GUIPersonPopupMenu::onCmdStartTrack(), GUIBaseVehicle::GUIBaseVehiclePopupMenu::onCmdStartTrack(), GNEViewNet::onCmdStraightenEdges(), GNEViewNet::onLeftBtnPress(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< SUMOTime, MSPhaseDefinition > >::removeObject(), GUIVehicle::selectBlockingFoes(), GNEJunction::setColor(), GUIMessageWindow::setCursorPos(), and GUIGlObject::~GUIGlObject().

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

Returns the id.

Returns
The stored id

Definition at line 66 of file Named.h.

References Named::myID.

Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), PCPolyContainer::add(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), ShapeContainer::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NBEdge::addStraightConnections(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::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(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSLaneChanger::changeOpposite(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkRewindLinkLanes(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeShapeComputer::computeNodeShapeSmall(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBNode::computeSmoothShape(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NLDetectorBuilder::convUncontE2PosLength(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), GUINet::createTLWrapper(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), NIVissimDistrictConnection::dict_BuildDistricts(), NBEdge::divideOnEdges(), NBEdge::divideSelectedLanesOnEdges(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), GNEConnection::getAttribute(), MSVehicle::getBackPosition(), MSNet::getBusStopID(), MSVehicle::getCenterOnEdge(), MSDevice_Battery::getChargingStationID(), MSNet::getChargingStationID(), NBEdge::getConnection(), NBEdge::getConnectionRef(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), MSE2Collector::getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MSLane::getFollower(), MSLane::getFollowerOnConsecutive(), MSLane::getFollowersOnConsecutive(), GNEEdge::getGNEJunctionDest(), GNEEdge::getGNEJunctionSource(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLastVehicleInformation(), MSVehicle::getLatOffset(), MSLane::getLeader(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getOppositePos(), GUIVehicle::getParameterWindow(), GUILane::getParentName(), MSLane::getPartialBehind(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollisionBetween(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::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(), MSLane::isInsertionSuccess(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSE3Collector::leaveFront(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), NBEdge::MainDirections::MainDirections(), ODDistrictCont::makeDistricts(), NBNodeCont::mapToNumericalIDs(), NBEdgeCont::mapToNumericalIDs(), GNEJunction::markAsModified(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), 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(), MSCalibrator::VehicleRemover::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSE2Collector::notifyMove(), GUIViewTraffic::onGamingClick(), GNEViewNet::onLeftBtnPress(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::by_id_sorter::operator()(), 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_SL2015::patchSpeed(), MSLCM_LC2013::patchSpeed(), NBLoadedTLDef::SignalGroup::patchTYellow(), MSVehicle::planMove(), MSLane::planMovements(), MSRightOfWayJunction::postloadInit(), NBEdge::prepareEdgePriorities(), MSAbstractLaneChangeModel::primaryLaneChanged(), AGStreet::print(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_Lane::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), NIImporter_OpenStreetMap::reconstructLayerElevation(), NBLoadedTLDef::SignalGroup::remapIncoming(), NBLoadedTLDef::SignalGroup::remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), MSBaseVehicle::reroute(), MSLane::resetPartialOccupation(), NBEdge::restoreRestrictedLane(), GNEEdge::retrieveConnection(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), ROPerson::Ride::saveAsXML(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChargeDelay(), MSChargingStation::setChargingPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSLane::setPartialOccupation(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSVehicle::updateBestLanes(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditorFrame::updateDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSEmissionExport::write(), MSBatteryExport::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(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), and RONet::~RONet().

std::vector< GUIGlID > GUIEdge::getIDs ( bool  includeInternal)
static
const MSEdgeVector& MSEdge::getIncomingEdges ( ) const
inlineinherited

Returns the list of edges from which this edge may be reached.

Returns
Edges from which this edge may be reached

Definition at line 332 of file MSEdge.h.

References MSEdge::myPredecessors.

Referenced by NLEdgeControlBuilder::build(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSLane::getLogicalPredecessorLane(), getWalkingAreas(), and MSPModel_Striping::initWalkingAreaPaths().

MSLane & GUIEdge::getLane ( int  laneNo)

returns the enumerated lane (!!! why not private with a friend?)

Definition at line 94 of file GUIEdge.cpp.

References MSEdge::myLanes.

static std::pair<SUMOReal, SUMOReal> GUIEdge::getLaneOffsets ( SUMOReal  x1,
SUMOReal  y1,
SUMOReal  x2,
SUMOReal  y2,
SUMOReal  prev,
SUMOReal  wanted 
)
static

returns the position on the line given by the coordinates where "prev" is the length of the line and "wanted" the distance from the begin !!! should be within another class

const std::vector<MSLane*>& MSEdge::getLanes ( ) const
inlineinherited

Returns this edge's lanes.

Returns
This edge's lanes

Definition at line 192 of file MSEdge.h.

References MSEdge::myLanes.

Referenced by MSVehicleTransfer::add(), NLHandler::addConnection(), addRerouter(), MSRouteHandler::addStop(), MELoop::buildSegmentsFor(), MSBaseVehicle::calculateArrivalParams(), MSEdgeControl::changeLanes(), MSVehicleTransfer::checkInsertions(), closeTraffic(), MSRouteHandler::closeVehicle(), MSLCM_SL2015::computeSublaneShift(), CState::computeTranshipTime(), GUILane::drawMarkings(), MS_E2_ZS_CollectorOverLanes::extendTo(), TraCIServerAPI_Vehicle::findCloserLane(), MEVehicle::getAngle(), getColorValue(), MSEdge::getDistanceTo(), MSTransportable::Stage::getEdgeAngle(), GUILane::getEdgeLaneNumber(), MSTransportable::Stage::getEdgePosition(), TraCIServerAPI_Simulation::getLaneChecking(), MSVehicle::getLaneIndex(), MESegment::getLink(), MSInsertionControl::getPendingEmits(), getPopUpMenu(), MEVehicle::getPosition(), GUIContainer::getPosition(), MSVehicle::getPosition(), getScaleValue(), getSegmentAtPosition(), TraCIServerAPI_Edge::getShape(), MEVehicle::getSlope(), MSEdge::getSpeedLimit(), getTotalLength(), MSEdge::getVehicleMaxSpeed(), GUICalibrator::GUICalibrator(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), MSVehicle::Influencer::influenceChangeDecision(), GUINet::initGUIStructures(), MSCalibrator::invalidJam(), MSPedestrianPushButton::isActiveForEdge(), GUISUMOViewParent::isSelected(), MESegment::MESegment(), MSCalibrator::MSCalibrator(), MSRouteProbe::MSRouteProbe(), GUIMEInductLoop::MyWrapper::MyWrapper(), MSLCM_DK2008::patchSpeed(), MSLCM_SL2015::prepareStep(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Vehicle::processSet(), MSCalibrator::remainingVehicleCapacity(), setFunctionalColor(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), TraCIServerAPI_Vehicle::vtdMap(), MSQueueExport::writeEdge(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), MSMeanData::writeEdge(), MSFCDExport::writeTransportable(), and MEInductLoop::writeXMLOutput().

SUMOTime MSEdge::getLastFailedInsertionTime ( ) const
inlineinherited

Returns the last time a vehicle could not be inserted.

Returns
The current value

Definition at line 530 of file MSEdge.h.

References MSEdge::myLastFailedInsertionTime.

Referenced by MSInsertionControl::checkCandidates().

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

Returns the id of the object as known to microsim.

Definition at line 139 of file GUIGlObject.cpp.

References GUIGlObject::myMicrosimID.

Referenced by GNEAdditional::changeEdge(), GNEAdditional::changeLane(), GNETLSEditorFrame::controlsEdge(), GUIGlObject::createFullName(), GNENet::deleteSingleEdge(), GNENet::deleteSingleJunction(), GUIGlObject::drawName(), GNEAdditional::getAdditionalID(), GNEPOI::getAttribute(), GNECrossing::getAttribute(), GNEConnection::getAttribute(), GNEJunction::getAttribute(), GNEPoly::getAttribute(), GNEEdge::getAttribute(), GNELane::getAttribute(), GNELane::getParentName(), GNENetElement::getParentName(), GNEDetectorE3::getParentName(), GNEVariableSpeedSignal::getParentName(), GNEVaporizer::getParentName(), GNEStoppingPlace::getParentName(), GNERouteProbe::getParentName(), GNEDetector::getParentName(), GNECalibrator::getParentName(), GNEAdditional::getParentName(), GNERerouter::getParentName(), GNEAdditional::getPopUpMenu(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GNEConnectorFrame::handleLaneClick(), GNETLSEditorFrame::handleMultiChange(), GNEEdge::isValid(), GNEViewNet::mergeJunctions(), GNEPoly::moveGeometry(), GNEEdge::moveGeometry(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCopyName(), GNEViewNet::onCmdNodeShape(), GNEViewNet::onLeftBtnPress(), GNEInspectorFrame::onUpdCopyTemplate(), GNENet::registerEdge(), GNENet::registerJunction(), GNENet::remapEdge(), GNEEdge::removeConnection(), GNENet::replaceJunctionByGeometry(), GNENet::retrieveAttributeCarriers(), GNEAdditional::setAdditionalID(), GNEEdge::setAttribute(), GNENet::splitEdge(), and GNEConnectorFrame::updateDescription().

SUMOReal MSEdge::getMinimumTravelTime ( const SUMOVehicle *const  veh) const
inlineinherited

returns the minimum travel time for the given vehicle

Definition at line 448 of file MSEdge.h.

References MSEdge::EDGEFUNCTION_DISTRICT, MSEdge::getLength(), MSEdge::getSpeedLimit(), MSEdge::getVehicleMaxSpeed(), and MSEdge::myFunction.

Referenced by MSDevice_Routing::getEffort(), and MSNet::getTravelTime().

int MSEdge::getNumericalID ( ) const
inlineinherited
int MSEdge::getNumPredecessors ( ) const
inlineinherited

Returns the number of edges this edge is connected to.

Returns
The number of edges following this edge

Definition at line 369 of file MSEdge.h.

References MSEdge::myPredecessors.

Referenced by MSRouteHandler::parseFromViaTo().

int MSEdge::getNumSuccessors ( ) const
inlineinherited

Returns the number of edges that may be reached from this edge.

Returns
The number of following edges

Definition at line 346 of file MSEdge.h.

References MSEdge::mySuccessors.

Referenced by NLEdgeControlBuilder::build(), MESegment::MESegment(), and MSRouteHandler::parseFromViaTo().

const std::vector<MSEdge*>& MSEdge::getOutgoingEdges ( ) const
inlineinherited

Returns the list of edges that may be reached from this edge.

Returns
Edges that may be reached from this edge

Definition at line 339 of file MSEdge.h.

References MSEdge::mySuccessors.

Referenced by getWalkingAreas().

const std::string & Parameterised::getParameter ( const std::string &  key,
const std::string &  defaultValue 
) const
inherited

Returns the value for a given key.

Parameters
[in]keyThe key to ask for
[in]defaultValueThe default value to return if no value is stored under the key
Returns
The value stored under the key

Definition at line 81 of file Parameterised.cpp.

References Parameterised::myMap.

Referenced by MSDevice_Battery::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), MSDevice::equippedByDefaultAssignmentOptions(), MSSwarmTrafficLightLogic::getBetaNo(), MSSwarmTrafficLightLogic::getBetaSp(), MSSwarmTrafficLightLogic::getChangePlanProbability(), MSSOTLTrafficLightLogic::getDecayConstant(), MSSwarmTrafficLightLogic::getForgettingCox(), MSSwarmTrafficLightLogic::getGammaNo(), MSSwarmTrafficLightLogic::getGammaSp(), MSTLLogicControl::WAUTSwitchProcedure::getGSPValue(), MSSOTLTrafficLightLogic::getInputSensorsLength(), MSSwarmTrafficLightLogic::getLearningCox(), MSSwarmTrafficLightLogic::getMaxCongestionDuration(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), MSSOTLRequestTrafficLightLogic::getMinDecisionalPhaseDuration(), MSSOTLTrafficLightLogic::getMode(), MSSOTLTrafficLightLogic::getOutputSensorsLength(), MSSwarmTrafficLightLogic::getPheroMaxVal(), MSSwarmTrafficLightLogic::getPoliciesParam(), MSSwarmTrafficLightLogic::getReinforcementMode(), MSSOTLTrafficLightLogic::getSpeedThreshold(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchAreaNo(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::getStretchBereichDef(), MSSwarmTrafficLightLogic::getThetaInit(), MSSwarmTrafficLightLogic::getThetaMax(), MSSwarmTrafficLightLogic::getThetaMin(), MSSOTLTrafficLightLogic::getThreshold(), PushButtonLogic::init(), MSSOTLPhasePolicy::init(), SigmoidLogic::init(), MSSOTLTrafficLightLogic::isDecayThresholdActivated(), MSSOTLTrafficLightLogic::isPushButtonPressed(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSSwarmTrafficLightLogic::MSSwarmTrafficLightLogic(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_VehicleType::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Route::processGet(), TraCIServerAPI_POI::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_Lane::processGet(), MSSOTLPolicyDesirability::readParameter(), and TraCIServerAPI_Vehicle::vtdMap().

const std::string & GUIGlObject::getParentName ( ) const
virtualinherited

Returns the name of the parent object (if any)

Returns
This object's parent id

Reimplemented in GNERerouter, GNEAdditional, GNEAdditionalSet, GNECalibrator, GNEDetector, GNERouteProbe, GNEStoppingPlace, GNEVaporizer, GNEVariableSpeedSignal, GUILane, GNEDetectorE3, GNELane, and GNENetElement.

Definition at line 119 of file GUIGlObject.cpp.

References StringUtils::emptyString.

Referenced by GUIGLObjectPopupMenu::onCmdCopyEdgeName().

SVCPermissions MSEdge::getPermissions ( ) const
inlineinherited
const std::set<MSTransportable*>& MSEdge::getPersons ( ) const
inlineinherited

Returns this edge's persons set.

Avoids the creation of new vector as in getSortedPersons

Returns
This edge's persons.

Definition at line 201 of file MSEdge.h.

References MSEdge::myPersons.

Referenced by MSPedestrianPushButton::isActiveForEdge().

GUIGLObjectPopupMenu * GUIEdge::getPopUpMenu ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtual

Returns an own popup-menu.

Parameters
[in]appThe application needed to build the popup-menu
[in]parentThe parent window needed to build the popup-menu
Returns
The built popup-menu
See also
GUIGlObject::getPopUpMenu

Implements GUIGlObject.

Definition at line 171 of file GUIEdge.cpp.

References GUIGlObject::buildCenterPopupEntry(), GUIGlObject::buildNameCopyPopupEntry(), GUIGlObject::buildPopupHeader(), GUIGlObject::buildPositionCopyEntry(), GUIGlObject::buildSelectionPopupEntry(), GUIGlObject::buildShowParamsPopupEntry(), MSEdge::getLanes(), GUISUMOAbstractView::getPositionInformation(), MSGlobals::gUseMesoSim, SUMOReal, and toString().

const MSEdgeVector& MSEdge::getPredecessors ( ) const
inlineinherited

Returns the edge at the given position from the list of reachable edges.

Parameters
[in]posThe position of the list within the list of approached
Returns
The following edge, stored at position pos

Definition at line 378 of file MSEdge.h.

References MSEdge::myPredecessors.

Referenced by MSPedestrianPushButton::isActiveForEdge().

int MSEdge::getPriority ( ) const
inlineinherited

Returns the priority of the edge.

Definition at line 294 of file MSEdge.h.

References MSEdge::myPriority.

Referenced by GUILane::getColorValue(), GUILane::getParameterWindow(), and GUILane::getScaleValue().

SUMOReal GUIEdge::getRelativeSpeed ( ) const

return meanSpead divided by allowedSpeed

Definition at line 403 of file GUIEdge.cpp.

References getAllowedSpeed(), and MSEdge::getMeanSpeed().

Referenced by getColorValue(), and getScaleValue().

SUMOReal MSEdge::getRoutingSpeed ( ) const
inherited

Returns the averaged speed used by the routing device.

Definition at line 666 of file MSEdge.cpp.

References MSDevice_Routing::getAssumedSpeed().

Referenced by getColorValue(), GUILane::getColorValue(), getParameterWindow(), and GUILane::getParameterWindow().

MESegment * GUIEdge::getSegmentAtPosition ( const Position pos)

returns the segment closest to the given position

Definition at line 529 of file GUIEdge.cpp.

References MSEdge::getLanes(), MELoop::getSegmentForEdge(), MSGlobals::gMesoNet, PositionVector::nearest_offset_to_point2D(), and SUMOReal.

Referenced by getParameterWindow().

const std::vector<RGBColor>& GUIEdge::getSegmentColors ( ) const
inline

return segment colors (meso)

Definition at line 213 of file GUIEdge.h.

References mySegmentColors.

std::vector< MSTransportable * > MSEdge::getSortedContainers ( SUMOTime  timestep) const
inherited

Returns this edge's containers sorted by pos.

Returns
This edge's containers sorted by pos

Definition at line 802 of file MSEdge.cpp.

References MSEdge::myContainers.

Referenced by MSXMLRawOut::writeEdge().

std::vector< MSTransportable * > MSEdge::getSortedPersons ( SUMOTime  timestep) const
inherited

Returns this edge's persons sorted by pos.

Returns
This edge's persons sorted by pos

Definition at line 794 of file MSEdge.cpp.

References MSEdge::myPersons.

Referenced by TraCIServerAPI_Edge::processGet(), and MSXMLRawOut::writeEdge().

const std::string& MSEdge::getStreetName ( ) const
inlineinherited

Returns the street name of the edge.

Definition at line 282 of file MSEdge.h.

References MSEdge::myStreetName.

Referenced by drawGL(), and GUILane::getParameterWindow().

const std::vector<SUMOReal> MSEdge::getSubLaneSides ( ) const
inlineinherited

Returns the right side offsets of this edge's sublanes.

Definition at line 574 of file MSEdge.h.

References MSEdge::mySublaneSides.

Referenced by MSLCM_SL2015::_wantsChangeSublane(), and MSLCM_SL2015::prepareStep().

const MSEdgeVector& MSEdge::getSuccessors ( ) const
inlineinherited
const MSEdgeVector & MSEdge::getSuccessors ( SUMOVehicleClass  vClass) const
inherited

Returns the following edges, restricted by vClass.

Parameters
[in]vClassThe vClass for which to restrict the successors
Returns
The eligible following edges

Definition at line 820 of file MSEdge.cpp.

References MSEdge::allowedLanes(), MSEdge::EDGEFUNCTION_DISTRICT, MSNet::getInstance(), MSEdge::myClassesSuccessorMap, MSEdge::myFunction, MSEdge::mySuccessors, and SVC_IGNORING.

SUMOReal GUIEdge::getTotalLength ( bool  includeInternal,
bool  eachLane 
)
static
static SUMOReal MSEdge::getTravelTimeStatic ( const MSEdge *const  edge,
const SUMOVehicle *const  veh,
SUMOReal  time 
)
inlinestaticinherited

Returns the travel time for the given edge.

Parameters
[in]edgeThe edge for which the travel time shall be retrieved
[in]vehThe vehicle for which the travel time on this edge shall be retrieved
[in]timeThe time for which the travel time shall be returned [s]
Returns
The traveltime needed by the given vehicle to pass the edge at the given time

Definition at line 466 of file MSEdge.h.

References MSNet::getInstance(), and MSNet::getTravelTime().

GUIGlObjectType GUIGlObject::getType ( ) const
inherited

Returns the type of the object as coded in GUIGlObjectType.

See also
GUIGlObjectType

Definition at line 152 of file GUIGlObject.cpp.

References GUIGlObject::myGLObjectType.

Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawPersonsAndContainers(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawAction_drawWalkingareaPath(), GNEAdditionalSet::drawConnections(), GNEDetector::drawDetectorIcon(), GNEDetectorExit::drawGL(), GNEDetectorEntry::drawGL(), GNEDetectorE1::drawGL(), GNEDetectorE2::drawGL(), GNEContainerStop::drawGL(), GNEBusStop::drawGL(), GNEDetectorE3::drawGL(), GNEJunction::drawGL(), GUIContainer::drawGL(), GUIPerson::drawGL(), GNEVaporizer::drawGL(), GNEVariableSpeedSignal::drawGL(), GUILaneSpeedTrigger::drawGL(), GUICalibrator::drawGL(), GNERouteProbe::drawGL(), GUIJunctionWrapper::drawGL(), GNEChargingStation::drawGL(), GNEEdge::drawGL(), GNELane::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GNEConnection::drawGL(), GNECalibrator::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUILane::drawGL(), GNERerouter::drawGL(), GUIPerson::drawGLAdditional(), GUIBaseVehicle::drawGLAdditional(), GNEAdditional::drawLockIcon(), GUIBaseVehicle::drawOnPos(), GNEDetectorEntry::getAttribute(), GNEDetectorExit::getAttribute(), GNEDetectorE1::getAttribute(), GNEDetectorE2::getAttribute(), GNEContainerStop::getAttribute(), GNEBusStop::getAttribute(), GNEDetectorE3::getAttribute(), GNEVariableSpeedSignal::getAttribute(), GNEVaporizer::getAttribute(), GNERouteProbe::getAttribute(), GNEChargingStation::getAttribute(), GNECalibrator::getAttribute(), GNEJunction::getAttribute(), GNERerouter::getAttribute(), GUIJunctionWrapper::getColorValue(), getColorValue(), GNEJunction::getColorValue(), GUILane::getColorValue(), GNELane::getColorValue(), GNEViewNet::getEdgeAtCursorPosition(), GNEViewNet::getEdgesAtCursorPosition(), GNEViewNet::getJunctionAtCursorPosition(), GNEViewNet::getLaneAtCurserPosition(), GUISUMOAbstractView::getObjectAtPosition(), GUISUMOAbstractView::getObjectsAtPosition(), getScaleValue(), GUILane::getScaleValue(), GNESelectorFrame::handleIDs(), GNEAdditional::isAdditionalSelected(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GNEViewParent::isSelected(), GNEDetectorEntry::isValid(), GNEDetectorExit::isValid(), GNEDetectorE1::isValid(), GNEDetectorE2::isValid(), GNEContainerStop::isValid(), GNEBusStop::isValid(), GNEDetectorE3::isValid(), GNEVariableSpeedSignal::isValid(), GNEVaporizer::isValid(), GNERouteProbe::isValid(), GNEChargingStation::isValid(), GNECalibrator::isValid(), GNERerouter::isValid(), GUISelectedStorage::loadIDs(), GNEViewNet::mergeJunctions(), GNEConnectorFrame::onCmdClearSelectedConnections(), GUIGLObjectPopupMenu::onCmdCopyEdgeName(), GNEViewNet::onDoubleClicked(), GNEViewNet::onLeftBtnPress(), LayeredRTree::selectLayer(), GNEDetectorExit::setAttribute(), GNEDetectorEntry::setAttribute(), GNEDetectorE1::setAttribute(), GNEDetectorE2::setAttribute(), GNEBusStop::setAttribute(), GNEContainerStop::setAttribute(), GNEDetectorE3::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSignal::setAttribute(), GNERouteProbe::setAttribute(), GNEChargingStation::setAttribute(), GNECalibrator::setAttribute(), GNERerouter::setAttribute(), GNEJunction::setColor(), and GUISelectedStorage::toggleSelection().

GUIParameterTableWindow * GUIGlObject::getTypeParameterWindow ( GUIMainWindow app,
GUISUMOAbstractView parent 
)
virtualinherited

Returns an own type parameter window (optional)

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

Reimplemented in GUIVehicle, GUIBaseVehicle, and GUIMEVehicle.

Definition at line 131 of file GUIGlObject.cpp.

References UNUSED_PARAMETER.

Referenced by GUIGLObjectPopupMenu::onCmdShowTypePars().

std::string GUIEdge::getVehicleIDs ( ) const

Definition at line 362 of file GUIEdge.cpp.

References MSGlobals::gMesoNet.

Referenced by getParameterWindow().

SUMOReal MSEdge::getVehicleMaxSpeed ( const SUMOVehicle *const  veh) const
inherited

Returns the maximum speed the vehicle may use on this edge.

Only the first lane is considered

Returns
The maximum velocity on this edge for the given vehicle

Definition at line 776 of file MSEdge.cpp.

References MSEdge::getLanes().

Referenced by GUIMEVehicle::getColorValue(), MSEdge::getMinimumTravelTime(), MSEdge::insertVehicle(), MSDevice_Tripinfo::notifyMove(), MSDevice_Tripinfo::notifyMoveInternal(), and MESegment::receive().

int GUIEdge::getVehicleNo ( ) const

Definition at line 352 of file GUIEdge.cpp.

References MSGlobals::gMesoNet.

Referenced by getParameterWindow().

SUMOReal MSEdge::getWidth ( ) const
inlineinherited

Returns the edges's width (sum over all lanes)

Returns
This edges's width

Definition at line 569 of file MSEdge.h.

References MSEdge::myWidth.

Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLCM_SL2015::checkBlocking(), and MSLCM_SL2015::keepLatGap().

bool MSEdge::hasLaneChanger ( ) const
inlineinherited

Definition at line 650 of file MSEdge.h.

References MSEdge::myLaneChanger.

Referenced by MSLCM_LC2013::_patchSpeed().

SUMOTime MSEdge::incVaporization ( SUMOTime  t)
inherited

Enables vaporization.

The internal vaporization counter is increased enabling the vaporization. Called from the event handler.

Parameters
[in]tThe current time (unused)
Returns
Time to next call (always 0)
Exceptions
ProcessErrornot thrown by this method, just derived

Definition at line 383 of file MSEdge.cpp.

References MSEdge::myVaporizationRequests.

Referenced by NLTriggerBuilder::buildVaporizer().

void MSEdge::initialize ( const std::vector< MSLane * > *  lanes)
inherited

Initialize the edge.

Parameters
[in]allowedInformation which edges may be reached from which lanes
[in]lanesList of this edge's lanes

Definition at line 110 of file MSEdge.cpp.

References MSEdge::EDGEFUNCTION_DISTRICT, MSGlobals::gLaneChangeDuration, MSGlobals::gLateralResolution, MSEdge::myCombinedPermissions, MSEdge::myFunction, MSEdge::myLanes, MSEdge::mySublaneSides, MSEdge::myWidth, MSLeaderInfo::numSublanes(), MSEdge::recalcCache(), SUMOReal, and SVCAll.

Referenced by NLHandler::addDistrict(), and NLEdgeControlBuilder::closeEdge().

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

Inserts IDs of all known edges into the given vector.

Definition at line 721 of file MSEdge.cpp.

References MSEdge::myDict.

Referenced by TraCIServerAPI_Edge::processGet().

bool MSEdge::insertVehicle ( SUMOVehicle v,
SUMOTime  time,
const bool  checkOnly = false 
) const
inherited

Tries to insert the given vehicle into the network.

The procedure for choosing the proper lane is determined, first. In dependance to this, the proper lane is chosen.

Insertion itself is done by calling the chose lane's "insertVehicle" method but only if the checkOnly argument is false. The check needs to be certain only in the negative case (if false is returned, there is no way this vehicle would be inserted).

Parameters
[in]vThe vehicle to insert
[in]timeThe current simulation time
[in]checkOnlywhether we perform only the check without actually inserting
Returns
Whether the vehicle could be inserted
See also
MSLane::insertVehicle

Definition at line 472 of file MSEdge.cpp.

References MSVehicleType::computeChosenSpeedDeviation(), DEPART_LANE_DEFAULT, DEPART_LANE_FIRST_ALLOWED, DEPART_LANE_GIVEN, DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, DEPART_SPEED_GIVEN, SUMOVehicleParameter::departLaneProcedure, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, SUMOVehicleParameter::departSpeed, SUMOVehicleParameter::departSpeedProcedure, MSInsertionControl::descheduleDeparture(), MSEdge::EDGEFUNCTION_DISTRICT, MSGlobals::gCheckRoutes, MSLane::getBruttoOccupancy(), SUMOVehicle::getChosenSpeedFactor(), MSEdge::getDepartLane(), SUMOVehicle::getEdge(), Named::getID(), SUMOVehicle::getID(), MSNet::getInsertionControl(), MSNet::getInstance(), MSEdge::getLength(), MSVehicleType::getLengthWithGap(), MESegment::getNextSegment(), SUMOVehicle::getParameter(), MSEdge::getPurpose(), MELoop::getSegmentForEdge(), MSVehicleType::getSpeedDeviation(), MSVehicleType::getSpeedFactor(), MSEdge::getSpeedLimit(), MSEdge::getVehicleMaxSpeed(), SUMOVehicle::getVehicleType(), MSGlobals::gMesoNet, MSGlobals::gUseMesoSim, MESegment::hasSpaceFor(), SUMOVehicle::hasValidRoute(), SUMOVehicleParameter::id, MESegment::initialise(), MSLane::insertVehicle(), MSEdge::isTaz(), MSEdge::isVaporizing(), MSEdge::myLanes, MSEdge::myLength, RandHelper::rand(), SUMOVehicle::setChosenSpeedFactor(), SUMOReal, time2string(), toString(), and WRITE_WARNING.

Referenced by MSInsertionControl::checkCandidates(), and MSCalibrator::execute().

bool MSEdge::isRoundabout ( ) const
inlineinherited
bool MSEdge::isTaz ( ) const
inlineinherited
bool MSEdge::isVaporizing ( ) const
inlineinherited

Returns whether vehicles on this edge shall be vaporized.

Returns
Whether no vehicle shall be on this edge

Definition at line 406 of file MSEdge.h.

References MSEdge::myVaporizationRequests.

Referenced by MSVehicle::executeMove(), MSLane::executeMovements(), and MSEdge::insertVehicle().

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 MSDevice::equippedByDefaultAssignmentOptions().

MSLane * MSEdge::leftLane ( const MSLane *const  lane) const
inherited

Returns the lane left to the one given, 0 if the given lane is leftmost.

Parameters
[in]laneThe lane right to the one to be returned
Returns
The lane left to the given, 0 if no such lane exists
Todo:
This method searches for the given in the container; probably, this could be done faster

Definition at line 273 of file MSEdge.cpp.

References MSEdge::parallelLane().

void GUIEdge::lock ( ) const
inlinevirtual

grant exclusive access to the mesoscopic state

Reimplemented from MSEdge.

Definition at line 197 of file GUIEdge.h.

References MFXMutex::lock(), and myLock.

void MSEdge::markAsRoundabout ( )
inlineinherited

Definition at line 642 of file MSEdge.h.

References MSEdge::myAmRoundabout.

Referenced by NLHandler::addRoundabout(), and NLEdgeControlBuilder::build().

void MSEdge::markDelayed ( ) const
inlineinherited
GUIEdge& GUIEdge::operator= ( const GUIEdge s)
private

invalidated assignment operator

MSLane * MSEdge::parallelLane ( const MSLane *const  lane,
int  offset 
) const
inherited

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

Parameters
[in]laneThe base lane
[in]offsetThe offset of the result lane
Todo:
This method searches for the given in the container; probably, this could be done faster

Definition at line 285 of file MSEdge.cpp.

References MSEdge::myLanes.

Referenced by MSLane::getParallelLane(), MSEdge::leftLane(), and MSEdge::rightLane().

void MSEdge::parseEdgesList ( const std::string &  desc,
ConstMSEdgeVector into,
const std::string &  rid 
)
staticinherited

Parses the given string assuming it contains a list of edge ids divided by spaces.

Splits the string at spaces, uses polymorph method to generate edge vector.

Parameters
[in]descThe string containing space-separated edge ids
[out]intoThe vector to fill
[in]ridThe id of the route these description belongs to; used for error message generation
Exceptions
ProcessErrorIf one of the strings contained is not a known edge id

Definition at line 729 of file MSEdge.cpp.

References BinaryFormatter::BF_ROUTE, StringTokenizer::getVector(), and FileHelpers::readEdgeVector().

Referenced by MSStateHandler::myStartElement(), MSRouteHandler::myStartElement(), MSRouteHandler::openRoute(), MSRouteHandler::parseFromViaTo(), and TraCIServerAPI_Vehicle::processSet().

void MSEdge::parseEdgesList ( const std::vector< std::string > &  desc,
ConstMSEdgeVector into,
const std::string &  rid 
)
staticinherited

Parses the given string vector assuming it edge ids.

Parameters
[in]descThe string vector containing edge ids
[out]intoThe vector to fill
[in]ridThe id of the route these description belongs to; used for error message generation
Exceptions
ProcessErrorIf one of the strings contained is not a known edge id

Definition at line 744 of file MSEdge.cpp.

References MSEdge::dictionary().

bool MSEdge::prohibits ( const SUMOVehicle *const  vehicle) const
inlineinherited

Returns whether the vehicle (class) is not allowed on the edge.

Definition at line 554 of file MSEdge.h.

References MSVehicleType::getVehicleClass(), SUMOVehicle::getVehicleType(), and MSEdge::myCombinedPermissions.

void GUIEdge::removeContainer ( MSTransportable container) const
inlinevirtual

Remove container from myContainers.

Reimplemented from MSEdge.

Definition at line 162 of file GUIEdge.h.

References myLock, and MSEdge::removeContainer().

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 266 of file GUIGlObject.cpp.

References GUIGlObject::myParamWindows.

Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().

void GUIEdge::removePerson ( MSTransportable p) const
inlinevirtual

Reimplemented from MSEdge.

Definition at line 151 of file GUIEdge.h.

References myLock, and MSEdge::removePerson().

MSLane * MSEdge::rightLane ( const MSLane *const  lane) const
inherited

Returns the lane right to the one given, 0 if the given lane is rightmost.

Parameters
[in]laneThe lane left to the one to be returned
Returns
The lane right to the given, 0 if no such lane exists
Todo:
This method searches for the given in the container; probably, this could be done faster

Definition at line 279 of file MSEdge.cpp.

References MSEdge::parallelLane().

void MSEdge::setCrossingEdges ( const std::vector< std::string > &  crossingEdges)
inlineinherited

Sets the crossed edge ids for a crossing edge.

Definition at line 302 of file MSEdge.h.

References MSEdge::myCrossingEdges.

Referenced by NLEdgeControlBuilder::addCrossingEdges().

bool GUIEdge::setFunctionalColor ( int  activeScheme) const

sets the color according to the current scheme index and some edge function

Definition at line 418 of file GUIEdge.cpp.

References PositionVector::beginEndAngle(), RGBColor::fromHSV(), MSEdge::getLanes(), GeomHelper::naviDegree(), GLHelper::setColor(), and SUMOReal.

Referenced by setColor().

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

resets the id

Parameters
[in]newIDThe new id of this object

Definition at line 74 of file Named.h.

References Named::myID.

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

void MSEdge::setJunctions ( MSJunction from,
MSJunction to 
)
inlineinherited

Definition at line 392 of file MSEdge.h.

References MSEdge::myFromJunction, and MSEdge::myToJunction.

Referenced by NLHandler::myEndElement().

void MSEdge::setLastFailedInsertionTime ( SUMOTime  time) const
inlineinherited

Sets the last time a vehicle could not be inserted.

Parameters
[in]timethe new value

Definition at line 538 of file MSEdge.h.

References MSEdge::myLastFailedInsertionTime.

void MSEdge::setMaxSpeed ( SUMOReal  val) const
inherited

Sets a new maximum speed for all lanes (used by TraCI and MSCalibrator)

Parameters
[in]valthe new speed in m/s

Definition at line 783 of file MSEdge.cpp.

References MSEdge::myLanes.

Referenced by METriggeredCalibrator::execute(), and MSCalibrator::execute().

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

Changes the microsimID of the object.

Note
happens in NETEDIT

Reimplemented in GNEEdge.

Definition at line 145 of file GUIGlObject.cpp.

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

Referenced by GNENet::renameJunction(), GNEAdditional::setAdditionalID(), GNELane::setIndex(), and GNEEdge::setMicrosimID().

bool GUIEdge::setMultiColor ( const GUIColorer c) const

sets multiple colors according to the current scheme index and edge function

Definition at line 433 of file GUIEdge.cpp.

References GUIPropertySchemeStorage< T >::getActive(), getAllowedSpeed(), GUIPropertyScheme< T >::getColor(), GUIPropertySchemeStorage< T >::getScheme(), MSGlobals::gMesoNet, and mySegmentColors.

Referenced by setColor().

void GUIGlObject::setPrefix ( const std::string &  prefix)
protectedinherited

usually names are prefixed by a type-specific string. this method can be used to change the default

Definition at line 275 of file GUIGlObject.cpp.

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

void GUIEdge::unlock ( ) const
inlinevirtual

release exclusive access to the mesoscopic state

Reimplemented from MSEdge.

Definition at line 202 of file GUIEdge.h.

References myLock, and MFXMutex::unlock().

Field Documentation

const GUIGlID GUIGlObject::INVALID_ID = 0
staticinherited
AllowedLanesCont MSEdge::myAllowed
protectedinherited

Associative container from destination-edge to allowed-lanes.

Definition at line 803 of file MSEdge.h.

Referenced by MSEdge::allowedLanes(), MSEdge::closeBuilding(), and MSEdge::~MSEdge().

bool MSEdge::myAmDelayed
mutableprotectedinherited

whether this edge had a vehicle with less than max speed on it

Definition at line 834 of file MSEdge.h.

Referenced by MSEdge::getCurrentTravelTime(), and MSEdge::markDelayed().

bool MSEdge::myAmRoundabout
protectedinherited

whether this edge belongs to a roundabout

Definition at line 837 of file MSEdge.h.

Referenced by MSEdge::isRoundabout(), and MSEdge::markAsRoundabout().

ClassedAllowedLanesCont MSEdge::myClassedAllowed
mutableprotectedinherited

From vehicle class to lanes allowed to be used by it.

Definition at line 807 of file MSEdge.h.

Referenced by MSEdge::allowedLanes(), MSEdge::rebuildAllowedLanes(), and MSEdge::~MSEdge().

std::map<SUMOVehicleClass, MSEdgeVector> MSEdge::myClassesSuccessorMap
mutableprotectedinherited

The successors available for a given vClass.

Definition at line 861 of file MSEdge.h.

Referenced by MSEdge::getSuccessors(), and MSEdge::rebuildAllowedLanes().

SVCPermissions MSEdge::myCombinedPermissions
protectedinherited

The union of lane permissions for this edge.

Definition at line 812 of file MSEdge.h.

Referenced by MSEdge::getPermissions(), MSEdge::initialize(), MSEdge::prohibits(), and MSEdge::rebuildAllowedLanes().

std::set<MSTransportable*> MSEdge::myContainers
mutableprotectedinherited

Containers on the edge.

Definition at line 797 of file MSEdge.h.

Referenced by MSEdge::addContainer(), drawGL(), MSEdge::getSortedContainers(), and MSEdge::removeContainer().

std::vector<std::string> MSEdge::myCrossingEdges
protectedinherited

The crossed edges id for a crossing edge. On not crossing edges it is empty.

Definition at line 781 of file MSEdge.h.

Referenced by MSEdge::getCrossingEdges(), and MSEdge::setCrossingEdges().

MSEdge::DictType MSEdge::myDict
staticprotectedinherited

Static dictionary to associate string-ids with objects.

Deprecated:
Move to MSEdgeControl, make non-static

Definition at line 851 of file MSEdge.h.

Referenced by MSEdge::clear(), MSEdge::dictionary(), MSEdge::dictSize(), fill(), getIDs(), getTotalLength(), and MSEdge::insertIDs().

MSEdgeVector MSEdge::myEdges
staticprotectedinherited

Static list of edges.

Deprecated:
Move to MSEdgeControl, make non-static

Definition at line 856 of file MSEdge.h.

Referenced by MSEdge::dictionary(), and MSEdge::getAllEdges().

std::string MSEdge::myEdgeType
protectedinherited

the type of the edge (optionally used during network creation)

Definition at line 819 of file MSEdge.h.

Referenced by MSEdge::getEdgeType().

SUMOReal MSEdge::myEmptyTraveltime
protectedinherited

the traveltime on the empty edge (cached value for speedup)

Definition at line 831 of file MSEdge.h.

Referenced by MSEdge::getCurrentTravelTime(), MSEdge::getMeanSpeed(), and MSEdge::recalcCache().

MSJunction* MSEdge::myFromJunction
protectedinherited

the junctions for this edge

Definition at line 790 of file MSEdge.h.

Referenced by MSEdge::getFromJunction(), and MSEdge::setJunctions().

MSLaneChanger* MSEdge::myLaneChanger
protectedinherited

This member will do the lane-change.

Definition at line 769 of file MSEdge.h.

Referenced by MSEdge::buildLaneChanger(), MSEdge::changeLanes(), MSEdge::hasLaneChanger(), and MSEdge::~MSEdge().

SUMOTime MSEdge::myLastFailedInsertionTime
mutableprotectedinherited

The time of last insertion failure.

Definition at line 778 of file MSEdge.h.

Referenced by MSEdge::getLastFailedInsertionTime(), and MSEdge::setLastFailedInsertionTime().

SUMOReal MSEdge::myLength
protectedinherited

the length of the edge (cached value for speedup)

Definition at line 828 of file MSEdge.h.

Referenced by MSEdge::getLength(), MSEdge::insertVehicle(), and MSEdge::recalcCache().

MFXMutex GUIEdge::myLock
mutableprivate

The mutex used to avoid concurrent updates of myPersons/ myContainers.

Definition at line 230 of file GUIEdge.h.

Referenced by addContainer(), addPerson(), drawGL(), drawMesoVehicles(), lock(), removeContainer(), removePerson(), unlock(), and ~GUIEdge().

SVCPermissions MSEdge::myMinimumPermissions
protectedinherited

The intersection of lane permissions for this edge.

Definition at line 810 of file MSEdge.h.

Referenced by MSEdge::allowedLanes(), and MSEdge::rebuildAllowedLanes().

const int MSEdge::myNumericalID
protectedinherited

This edge's numerical id.

Definition at line 763 of file MSEdge.h.

Referenced by MSEdge::getNumericalID().

std::set<MSTransportable*> MSEdge::myPersons
mutableprotectedinherited

Persons on the edge for drawing and pushbutton.

Definition at line 794 of file MSEdge.h.

Referenced by MSEdge::addPerson(), drawGL(), MSEdge::getPersons(), MSEdge::getSortedPersons(), and MSEdge::removePerson().

MSEdgeVector MSEdge::myPredecessors
protectedinherited
const int MSEdge::myPriority
protectedinherited

the priority of the edge (used during network creation)

Definition at line 822 of file MSEdge.h.

Referenced by MSEdge::getPriority().

std::vector<RGBColor> GUIEdge::mySegmentColors
mutable

The color of the segments (cached)

Definition at line 218 of file GUIEdge.h.

Referenced by getSegmentColors(), and setMultiColor().

std::string MSEdge::myStreetName
protectedinherited

the real-world name of this edge (need not be unique)

Definition at line 816 of file MSEdge.h.

Referenced by drawGL(), and MSEdge::getStreetName().

std::vector<SUMOReal> MSEdge::mySublaneSides
protectedinherited

the right side for each sublane on this edge

Definition at line 840 of file MSEdge.h.

Referenced by MSEdge::getSubLaneSides(), and MSEdge::initialize().

MSEdgeVector MSEdge::mySuccessors
protectedinherited
MSJunction* MSEdge::myToJunction
protectedinherited

Definition at line 791 of file MSEdge.h.

Referenced by MSEdge::getToJunction(), and MSEdge::setJunctions().

int MSEdge::myVaporizationRequests
protectedinherited

Vaporizer counter.

Definition at line 775 of file MSEdge.h.

Referenced by MSEdge::decVaporization(), MSEdge::incVaporization(), and MSEdge::isVaporizing().

SUMOReal MSEdge::myWidth
protectedinherited

Edge width [m].

Definition at line 825 of file MSEdge.h.

Referenced by MSEdge::getWidth(), and MSEdge::initialize().

StringBijection< GUIGlObjectType > GUIGlObject::TypeNames
staticinherited

associates object types with strings

Definition at line 76 of file GUIGlObject.h.


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