SUMO - Simulation of Urban MObility

ROLane Class Reference

A single lane the router may use. More...

#include <ROLane.h>

Inheritance diagram for ROLane:
Named

Public Member Functions

const SUMOVehicleClasses & getAllowedClasses () const throw ()
 Returns the list of allowed vehicle classes.
const std::string & getID () const
 Returns the id.
SUMOReal getLength () const throw ()
 Returns the length of the lane.
const SUMOVehicleClasses & getNotAllowedClasses () const throw ()
 Returns the list of not allowed vehicle classes.
SUMOReal getSpeed () const throw ()
 Returns the maximum speed allowed on this lane.
 ROLane (const std::string &id, SUMOReal length, SUMOReal maxSpeed, const SUMOVehicleClasses &allowed, const SUMOVehicleClasses &disallowed) throw ()
 Constructor.
void setID (const std::string &newID)
 resets the id
 ~ROLane () throw ()
 Destructor.

Protected Attributes

std::string myID
 The name of the object.

Private Member Functions

ROLane & operator= (const ROLane &src)
 Invalidated assignment operator.
 ROLane (const ROLane &src)
 Invalidated copy constructor.

Private Attributes

SUMOVehicleClasses myAllowedClasses
 The list of allowed vehicle classes.
SUMOReal myLength
 The length of the lane.
SUMOReal myMaxSpeed
 The maximum speed allowed on the lane.
SUMOVehicleClasses myNotAllowedClasses
 The list of disallowed vehicle classes.

Detailed Description

A single lane the router may use.

Currently, the lane has no other purpose then storing the allowed vehicle classes. They are even only stored herein and used by computing the vehicle classes allowed on the according edge.

See also:
ROEdge

Definition at line 49 of file ROLane.h.


Constructor & Destructor Documentation

ROLane::ROLane ( const std::string &  id,
SUMOReal  length,
SUMOReal  maxSpeed,
const SUMOVehicleClasses &  allowed,
const SUMOVehicleClasses &  disallowed 
) throw () [inline]

Constructor.

Parameters:
[in]idThe id of the lane
[in]lengthThe length of the lane
[in]maxSpeedThe maximum speed allowed on the lane
[in]allowedVehicle classes that may pass this lane
[in]disallowedVehicle classes that may not pass this lane

Definition at line 59 of file ROLane.h.

ROLane::~ROLane ( ) throw () [inline]

Destructor.

Definition at line 68 of file ROLane.h.

ROLane::ROLane ( const ROLane &  src) [private]

Invalidated copy constructor.


Member Function Documentation

const SUMOVehicleClasses& ROLane::getAllowedClasses ( ) const throw () [inline]

Returns the list of allowed vehicle classes.

Returns:
The list of vehicle classes allowed on this lane

Definition at line 90 of file ROLane.h.

References myAllowedClasses.

const std::string& Named::getID ( ) const [inline, inherited]

Returns the id.

Returns:
The stored id

Reimplemented in MS_E2_ZS_CollectorOverLanes.

Definition at line 59 of file Named.h.

References Named::myID.

Referenced by RORouteDef_Alternatives::addAlternative(), MSNet::addBusStop(), NLHandler::addConnection(), NBLoadedSUMOTLDef::addConnection(), NIImporter_OpenDrive::addE2EConnectionsSecure(), NIImporter_SUMO::addPhase(), NBDistrict::addSink(), NBDistrict::addSource(), MSRouteHandler::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciStop(), NIVisumTL::build(), RORouteDef_Complete::buildCurrentRoute(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), NBEdge::buildInnerEdges(), NIVissimEdge::buildNBEdge(), NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), ODDistrictHandler::closeDistrict(), NBTrafficLightDefinition::collectEdges(), NBOwnTLDef::collectLinks(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBNode::computeNodeShape(), NBTrafficLightLogicCont::computeSingleLogic(), NBEdge::connections_sorter(), MSLane::detectCollisions(), NIVissimDistrictConnection::dict_BuildDistricts(), MSVTypeProbe::execute(), Command_SaveTLSSwitches::execute(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), MSNet::getBusStopID(), NIImporter_VISUM::getNamedEdgeContinuating(), NLTriggerBuilder::getPosition(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), MSUnboundActuatedTrafficLightLogic::init(), MSAgentbasedTrafficLightLogic::init(), MSActuatedTrafficLightLogic::init(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NIImporter_SUMO::initTrafficLightLogic(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), NIImporter_OpenDrive::loadNetwork(), MSLane::moveCritical(), MSVehicle::MSVehicle(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), Named::ComparatorIdLess::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(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_InductionLoop::processGet(), NWWriter_SUMO::prohibitionConnection(), NBNodeCont::remapEdge(), NBLoadedSUMOTLDef::removeConnection(), NBNode::removeDummyEdges(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBConnection::replaceFrom(), NBConnection::replaceTo(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), NBNodeCont::setAsTLControlled(), NBEdge::setControllingTLInformation(), MSLane::setCritical(), NBOwnTLDef::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBEdgeCont::splitAt(), RORDLoader_SUMOBase::startRoute(), NIXMLConnectionsHandler::validateLaneInfo(), MSInstantInductLoop::write(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeInternalConnections(), NWWriter_SUMO::writeJunction(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), and MSRouteProbe::writeXMLOutput().

SUMOReal ROLane::getLength ( ) const throw () [inline]

Returns the length of the lane.

Returns:
The length of this lane

Definition at line 74 of file ROLane.h.

References myLength.

const SUMOVehicleClasses& ROLane::getNotAllowedClasses ( ) const throw () [inline]

Returns the list of not allowed vehicle classes.

Returns:
The list of vehicle classes not allowed on this lane

Definition at line 98 of file ROLane.h.

References myNotAllowedClasses.

SUMOReal ROLane::getSpeed ( ) const throw () [inline]

Returns the maximum speed allowed on this lane.

Returns:
The maximum speed allowed on this lane

Definition at line 82 of file ROLane.h.

References myMaxSpeed.

ROLane& ROLane::operator= ( const ROLane &  src) [private]

Invalidated assignment operator.

void Named::setID ( const std::string &  newID) [inline, inherited]

resets the id

Definition at line 65 of file Named.h.

References Named::myID.


Field Documentation

The list of allowed vehicle classes.

Definition at line 111 of file ROLane.h.

Referenced by getAllowedClasses().

SUMOReal ROLane::myLength [private]

The length of the lane.

Definition at line 105 of file ROLane.h.

Referenced by getLength().

SUMOReal ROLane::myMaxSpeed [private]

The maximum speed allowed on the lane.

Definition at line 108 of file ROLane.h.

Referenced by getSpeed().

The list of disallowed vehicle classes.

Definition at line 114 of file ROLane.h.

Referenced by getNotAllowedClasses().


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines