SUMO - Simulation of Urban MObility
|
A road/street connecting two junctions (gui-version) More...
#include <GUIEdge.h>
Data Structures | |
class | lane_wrapper_finder |
A class to find the matching lane wrapper. More... | |
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 } |
Defines possible edge types. More... | |
Public Member Functions | |
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 (MSPerson *p) |
virtual void | addPerson (MSPerson *p) const |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
virtual void | changeLanes (SUMOTime t) |
Performs lane changing on this edge. More... | |
void | clearParameter () |
Clears the parameter map. More... | |
void | closeBuilding () |
virtual void | drawGLAdditional (GUISUMOAbstractView *const parent, const GUIVisualizationSettings &s) const |
Draws additional, user-triggered visualisations. More... | |
void | drawName (const Position &pos, const SUMOReal scale, const GUIVisualizationTextSettings &settings, const SUMOReal angle=0) const |
Boundary | getBoundary () const |
Returns the street's geometry. More... | |
SUMOReal | getCurrentTravelTime (const SUMOReal minSpeed=0.00001) 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... | |
const std::string & | getID () const |
Returns the id. More... | |
MSLane & | getLane (size_t laneNo) |
returns the enumerated lane (!!! why not private with a friend?) More... | |
GUILaneWrapper & | getLaneGeometry (size_t laneNo) const |
returns the enumerated lane's geometry (!!! why not private with a friend?) More... | |
GUILaneWrapper & | getLaneGeometry (const MSLane *lane) const |
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 | 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... | |
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... | |
SUMOReal | getVehicleMaxSpeed (const SUMOVehicle *const veh) const |
Returns the maximum speed the vehicle may use on this edge. More... | |
GUIEdge (const std::string &id, int numericalID, const EdgeBasicFunction function, const std::string &streetName) | |
Constructor. More... | |
void | initGeometry () |
Builds lane wrappers for this edge's lanes. More... | |
void | initialize (std::vector< MSLane * > *lanes) |
Initialize the edge. More... | |
bool | knowsParameter (const std::string &key) const |
Returns whether the parameter is known. More... | |
bool | prohibits (const SUMOVehicle *const vehicle) const |
Returns whether the vehicle (class) is not allowed on the edge. More... | |
void | rebuildAllowedLanes () |
void | removePerson (MSPerson *p) |
virtual void | removePerson (MSPerson *p) const |
void | setID (const std::string &newID) |
resets the id More... | |
~GUIEdge () | |
Destructor. More... | |
inherited from GUIGlObject | |
virtual GUIGLObjectPopupMenu * | getPopUpMenu (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own popup-menu. More... | |
virtual GUIParameterTableWindow * | getParameterWindow (GUIMainWindow &app, GUISUMOAbstractView &parent) |
Returns an own parameter window. More... | |
Boundary | getCenteringBoundary () const |
Returns the boundary to which the view shall be centered in order to show the object. More... | |
void | drawGL (const GUIVisualizationSettings &s) const |
Draws the object. More... | |
Access to the edge's lanes | |
MSLane * | leftLane (const MSLane *const lane) const |
Returns the lane left to the one given, 0 if the given lane is leftmost. More... | |
MSLane * | rightLane (const MSLane *const lane) const |
Returns the lane right to the one given, 0 if the given lane is rightmost. More... | |
const std::vector< MSLane * > & | getLanes () const |
Returns this edge's lanes. More... | |
const std::vector< MSLane * > * | allowedLanes (const MSEdge &destination, SUMOVehicleClass vclass=SVC_UNKNOWN) const |
Get the allowed lanes to reach the destination-edge. More... | |
const std::vector< MSLane * > * | allowedLanes (SUMOVehicleClass vclass=SVC_UNKNOWN) 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... | |
int | getNumericalID () const |
Returns the numerical id of the edge. More... | |
const std::string & | getStreetName () const |
Returns the street name of the edge. More... | |
Access to succeeding/predecessing edges | |
void | addFollower (MSEdge *edge) |
Returns the list of edges which may be reached from this edge. More... | |
const std::vector< MSEdge * > & | getIncomingEdges () const |
Returns the list of edges from which this edge may be reached. More... | |
unsigned int | getNoFollowing () const |
Returns the number of edges that may be reached from this edge. More... | |
const MSEdge * | getFollower (unsigned int n) const |
Returns the n-th of the following edges. More... | |
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 |
Tries to insert the given vehicle into the network. More... | |
MSLane * | getFreeLane (const std::vector< MSLane * > *allowed, const SUMOVehicleClass vclass) const |
Finds the emptiest lane allowing the vehicle class. More... | |
MSLane * | getDepartLane (const 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 | |
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 () |
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 MSEdge * | dictionary (const std::string &id) |
Returns the MSEdge associated to the key id if exists, otherwise returns 0. More... | |
static MSEdge * | dictionary (size_t index) |
Returns the MSEdge at the index. More... | |
static size_t | dictSize () |
Returns the number of edges. More... | |
static void | fill (std::vector< GUIEdge * > &netsWrappers) |
static std::vector< GUIGlID > | getIDs (bool includeInternal) |
static std::pair< SUMOReal, SUMOReal > | getLaneOffsets (SUMOReal x1, SUMOReal y1, SUMOReal x2, SUMOReal y2, SUMOReal prev, SUMOReal wanted) |
static void | insertIDs (std::vector< std::string > &into) |
Inserts IDs of all known edges into the given vector. More... | |
static size_t | numericalDictSize () |
Returns the number of edges with a numerical id. More... | |
Static parser helper | |
static void | parseEdgesList (const std::string &desc, std::vector< const MSEdge * > &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, std::vector< const MSEdge * > &into, const std::string &rid) |
Parses the given string vector assuming it edge ids. More... | |
Static Public Attributes | |
static StringBijection < GUIGlObjectType > | TypeNames |
associates object types with strings More... | |
Protected Member Functions | |
const std::vector< MSLane * > * | allowedLanes (const MSEdge *destination, SUMOVehicleClass vclass=SVC_UNKNOWN) 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) |
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 | |
const EdgeBasicFunction | myFunction |
the purpose of the edge More... | |
std::string | myID |
The name of the object. More... | |
MSLaneChanger * | myLaneChanger |
This member will do the lane-change. More... | |
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... | |
int | myNumericalID |
This edge's numerical id. More... | |
std::set< MSPerson * > | myPersons |
Persons on the edge (only for drawing) More... | |
std::vector< MSEdge * > | myPredeccesors |
The preceeding edges. More... | |
std::vector< MSEdge * > | mySuccessors |
The succeeding edges. More... | |
int | myVaporizationRequests |
Vaporizer counter. 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... | |
std::string | myStreetName |
Private Types | |
typedef std::vector < GUILaneWrapper * > | LaneWrapperVector |
Definition of the lane's positions vector. More... | |
Private Member Functions | |
GUIEdge (const GUIEdge &s) | |
invalidated copy constructor More... | |
GUIEdge & | operator= (const GUIEdge &s) |
invalidated assignment operator More... | |
Private Attributes | |
LaneWrapperVector | myLaneGeoms |
List of the edge's lanes geometrical information. More... | |
MFXMutex | myLock |
The mutex used to avoid concurrent updates of myPersons. 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 std::vector< MSEdge * > | myEdges |
Static list of edges. More... | |
A road/street connecting two junctions (gui-version)
|
inherited |
|
inherited |
|
protectedinherited |
|
private |
|
inherited |
Defines possible edge types.
For different purposes, it is necessary to know whether the edge is a normal street or something special.
GUIEdge::GUIEdge | ( | const std::string & | id, |
int | numericalID, | ||
const EdgeBasicFunction | function, | ||
const std::string & | streetName | ||
) |
Constructor.
[in] | id | The id of the edge |
[in] | numericalID | The numerical id (index) of the edge |
Definition at line 75 of file GUIEdge.cpp.
GUIEdge::~GUIEdge | ( | ) |
Destructor.
Definition at line 81 of file GUIEdge.cpp.
References MFXMutex::locked(), myLaneGeoms, myLock, and MFXMutex::unlock().
|
private |
invalidated copy constructor
|
inlineinherited |
Returns the list of edges which may be reached from this edge.
Definition at line 223 of file MSEdge.h.
References MSEdge::mySuccessors.
Referenced by NLHandler::addDistrict().
|
inherited |
Adds a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Definition at line 53 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::addParam(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), and NIImporter_MATSim::EdgesHandler::myStartElement().
|
inherited |
Adds all given parameter.
[in] | mapArg | The keys/values to insert |
Definition at line 59 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Adds all given parameter.
[in] | p | The keys/values to insert |
Definition at line 67 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Lets this object know a parameter window showing the object's values was opened.
[in] | w | The opened parameter window |
Definition at line 187 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
|
inline |
Definition at line 149 of file GUIEdge.h.
References MSEdge::addPerson(), and myLock.
|
inlinevirtualinherited |
Definition at line 427 of file MSEdge.h.
References MSEdge::myPersons.
Referenced by addPerson(), MSPerson::MSPersonStage_Driving::proceed(), and MSPerson::MSPersonStage_Waiting::proceed().
|
inlineinherited |
Adds this object to the given container.
in,filled] | cont The container to add this item to |
Definition at line 114 of file Named.h.
References Named::StoringVisitor::add().
|
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.
[in] | destination | The edge to reach |
[in] | vclass | The vehicle class for which this information shall be returned |
Definition at line 185 of file MSEdge.cpp.
Referenced by MSEdge::allowedLanes(), MSVehicleTransfer::checkInsertions(), MSVehicle::getBestLanes(), MSEdge::getDepartLane(), MSEdge::getFreeLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), and MSLane::by_connections_to_sorter::operator()().
|
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.
[in] | vclass | The vehicle class for which this information shall be returned |
Definition at line 191 of file MSEdge.cpp.
References MSEdge::allowedLanes().
|
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.
[in] | destination | The edge to reach |
[in] | vclass | The vehicle class for which this information shall be returned |
Definition at line 207 of file MSEdge.cpp.
References MSEdge::getAllowedLanesWithDefault(), MSEdge::myAllowed, MSEdge::myClassedAllowed, and MSEdge::myMinimumPermissions.
|
protectedinherited |
Builds an entry which allows to center to the object.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 125 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_RECENTERVIEW, and MID_CENTER.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), getPopUpMenu(), and GUINet::getPopUpMenu().
|
protectedinherited |
Builds entries which allow to copy the name / typed name into the clipboard.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 134 of file GUIGlObject.cpp.
References MID_COPY_NAME, and MID_COPY_TYPED_NAME.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds the header.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 115 of file GUIGlObject.cpp.
References GUIMainWindow::getBoldFont(), and GUIGlObject::getFullName().
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), getPopUpMenu(), and GUINet::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to copy the cursor position if geo projection is used, also builds an entry for copying the geo-position.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether 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(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), getPopUpMenu(), and GUINet::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to (de)select the object.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 144 of file GUIGlObject.cpp.
References GUIGlObject::getGlID(), GUIIconSubSys::getIcon(), GUIGlObject::getType(), gSelected, ICON_FLAG_MINUS, ICON_FLAG_PLUS, GUISelectedStorage::isSelected(), MID_ADDSELECT, and MID_REMOVESELECT.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUITrafficLightLogicWrapper::getPopUpMenu(), GUIPolygon::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUIPointOfInterest::getPopUpMenu(), GUITriggeredRerouter::getPopUpMenu(), GUIJunctionWrapper::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), and getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the manipulator window.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 178 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_MANIP, and MID_MANIP.
Referenced by GUILaneSpeedTrigger::getPopUpMenu(), and GUITriggeredRerouter::getPopUpMenu().
|
protectedinherited |
Builds an entry which allows to open the parameter window.
in,filled] | ret The popup menu to add the entry to | |
[in] | addSeparator | Whether a separator shall be added, too |
Definition at line 157 of file GUIGlObject.cpp.
References GUIIconSubSys::getIcon(), ICON_APP_TABLE, and MID_SHOWPARS.
Referenced by GUIDetectorWrapper::getPopUpMenu(), GUIPerson::getPopUpMenu(), GUILaneSpeedTrigger::getPopUpMenu(), GUILaneWrapper::getPopUpMenu(), GUIBusStop::getPopUpMenu(), GUIVehicle::getPopUpMenu(), getPopUpMenu(), and GUINet::getPopUpMenu().
|
virtualinherited |
Performs lane changing on this edge.
Definition at line 377 of file MSEdge.cpp.
References MSEdge::EDGEFUNCTION_INTERNAL, MSLaneChanger::laneChange(), MSEdge::myFunction, and MSEdge::myLaneChanger.
Referenced by MSEdgeControl::changeLanes().
|
staticinherited |
Clears the dictionary.
Definition at line 487 of file MSEdge.cpp.
References MSEdge::myDict.
Referenced by MSNet::clearAll().
|
inherited |
Clears the parameter map.
Definition at line 91 of file Parameterised.cpp.
References Parameterised::myMap.
|
inherited |
Definition at line 107 of file MSEdge.cpp.
References MSLane::getEdge(), MSEdge::myAllowed, MSEdge::myLanes, MSEdge::myPredeccesors, MSEdge::mySuccessors, and MSEdge::rebuildAllowedLanes().
Disables vaporization.
The internal vaporization counter is decreased what disables the vaporization if it was only once enabled. Called from the event handler.
[in] | t | The current time (unused) |
ProcessError | not thrown by this method, just derived |
Definition at line 253 of file MSEdge.cpp.
References MSEdge::myVaporizationRequests.
Referenced by NLTriggerBuilder::buildVaporizer().
Inserts edge into the static dictionary Returns true if the key id isn't already in the dictionary. Otherwise returns false.
Definition at line 439 of file MSEdge.cpp.
References MSEdge::getNumericalID(), MSEdge::myDict, and MSEdge::myEdges.
Referenced by NLHandler::addConnection(), NLHandler::addDistrict(), NLHandler::addDistrictEdge(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeEffort::addEdgeWeight(), NLBuilder::EdgeFloatTimeLineRetriever_EdgeTravelTime::addEdgeWeight(), NLEdgeControlBuilder::beginEdgeParsing(), NLTriggerBuilder::buildVaporizer(), MSDevice_Routing::buildVehicleDevices(), NLHandler::closeEdge(), TraCIServerAPI_Simulation::convertCartesianToRoadMap(), NLDetectorBuilder::getEdgeChecking(), TraCIServerAPI_Simulation::getLaneChecking(), TraCIServerAPI_Edge::getShape(), MSRouteHandler::myStartElement(), MSTriggeredRerouter::myStartElement(), NLTriggerBuilder::parseAndBuildRerouter(), MSEdge::parseEdgesList(), MSDevice_Routing::preInsertionReroute(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Route::processSet(), TraCIServerAPI_Vehicle::processSet(), MSBaseVehicle::reroute(), and TraCIServerAPI_Vehicle::vtdMap_matchingNearest().
|
staticinherited |
Returns the MSEdge associated to the key id if exists, otherwise returns 0.
Definition at line 457 of file MSEdge.cpp.
References MSEdge::myDict.
|
staticinherited |
Returns the MSEdge at the index.
Definition at line 468 of file MSEdge.cpp.
References MSEdge::myEdges.
|
staticinherited |
Returns the number of edges.
Definition at line 475 of file MSEdge.cpp.
References MSEdge::myDict.
Referenced by fill().
|
virtual |
Draws the object.
[in] | s | The settings for the current view (may influence drawing) |
Implements GUIGlObject.
Definition at line 237 of file GUIEdge.cpp.
References Position::add(), GUIVisualizationTextSettings::color, GUIPerson::drawGL(), GUIGlObject::drawName(), GLHelper::drawText(), MSEdge::EDGEFUNCTION_CONNECTOR, MSEdge::EDGEFUNCTION_NORMAL, GUIVisualizationSettings::edgeName, GUIGlObject::getGlID(), GUINet::getGUIInstance(), MSBaseVehicle::getID(), GUILaneWrapper::getShape(), MSEdge::getStreetName(), GLO_MAX, GLO_VEHICLE, MSGlobals::gUseMesoSim, GUIVisualizationSettings::hideConnectors, GUIVisualizationSettings::internalEdgeName, PositionVector::length(), MFXMutex::lock(), Position::mul(), MSEdge::myFunction, myLaneGeoms, myLock, MSEdge::myPersons, MSEdge::myStreetName, PositionVector::positionAtOffset(), PositionVector::rotationDegreeAtOffset(), GUIVisualizationSettings::scale, GUIVisualizationTextSettings::show, GUIVisualizationTextSettings::size, GUIVisualizationSettings::streetName, SUMOReal, MFXMutex::unlock(), GUIVisualizationSettings::vehicleName, Position::x(), and Position::y().
|
inlinevirtualinherited |
Draws additional, user-triggered visualisations.
[in] | parent | The view |
[in] | s | The settings for the current view (may influence drawing) |
Reimplemented in GUIVehicle, and GUIPerson.
Definition at line 182 of file GUIGlObject.h.
References UNUSED_PARAMETER.
|
inherited |
Definition at line 214 of file GUIGlObject.cpp.
References GUIVisualizationTextSettings::color, GLHelper::drawText(), GUIGlObject::getMicrosimID(), GLO_MAX, GUIVisualizationTextSettings::show, and GUIVisualizationTextSettings::size.
Referenced by GUIPerson::drawGL(), GUIPolygon::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), and drawGL().
|
static |
Definition at line 159 of file GUIEdge.cpp.
References MSEdge::dictSize(), MSEdge::EDGEFUNCTION_DISTRICT, and MSEdge::myDict.
Referenced by GUINet::initGUIStructures().
|
protectedinherited |
lookup in map and return 0 if not found
Definition at line 197 of file MSEdge.cpp.
Referenced by MSEdge::allowedLanes().
Boundary GUIEdge::getBoundary | ( | ) | const |
Returns the street's geometry.
Definition at line 145 of file GUIEdge.cpp.
References Boundary::add(), Boundary::grow(), and myLaneGeoms.
Referenced by getCenteringBoundary().
|
virtual |
Returns the boundary to which the view shall be centered in order to show the object.
Implements GUIGlObject.
Definition at line 229 of file GUIEdge.cpp.
References getBoundary(), and Boundary::grow().
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 inifinte travel times, the given minimum speed is used.
[in] | minSpeed | The minimumSpeed to assume if traffic on this edge is stopped |
Definition at line 411 of file MSEdge.cpp.
References MSEdge::getLength(), MSGlobals::gUseMesoSim, MAX2(), MSEdge::myLanes, and SUMOReal.
Referenced by MSVehicleTransfer::addVeh(), MSVehicleTransfer::checkInsertions(), TraCIServerAPI_Edge::processGet(), and MSFullExport::writeEdge().
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.
[in] | veh | The vehicle to get the depart lane for |
Definition at line 279 of file MSEdge.cpp.
References MSEdge::allowedLanes(), MSRoute::begin(), DEPART_LANE_ALLOWED_FREE, DEPART_LANE_BEST_FREE, DEPART_LANE_DEFAULT, 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(), and SUMOReal.
Referenced by MSEdge::insertVehicle().
optimistic air distance heuristic for use in routing
[in] | other | The edge to which the distance shall be returned |
Definition at line 534 of file MSEdge.cpp.
References MSEdge::getLanes().
Returns the n-th of the following edges.
[in] | n | The index within following edges of the edge to return |
Definition at line 247 of file MSEdge.h.
References MSEdge::mySuccessors.
Referenced by MSRouteHandler::myStartElement().
|
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.
[in] | allowed | The lanes to choose from |
[in] | vclass | The vehicle class to look for |
Definition at line 260 of file MSEdge.cpp.
References MSEdge::allowedLanes(), and MSLane::getVehicleNumber().
Referenced by MSVehicleTransfer::checkInsertions(), and MSEdge::getDepartLane().
|
inlineinherited |
Returns the full name appearing in the tool tip.
Definition at line 107 of file GUIGlObject.h.
References GUIGlObject::myFullName.
Referenced by GUIGlObject::buildPopupHeader(), GUIGlObject_AbstractAdd::GUIGlObject_AbstractAdd(), GUIGLObjectPopupMenu::onCmdCopyTypedName(), GUIParam_PopupMenuInterface::onCmdOpenTracker(), GUILaneSpeedTrigger::openManipulator(), GUITriggeredRerouter::openManipulator(), GUIDialog_GLChosenEditor::rebuildList(), GUIGlObject_AbstractAdd::remove(), GUISelectedStorage::save(), and GUISUMOAbstractView::showToolTipFor().
|
inlineinherited |
Returns the numerical id of the object.
Definition at line 115 of file GUIGlObject.h.
References GUIGlObject::myGlID.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUINet::createTLWrapper(), GUIPolygon::drawGL(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIPointOfInterest::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneWrapper::drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIPerson::drawGLAdditional(), GUIVehicle::drawGLAdditional(), GUILaneWrapper::drawLinkRules(), GUILaneWrapper::getColorValue(), getIDs(), GUISUMOAbstractView::getObjectAtPosition(), GUIVehicle::getPopUpMenu(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), GUIGLObjectPopupMenu::onCmdAddSelected(), GUIGLObjectPopupMenu::onCmdCenter(), GUIGLObjectPopupMenu::onCmdRemoveSelected(), GUIVehicle::GUIVehiclePopupMenu::onCmdStartTrack(), GUISUMOAbstractView::removeAdditionalGLVisualisation(), GLObjectValuePassConnector< std::pair< int, MSPhaseDefinition > >::removeObject(), and GUIGlObject::~GUIGlObject().
|
inlineinherited |
Returns the id.
Definition at line 60 of file Named.h.
References Named::myID.
Referenced by Named::StoringVisitor::add(), MSDetectorControl::add(), RORouteDef::addAlternative(), MSNet::addBusStop(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), RONet::addNode(), NIImporter_SUMO::addPhase(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), 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(), 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(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), NBEdge::connections_sorter(), NLDetectorBuilder::convUncontE2PosLength(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), AGStreet::getName(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), NBEdgeCont::ignoreFilterMatch(), MSActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBTrafficLightLogicCont::insert(), NBNodeCont::insert(), NBEdgeCont::insert(), 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_Tripinfo::notifyEnter(), MSDevice_Tripinfo::notifyLeave(), MSDevice_Person::notifyLeave(), 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_Lane::processGet(), TraCIServerAPI_TLS::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(), PCPolyContainer::save(), RONet::saveAndRemoveRoutesUntil(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), NIXMLEdgesHandler::setNodes(), NBOwnTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), 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(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), MSInductLoop::writeTypedXMLOutput(), MSFullExport::writeVehicles(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
Definition at line 130 of file GUIEdge.cpp.
References MSEdge::EDGEFUNCTION_INTERNAL, GUIGlObject::getGlID(), MSEdge::getPurpose(), and MSEdge::myDict.
Referenced by GUISUMOViewParent::onCmdLocate().
|
inlineinherited |
Returns the list of edges from which this edge may be reached.
Definition at line 231 of file MSEdge.h.
References MSEdge::myPredeccesors.
Referenced by MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), and MSLane::getLogicalPredecessorLane().
MSLane & GUIEdge::getLane | ( | size_t | laneNo | ) |
returns the enumerated lane (!!! why not private with a friend?)
Definition at line 107 of file GUIEdge.cpp.
GUILaneWrapper & GUIEdge::getLaneGeometry | ( | size_t | laneNo | ) | const |
returns the enumerated lane's geometry (!!! why not private with a friend?)
Definition at line 114 of file GUIEdge.cpp.
References myLaneGeoms.
Referenced by GUIVehicle::draw(), GUIVehicle::getLaneWrapper(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), and GUISUMOViewParent::isSelected().
GUILaneWrapper & GUIEdge::getLaneGeometry | ( | const MSLane * | lane | ) | const |
Definition at line 121 of file GUIEdge.cpp.
References myLaneGeoms.
|
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
|
inlineinherited |
Returns this edge's lanes.
Definition at line 159 of file MSEdge.h.
References MSEdge::myLanes.
Referenced by NLHandler::addConnection(), MSVehicleTransfer::addVeh(), MSBaseVehicle::calculateArrivalPos(), MSEdgeControl::changeLanes(), MSVehicle::Influencer::checkForLaneChanges(), MSVehicleTransfer::checkInsertions(), MSPerson::MSPersonStage_Walking::computeWalkingTime(), MSCalibrator::execute(), MS_E2_ZS_CollectorOverLanes::extendTo(), MSVehicle::getBestLanes(), MSEdge::getDistanceTo(), MSPerson::MSPersonStage::getEdgeAngle(), GUILaneWrapper::getEdgeLaneNumber(), MSPerson::MSPersonStage::getEdgePosition(), TraCIServerAPI_Simulation::getLaneChecking(), MSEdge::getLength(), getPopUpMenu(), GUIVehicle::getPreviousLane(), TraCIServerAPI_Edge::getShape(), MSEdge::getSpeedLimit(), MSEdge::getVehicleMaxSpeed(), GUITriggeredRerouter::GUITriggeredRerouterEdge::GUITriggeredRerouterEdge(), MSCalibrator::init(), GUINet::initGUIStructures(), MSCalibrator::invalidJam(), GUISUMOViewParent::isSelected(), MSRouteProbe::MSRouteProbe(), MSLCM_DK2004::patchSpeed(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Vehicle::processSet(), MSCalibrator::remainingVehicleCapacity(), TraCIServerAPI_Vehicle::vtdMap_matchingNearest(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSQueueExport::writeEdge(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), and MSMeanData::writeEdge().
|
inlineinherited |
Returns the last time a vehicle could not be inserted.
Definition at line 363 of file MSEdge.h.
References MSEdge::myLastFailedInsertionTime.
|
inherited |
return the length of the edge
Definition at line 544 of file MSEdge.cpp.
References MSEdge::getLanes().
Referenced by MSVehicle::getBestLanes(), MSEdge::getCurrentTravelTime(), MSPerson::MSPersonStage_Driving::getEdgePos(), MSEdge::getMinimumTravelTime(), getParameterWindow(), MSCalibrator::init(), MSEdge::insertVehicle(), MSPerson::MSPersonStage_Waiting::MSPersonStage_Waiting(), MSCalibrator::remainingVehicleCapacity(), and MSMeanData::writeEdge().
|
inlineinherited |
Returns the inner key/value map.
Definition at line 106 of file Parameterised.h.
References Parameterised::myMap.
Referenced by PCPolyContainer::save().
|
inlineinherited |
Returns the id of the object as known to microsim.
Definition at line 146 of file GUIGlObject.h.
References GUIGlObject::myMicrosimID.
Referenced by GUIGlObject::createFullName(), GUIGlObject::drawName(), GUIDialog_GLObjChooser::GUIDialog_GLObjChooser(), and GUIGLObjectPopupMenu::onCmdCopyName().
|
inlineinherited |
returns the minimum travel time for the given vehicle
Definition at line 302 of file MSEdge.h.
References MSEdge::getLength(), SUMOVehicle::getMaxSpeed(), MSEdge::getSpeedLimit(), MSEdge::getVehicleMaxSpeed(), and MIN2().
Referenced by MSDevice_Routing::getEffort(), and MSNet::getTravelTime().
|
inlineinherited |
Returns the number of edges that may be reached from this edge.
Definition at line 239 of file MSEdge.h.
References MSEdge::mySuccessors.
Referenced by MSRouteHandler::myStartElement().
|
inlineinherited |
Returns the numerical id of the edge.
Definition at line 203 of file MSEdge.h.
References MSEdge::myNumericalID.
Referenced by MSEdgeControl::changeLanes(), and MSEdge::dictionary().
|
inherited |
Returns the value for a given key.
[in] | key | The key to ask for |
[in] | defaultValue | The default value to return if no value is stored under the key |
Definition at line 81 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by TraCIServerAPI_Vehicle::vtdMap_matchingNearest().
|
virtual |
Returns an own parameter window.
[in] | app | The application needed to build the parameter window |
[in] | parent | The parent window needed to build the parameter window |
Implements GUIGlObject.
Definition at line 189 of file GUIEdge.cpp.
References GUIParameterTableWindow::closeBuilding(), MSEdge::getLength(), GUISUMOAbstractView::getPositionInformation(), GUIParameterTableWindow::mkItem(), MSEdge::myLanes, and UNUSED_PARAMETER.
|
virtual |
Returns an own popup-menu.
[in] | app | The application needed to build the popup-menu |
[in] | parent | The parent window needed to build the popup-menu |
Implements GUIGlObject.
Definition at line 172 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().
|
inlineinherited |
Returns the edge type (EdgeBasicFunction)
Definition at line 195 of file MSEdge.h.
References MSEdge::myFunction.
Referenced by GUIEdgeControlBuilder::addLane(), NLEdgeControlBuilder::addLane(), MSLane::appropriate(), MSVehicle::checkRewindLinkLanes(), GUILaneWrapper::drawGL(), MSVehicle::enterLaneAtMove(), MSVehicle::getBestLanes(), getIDs(), GUIVehicle::getPreviousLane(), MSLane::succLinkSec(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingNearest(), and TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition().
|
inherited |
Returns the speed limit of the edge The speed limit of the first lane is retured; should probably be the fastest edge.
Definition at line 550 of file MSEdge.cpp.
References MSEdge::getLanes().
Referenced by MSEdge::getMinimumTravelTime(), MSCalibrator::invalidJam(), MSCalibrator::remainingVehicleCapacity(), and MSMeanData::writeEdge().
|
inlineinherited |
Returns the street name of the edge.
Definition at line 210 of file MSEdge.h.
References MSEdge::myStreetName.
Referenced by drawGL(), and GUILaneWrapper::getParameterWindow().
|
inlineinherited |
Returns the type of the object as coded in GUIGlObjectType.
Definition at line 159 of file GUIGlObject.h.
References GUIGlObject::myGLObjectType.
Referenced by GUIGlObject::buildSelectionPopupEntry(), GUIVehicle::drawAction_drawRailCarriages(), GUIPerson::drawGL(), GUILaneSpeedTrigger::drawGL(), GUIJunctionWrapper::drawGL(), GUILaneWrapper::drawGL(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), GUITriggeredRerouter::GUITriggeredRerouterEdge::drawGL(), GUIVehicle::drawGLAdditional(), GUILaneWrapper::getColorValue(), GUISUMOAbstractView::getObjectAtPosition(), GUIGlChildWindow::isSelected(), GUISUMOViewParent::isSelected(), GUISelectedStorage::loadIDs(), LayeredRTree::selectLayer(), and GUISelectedStorage::toggleSelection().
|
inherited |
Returns the maximum speed the vehicle may use on this edge.
Note that the vehicle's max. speed is not considered herein, only the edge's speed limit and the driver's adaptation of this speed. Only the first lane is considered
Definition at line 557 of file MSEdge.cpp.
References MSEdge::getLanes().
Referenced by MSEdge::getMinimumTravelTime().
Enables vaporization.
The internal vaporization counter is increased enabling the vaporization. Called from the event handler.
[in] | t | The current time (unused) |
ProcessError | not thrown by this method, just derived |
Definition at line 246 of file MSEdge.cpp.
References MSEdge::myVaporizationRequests.
Referenced by NLTriggerBuilder::buildVaporizer().
void GUIEdge::initGeometry | ( | ) |
Builds lane wrappers for this edge's lanes.
Definition at line 93 of file GUIEdge.cpp.
References myLaneGeoms, and MSEdge::myLanes.
|
inherited |
Initialize the edge.
[in] | allowed | Information which edges may be reached from which lanes |
[in] | lanes | List of this edge's lanes |
Definition at line 94 of file MSEdge.cpp.
References MSEdge::EDGEFUNCTION_DISTRICT, MSEdge::EDGEFUNCTION_INTERNAL, OptionsCont::getOptions(), MSEdge::myCombinedPermissions, MSEdge::myFunction, MSEdge::myLaneChanger, MSEdge::myLanes, and SVCFreeForAll.
Referenced by NLHandler::addDistrict(), and NLEdgeControlBuilder::closeEdge().
|
staticinherited |
Inserts IDs of all known edges into the given vector.
Definition at line 496 of file MSEdge.cpp.
References MSEdge::myDict.
Referenced by TraCIServerAPI_Edge::processGet().
|
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.
[in] | v | The vehicle to insert |
[in] | time | The current simulation time |
Definition at line 326 of file MSEdge.cpp.
References DEPART_POS_FREE, DEPART_POS_GIVEN, DEPART_POS_RANDOM, DEPART_POS_RANDOM_FREE, SUMOVehicleParameter::departPos, SUMOVehicleParameter::departPosProcedure, MSEdge::getDepartLane(), SUMOVehicle::getID(), MSEdge::getLength(), SUMOVehicle::getParameter(), MSGlobals::gUseMesoSim, MSLane::insertVehicle(), MSEdge::isVaporizing(), RandHelper::rand(), SUMOReal, toString(), UNUSED_PARAMETER, and WRITE_WARNING.
Referenced by MSCalibrator::execute().
|
inlineinherited |
Returns whether vehicles on this edge shall be vaporized.
Definition at line 260 of file MSEdge.h.
References MSEdge::myVaporizationRequests.
Referenced by MSVehicle::executeMove(), MSLane::executeMovements(), and MSEdge::insertVehicle().
|
inherited |
Returns whether the parameter is known.
[in] | key | The key to ask for |
Definition at line 75 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by TraCIServerAPI_Vehicle::vtdMap_matchingNearest().
Returns the lane left to the one given, 0 if the given lane is leftmost.
[in] | lane | The lane right to the one to be returned |
Definition at line 165 of file MSEdge.cpp.
References MSEdge::myLanes.
Referenced by MSLane::getLeftLane().
|
staticinherited |
Returns the number of edges with a numerical id.
Definition at line 481 of file MSEdge.cpp.
References MSEdge::myEdges.
Referenced by MSDevice_Routing::getRouter(), MSNet::getRouterEffort(), and MSNet::getRouterTT().
|
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.
[in] | desc | The string containing space-separated edge ids |
[out] | into | The vector to fill |
[in] | rid | The id of the route these description belongs to; used for error message generation |
ProcessError | If one of the strings contained is not a known edge id |
Definition at line 504 of file MSEdge.cpp.
References BinaryFormatter::BF_ROUTE, StringTokenizer::getVector(), and FileHelpers::readEdgeVector().
Referenced by MSRouteHandler::myStartElement(), MSRouteHandler::openRoute(), and TraCIServerAPI_Vehicle::processSet().
|
staticinherited |
Parses the given string vector assuming it edge ids.
[in] | desc | The string vector containing edge ids |
[out] | into | The vector to fill |
[in] | rid | The id of the route these description belongs to; used for error message generation |
ProcessError | If one of the strings contained is not a known edge id |
Definition at line 519 of file MSEdge.cpp.
References MSEdge::dictionary().
|
inlineinherited |
Returns whether the vehicle (class) is not allowed on the edge.
Definition at line 387 of file MSEdge.h.
References MSVehicleType::getVehicleClass(), SUMOVehicle::getVehicleType(), and MSEdge::myCombinedPermissions.
|
inherited |
Definition at line 144 of file MSEdge.cpp.
References MSEdge::myClassedAllowed, MSEdge::myCombinedPermissions, MSEdge::myLanes, MSEdge::myMinimumPermissions, and SVCFreeForAll.
Referenced by MSEdge::closeBuilding(), TraCIServerAPI_Edge::processSet(), and TraCIServerAPI_Lane::processSet().
|
inherited |
Lets this object know a parameter window showing the object's values was closed.
[in] | w | The closed parameter window |
Definition at line 193 of file GUIGlObject.cpp.
References GUIGlObject::myParamWindows.
Referenced by GUIParameterTableWindow::~GUIParameterTableWindow().
|
inline |
Definition at line 154 of file GUIEdge.h.
References myLock, and MSEdge::removePerson().
|
inlinevirtualinherited |
Definition at line 431 of file MSEdge.h.
References MSEdge::myPersons.
Referenced by MSPersonControl::abortWaiting(), MSPersonControl::boardAnyWaiting(), MSPerson::MSPersonStage_Walking::proceed(), MSPerson::MSPersonStage_Driving::proceed(), MSPerson::proceed(), and removePerson().
Returns the lane right to the one given, 0 if the given lane is rightmost.
[in] | lane | The lane left to the one to be returned |
Definition at line 175 of file MSEdge.cpp.
References MSEdge::myLanes.
Referenced by MSLane::getRightLane().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 68 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
|
inlineinherited |
Sets the last time a vehicle could not be inserted.
[in] | time | the new value |
Definition at line 371 of file MSEdge.h.
References MSEdge::myLastFailedInsertionTime.
|
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.
|
protectedinherited |
Definition at line 202 of file GUIGlObject.cpp.
References GUIGlObject::createFullName(), GUIGlObject::myFullName, and GUIGlObject::myPrefix.
|
protectedinherited |
Associative container from destination-edge to allowed-lanes.
Definition at line 554 of file MSEdge.h.
Referenced by MSEdge::allowedLanes(), MSEdge::closeBuilding(), and MSEdge::~MSEdge().
|
mutableprotectedinherited |
From vehicle class to lanes allowed to be used by it.
Definition at line 558 of file MSEdge.h.
Referenced by MSEdge::allowedLanes(), MSEdge::rebuildAllowedLanes(), and MSEdge::~MSEdge().
|
protectedinherited |
The union of lane permissions for this edge.
Definition at line 563 of file MSEdge.h.
Referenced by MSEdge::initialize(), MSEdge::prohibits(), and MSEdge::rebuildAllowedLanes().
|
staticprotectedinherited |
Static dictionary to associate string-ids with objects.
Definition at line 579 of file MSEdge.h.
Referenced by MSEdge::clear(), MSEdge::dictionary(), MSEdge::dictSize(), fill(), getIDs(), and MSEdge::insertIDs().
|
staticprotectedinherited |
Static list of edges.
Definition at line 584 of file MSEdge.h.
Referenced by MSEdge::dictionary(), and MSEdge::numericalDictSize().
|
protectedinherited |
the purpose of the edge
Definition at line 533 of file MSEdge.h.
Referenced by MSEdge::changeLanes(), drawGL(), MSEdge::getPurpose(), and MSEdge::initialize().
|
protectedinherited |
The name of the object.
Definition at line 121 of file Named.h.
Referenced by NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), RORouteDef::repairCurrentRoute(), Named::setID(), NBEdge::splitGeometry(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), MSCalibrator::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
|
protectedinherited |
This member will do the lane-change.
Definition at line 530 of file MSEdge.h.
Referenced by MSEdge::changeLanes(), MSEdge::initialize(), and MSEdge::~MSEdge().
|
private |
List of the edge's lanes geometrical information.
Definition at line 190 of file GUIEdge.h.
Referenced by drawGL(), getBoundary(), getLaneGeometry(), initGeometry(), and ~GUIEdge().
|
protectedinherited |
Container for the edge's lane; should be sorted: (right-hand-traffic) the more left the lane, the higher the container-index.
Definition at line 527 of file MSEdge.h.
Referenced by MSEdge::closeBuilding(), MSEdge::getCurrentTravelTime(), MSEdge::getDepartLane(), MSEdge::getLanes(), getParameterWindow(), initGeometry(), MSEdge::initialize(), MSEdge::leftLane(), MSEdge::rebuildAllowedLanes(), MSEdge::rightLane(), and MSEdge::~MSEdge().
|
mutableprotectedinherited |
The time of last insertion failure.
Definition at line 539 of file MSEdge.h.
Referenced by MSEdge::getLastFailedInsertionTime(), and MSEdge::setLastFailedInsertionTime().
|
mutableprivate |
The mutex used to avoid concurrent updates of myPersons.
Definition at line 223 of file GUIEdge.h.
Referenced by addPerson(), drawGL(), removePerson(), and ~GUIEdge().
|
protectedinherited |
The intersection of lane permissions for this edge.
Definition at line 561 of file MSEdge.h.
Referenced by MSEdge::allowedLanes(), and MSEdge::rebuildAllowedLanes().
|
protectedinherited |
This edge's numerical id.
Definition at line 524 of file MSEdge.h.
Referenced by MSEdge::getNumericalID().
|
mutableprotectedinherited |
Persons on the edge (only for drawing)
Definition at line 548 of file MSEdge.h.
Referenced by MSEdge::addPerson(), drawGL(), and MSEdge::removePerson().
|
protectedinherited |
The preceeding edges.
Definition at line 545 of file MSEdge.h.
Referenced by MSEdge::closeBuilding(), and MSEdge::getIncomingEdges().
|
protectedinherited |
Definition at line 565 of file MSEdge.h.
Referenced by drawGL(), and MSEdge::getStreetName().
|
protectedinherited |
The succeeding edges.
Definition at line 542 of file MSEdge.h.
Referenced by MSEdge::addFollower(), MSEdge::closeBuilding(), MSEdge::getFollower(), and MSEdge::getNoFollowing().
|
protectedinherited |
Vaporizer counter.
Definition at line 536 of file MSEdge.h.
Referenced by MSEdge::decVaporization(), MSEdge::incVaporization(), and MSEdge::isVaporizing().
|
staticinherited |
associates object types with strings
Definition at line 99 of file GUIGlObject.h.