![]() |
SUMO - Simulation of Urban MObility
|
A single signal group, may control several connections. More...
#include <NBLoadedTLDef.h>
Data Structures | |
class | phase_by_time_sorter |
Sorts phases by their begin time. More... | |
class | PhaseDef |
Definition of a single, loaded phase. More... | |
Public Member Functions | |
void | addConnection (const NBConnection &c) |
Inserts a controlled connection. More... | |
void | addPhaseBegin (SUMOTime time, TLColor color) |
Sets the begin of a phase. More... | |
void | addTo (const StoringVisitor &cont) const |
Adds this object to the given container. More... | |
bool | containsConnection (NBEdge *from, NBEdge *to) const |
Returns whether the given connection is controlled by this signal. More... | |
bool | containsIncoming (NBEdge *from) const |
Returns whether this signal controls the given edge. More... | |
bool | containsOutgoing (NBEdge *to) const |
Returns whether this signal controls a connection where the given edge is the destination. More... | |
const NBConnection & | getConnection (unsigned int pos) const |
Returns the connection at the given index. More... | |
const std::string & | getID () const |
Returns the id. More... | |
unsigned int | getLinkNo () const |
Returns the number of links (connection) controlled by this signal. More... | |
std::vector< SUMOReal > | getTimes (SUMOTime cycleDuration) const |
Returns the times at which the signal switches. More... | |
bool | hasYellow (SUMOTime time) const |
Returns whether controlled links have yellow at the given time. More... | |
bool | mayDrive (SUMOTime time) const |
Returns whether vehicles on controlled links may drive at the given time. More... | |
void | patchTYellow (unsigned int tyellow, bool forced) |
Sets the yellow time. More... | |
void | remap (NBEdge *removed, int removedLane, NBEdge *by, int byLane) |
Replaces a removed edge/lane. More... | |
void | remapIncoming (NBEdge *which, const EdgeVector &by) |
Replaces the given incoming edge by the others given. More... | |
void | remapOutgoing (NBEdge *which, const EdgeVector &by) |
Replaces the given outgoing edge by the others given. More... | |
void | setID (const std::string &newID) |
resets the id More... | |
void | setYellowTimes (SUMOTime tRedYellowe, SUMOTime tYellow) |
Sets the times for redyellow and yellow. More... | |
SignalGroup (const std::string &id) | |
Constructor. More... | |
void | sortPhases () |
Sorts the phases. More... | |
~SignalGroup () | |
Destructor. More... | |
Static Public Member Functions | |
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... | |
Protected Attributes | |
std::string | myID |
The name of the object. More... | |
Private Attributes | |
NBConnectionVector | myConnections |
Connections controlled by this signal. More... | |
std::vector< PhaseDef > | myPhases |
The phases of this signal. More... | |
SUMOTime | myTRedYellow |
The times of redyellow and yellow. More... | |
SUMOTime | myTYellow |
A single signal group, may control several connections.
Definition at line 54 of file NBLoadedTLDef.h.
NBLoadedTLDef::SignalGroup::SignalGroup | ( | const std::string & | id | ) |
Constructor.
[in] | id | The id of the signal group |
Definition at line 56 of file NBLoadedTLDef.cpp.
NBLoadedTLDef::SignalGroup::~SignalGroup | ( | ) |
Destructor.
Definition at line 59 of file NBLoadedTLDef.cpp.
void NBLoadedTLDef::SignalGroup::addConnection | ( | const NBConnection & | c | ) |
Inserts a controlled connection.
[in] | c | The connection to be controlled by this signal group |
Definition at line 62 of file NBLoadedTLDef.cpp.
References NBConnection::getFrom(), NBConnection::getFromLane(), NBEdge::getNumLanes(), and myConnections.
Sets the begin of a phase.
[in] | time | The time at which the phase starts |
[in] | color | The color of this signal starting at the given time |
Definition at line 69 of file NBLoadedTLDef.cpp.
References myPhases.
|
inlineinherited |
Adds this object to the given container.
Definition at line 126 of file Named.h.
References Named::StoringVisitor::add().
Returns whether the given connection is controlled by this signal.
[in] | from | The connection's start edge |
[in] | from | The connection's end edge |
Definition at line 150 of file NBLoadedTLDef.cpp.
References myConnections.
bool NBLoadedTLDef::SignalGroup::containsIncoming | ( | NBEdge * | from | ) | const |
Returns whether this signal controls the given edge.
[in] | from | The incoming edge |
Definition at line 169 of file NBLoadedTLDef.cpp.
References myConnections.
Referenced by NBLoadedTLDef::remapRemoved(), and NBLoadedTLDef::replaceRemoved().
bool NBLoadedTLDef::SignalGroup::containsOutgoing | ( | NBEdge * | to | ) | const |
Returns whether this signal controls a connection where the given edge is the destination.
[in] | from | The outgoing edge |
Definition at line 203 of file NBLoadedTLDef.cpp.
References myConnections.
Referenced by NBLoadedTLDef::remapRemoved(), and NBLoadedTLDef::replaceRemoved().
const NBConnection & NBLoadedTLDef::SignalGroup::getConnection | ( | unsigned int | pos | ) | const |
Returns the connection at the given index.
[in] | pos | The position within this signal |
Definition at line 162 of file NBLoadedTLDef.cpp.
References myConnections.
Referenced by NBLoadedTLDef::buildPhaseState(), NBLoadedTLDef::collectLinks(), NBLoadedTLDef::collectNodes(), and NBLoadedTLDef::mustBrake().
|
inlineinherited |
Returns the id.
Definition at line 65 of file Named.h.
References Named::myID.
Referenced by NIImporter_SUMO::_loadNetwork(), MSVehicleTransfer::add(), TraCIServerAPI_Lane::StoringVisitor::add(), MSDetectorControl::add(), Named::StoringVisitor::add(), IntermodalRouter< E, L, N, V >::addAccess(), NLTriggerBuilder::addAccess(), RORouteDef::addAlternative(), MSLane::addApproachingLane(), MSNet::addBusStop(), MSNet::addChargingStation(), NBLoadedSUMOTLDef::addConnection(), NLHandler::addConnection(), MSNet::addContainerStop(), NIXMLConnectionsHandler::addCrossing(), RODFDetectorCon::addDetector(), RONet::addEdge(), ROJTREdge::addFollowerProbability(), MSTLLogicControl::TLSLogicVariants::addLogic(), RONet::addNode(), NIImporter_SUMO::addPhase(), GUIEdge::addRerouter(), NBEdge::addRestrictedLane(), RONet::addRouteDef(), NBDistrict::addSink(), NBDistrict::addSource(), NIXMLEdgesHandler::addSplit(), NBTrafficLightLogic::addStep(), MSRouteHandler::addStop(), ROVehicle::addStop(), MSVehicle::addStop(), NIXMLTrafficLightsHandler::addTlConnection(), NIVissimDisturbance::addToNode(), MSVehicle::addTraciBusOrContainerStop(), MSVehicle::addTraciStop(), AGActivityTripWriter::addTrip(), GUITrafficLightLogicWrapper::begin2TrackPhases(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NLEdgeControlBuilder::build(), NIVisumTL::build(), RODFNet::buildApproachList(), MS_E2_ZS_CollectorOverLanes::buildCollector(), MSSOTLE2Sensors::buildContinueSensior(), MSSOTLE2Sensors::buildCountSensorForLane(), MSSOTLE2Sensors::buildCountSensorForOutLane(), NBNode::buildCrossings(), NBNode::buildCrossingsAndWalkingAreas(), NIImporter_VISUM::buildDistrictNode(), NIVissimConnection::buildEdgeConnections(), RODFNet::buildEdgeFlowMap(), GNEConnector::buildIinternalLanes(), GNETLSEditor::buildIinternalLanes(), NBEdge::buildInnerEdges(), NGEdge::buildNBEdge(), NIVissimEdge::buildNBEdge(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MELoop::buildSegmentsFor(), MSSOTLE2Sensors::buildSensorForLane(), MSSOTLE2Sensors::buildSensorForOutLane(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MELoop::changeSegment(), MSSimpleTrafficLightLogic::changeStepAndDuration(), NBEdge::checkGeometry(), MSVehicleTransfer::checkInsertions(), MSSwarmTrafficLightLogic::choosePolicy(), ODDistrictHandler::closeDistrict(), NLHandler::closeEdge(), RORouteHandler::closeRouteDistribution(), RORouteHandler::closeVehicle(), NBTrafficLightDefinition::collectAllLinks(), NBLoadedSUMOTLDef::collectEdges(), NBTrafficLightDefinition::collectEdges(), NBLoadedSUMOTLDef::collectEdgeVectors(), NBLoadedTLDef::collectLinks(), ROJTRRouter::compute(), NBTrafficLightDefinition::compute(), NBNode::computeInternalLaneShape(), NBEdge::computeLaneShapes(), NBNode::computeLogic(), NBOwnTLDef::computeLogicAndConts(), NBNode::computeNodeShape(), RODFNet::computeRoutesFor(), NBTrafficLightLogicCont::computeSingleLogic(), NBTurningDirectionsComputer::computeTurnDirectionsForNode(), NGNet::connect(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), NLDetectorBuilder::convUncontE2PosLength(), MSSOTLWaveTrafficLightLogic::countVehicles(), MSSOTLE2Sensors::countVehicles(), GUINet::createTLWrapper(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), NIVissimDistrictConnection::dict_BuildDistricts(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSPModel_Striping::MovePedestrians::execute(), MSTrafficLightLogic::SwitchCommand::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), NBNodeCont::extract(), NBTrafficLightLogicCont::extract(), NBEdgeCont::extract(), TraCIServerAPI_Vehicle::findCloserLane(), NBRampsComputer::fulfillsRampConstraints(), RODFDetectorCon::getAggFlowFor(), RODFDetectorCon::getAnyDetectorForEdge(), MSNet::getBusStopID(), MSNet::getChargingStationID(), NBEdge::getConnection(), MSNet::getContainerStopID(), NBEdge::getCrossingAngle(), GNEEdge::getDest(), RODFNet::getDetectorEdge(), MSMeanData::getEdgeID(), MSE2Collector::getEstimateQueueLength(), NBEdge::getFirstNonPedestrianLane(), MS_E2_ZS_CollectorOverLanes::getLanePredeccessorLanes(), MSTLLogicControl::TLSLogicVariants::getLogicInstantiatingOff(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), NIImporter_VISUM::getNamedEdgeContinuating(), MSPerson::getNextEdge(), MSPModel_Striping::getNextLane(), GUIInstantInductLoop::MyWrapper::getParameterWindow(), GUIMEInductLoop::MyWrapper::getParameterWindow(), GUI_E2_ZS_Collector::MyWrapper::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIInductLoop::MyWrapper::getParameterWindow(), MSSOTLTrafficLightLogic::getPhaseIndexWithMaxCTS(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), GUITrafficLightLogicWrapper::getPopUpMenu(), NLTriggerBuilder::getPosition(), NLDetectorBuilder::getPositionChecking(), NBNode::getPossiblySplittedIncoming(), NBNode::getPossiblySplittedOutgoing(), NIImporter_VISUM::getReversedContinuating(), GNEEdge::getSource(), MSVehicleControl::getWaitingVehicle(), MSLink::getZipperSpeed(), NBNode::guessCrossings(), RODFDetectorCon::guessEmptyFlows(), NBEdgeCont::guessSidewalks(), NBNodeCont::guessTLs(), GUITLLogicPhasesTrackerWindow::GUITLLogicPhasesTrackerWindow(), MSLane::handleCollision(), NBEdgeCont::ignoreFilterMatch(), MSDeterministicHiLevelTrafficLightLogic::init(), MSRailSignal::init(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSSwarmTrafficLightLogic::init(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), NBDistrictCont::insert(), NBNodeCont::insert(), NBTrafficLightLogicCont::insert(), NBEdgeCont::insert(), MSEdge::insertVehicle(), IntermodalNetwork< E, L, N, V >::IntermodalNetwork(), GNEJunction::invalidateTLS(), NBNode::invalidateTLS(), MSTLLogicControl::isActive(), MSPedestrianPushButton::isActiveForEdge(), MSPedestrianPushButton::isActiveOnAnySideOfTheRoad(), RODFNet::isDestination(), RODFNet::isFalseSource(), RODFNet::isSource(), MSSOTLTrafficLightLogic::isThresholdPassed(), NBNodeCont::joinJunctions(), NBEdgeCont::joinSameNodeConnectingEdges(), MSE3Collector::leave(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPedestrianPushButton::loadCrossingEdgeMap(), NIImporter_OpenDrive::loadNetwork(), MSPedestrianPushButton::loadPushButtons(), ODDistrictCont::makeDistricts(), MSSOTLE2Sensors::meanVehiclesSpeed(), METriggeredCalibrator::METriggeredCalibrator(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), NBRampsComputer::moveRampRight(), MSPModel_Striping::PState::moveToNextLane(), MSCalibrator::MSCalibrator(), MSChargingStation::MSChargingStation(), MSDevice_Battery::MSDevice_Battery(), NBLoadedTLDef::myCompute(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIXMLConnectionsHandler::myStartElement(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::myStartElement(), NBConnection::NBConnection(), NBRequest::NBRequest(), MSDevice_BTreceiver::notifyEnter(), MSDevice_BTsender::notifyEnter(), MSDevice_Example::notifyEnter(), MSDevice_Tripinfo::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE2Collector::notifyEnter(), MSDevice_Transportable::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSDevice_Example::notifyLeave(), MSDevice_Tripinfo::notifyLeave(), MSDevice_BTreceiver::notifyLeave(), MSDevice_BTsender::notifyLeave(), MSDevice_Example::notifyMove(), MSDevice_BTreceiver::notifyMove(), MSDevice_BTsender::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE2Collector::notifyMove(), GUIViewTraffic::onGamingClick(), RORouteHandler::openRoute(), Named::ComparatorIdLess::operator()(), NBTurningDirectionsComputer::combination_by_angle_sorter::operator()(), RODFNet::idComp::operator()(), NBNetBuilder::by_id_sorter::operator()(), NBOwnTLDef::edge_by_incoming_priority_sorter::operator()(), NBContHelper::same_connection_edge_sorter::operator()(), NBContHelper::edge_by_angle_to_nodeShapeCentroid_sorter::operator()(), NBNode::nodes_by_id_sorter::operator()(), MSEdge::by_id_sorter::operator()(), NIImporter_VISUM::parse_EdgePolys(), NIImporter_VISUM::parse_Lanes(), NIImporter_VISUM::parse_LanesConnections(), NIImporter_VISUM::parse_Turns(), NIImporter_VISUM::parse_TurnsToSignalGroups(), NIXMLConnectionsHandler::parseDeprecatedLaneDefinition(), NIXMLConnectionsHandler::parseLaneBound(), MSRouteHandler::parseWalkPositions(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_JE2013::patchSpeed(), patchTYellow(), MSRightOfWayJunction::postloadInit(), AGStreet::print(), TraCIServerAPI_TLS::processGet(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Vehicle::processGet(), TraCIServerAPI_Person::processGet(), TraCIServerAPI_ArealDetector::processGet(), TraCIServerAPI_Lane::processGet(), TraCIServerAPI_Vehicle::processSet(), NIXMLNodesHandler::processTrafficLightDefinitions(), NWWriter_SUMO::prohibitionConnection(), MSPModel_Striping::PState::PState(), NBEdgeCont::recheckPostProcessConnections(), remapIncoming(), remapOutgoing(), NBLoadedSUMOTLDef::removeConnection(), NBNodeCont::removeIsolatedRoads(), MSCalibrator::removePending(), NBNode::removeSelfLoops(), NBEdgeCont::removeUnwishedEdges(), NBNodeCont::removeUnwishedNodes(), NBNodeCont::rename(), NBEdgeCont::rename(), GNENet::renameEdge(), GNENet::renameJunction(), RORouteDef::repairCurrentRoute(), NBConnection::replaceFrom(), MSBaseVehicle::replaceRouteEdges(), NBConnection::replaceTo(), NIImporter_DlrNavteq::TrafficlightsHandler::report(), NIXMLTrafficLightsHandler::retrieveLaneIndex(), RODFNet::revalidateFlows(), RONet::saveAndRemoveRoutesUntil(), MSBaseVehicle::saveState(), MSLane::saveState(), MSDevice_Battery::setActualBatteryCapacity(), MSDevice_Battery::setAirDragCoefficient(), NBNodeCont::setAsTLControlled(), MSChargingStation::setChrgPower(), MSDevice_Battery::setConstantPowerIntake(), NBEdge::setControllingTLInformation(), MSChargingStation::setEfficency(), MSDevice_Battery::setFrontSurfaceArea(), MSDevice_Battery::setInternalMomentOfInertia(), GNEJunction::setLogicValid(), MSDevice_Battery::setMass(), MSDevice_Battery::setMaximumBatteryCapacity(), NIXMLEdgesHandler::setNodes(), MSDevice_Battery::setPowerMax(), MSDevice_Battery::setPropulsionEfficiency(), MSDevice_Battery::setRadialDragCoefficient(), MSDevice_Battery::setRecuperationEfficiency(), MSLink::setRequestInformation(), MSDevice_Battery::setRollDragCoefficient(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), NBLoadedSUMOTLDef::setTLControllingInformation(), NBOwnTLDef::setTLControllingInformation(), NBTrafficLightLogicCont::setTLControllingInformation(), NBLoadedTLDef::setTLControllingInformation(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), MSLane::succLinkSec(), GUITrafficLightLogicWrapper::switchTLSLogic(), MELoop::teleportVehicle(), METriggeredCalibrator::tryEmit(), MSSOTLTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::updateCTS(), GNETLSEditor::updateDescription(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), TraCIServerAPI_Vehicle::vtdMap(), MSPModel_Striping::PState::walk(), MSLCM_JE2013::wantsChange(), MSBatteryExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSInstantInductLoop::write(), NBSign::writeAsPOI(), NWWriter_SUMO::writeConnection(), NWWriter_SUMO::writeDistrict(), MSFullExport::writeEdge(), MSXMLRawOut::writeEdge(), NWWriter_SUMO::writeEdge(), MSMeanData::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), NWWriter_SUMO::writeInternalConnections(), writeInterval(), NWWriter_SUMO::writeJunction(), MSQueueExport::writeLane(), MSFullExport::writeLane(), NWWriter_DlrNavteq::writeLinksUnsplitted(), NWWriter_OpenDrive::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_DlrNavteq::writeNodesUnsplitted(), NWWriter_SUMO::writeRoundabout(), RODFDetectorCon::writeSpeedTrigger(), NWWriter_DlrNavteq::writeTrafficSignals(), MSFCDExport::writeTransportable(), MSInductLoop::writeTypedXMLOutput(), RODFDetectorCon::writeValidationDetectors(), MSFullExport::writeVehicles(), PointOfInterest::writeXML(), SUMO::Polygon::writeXML(), MSRouteProbe::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inlinestaticinherited |
get an identifier for Named-like object which may be Null
Definition at line 58 of file Named.h.
Referenced by operator<<(), and toString().
unsigned int NBLoadedTLDef::SignalGroup::getLinkNo | ( | ) | const |
Returns the number of links (connection) controlled by this signal.
Definition at line 123 of file NBLoadedTLDef.cpp.
References myConnections.
Referenced by NBLoadedTLDef::buildPhaseState(), NBLoadedTLDef::collectLinks(), NBLoadedTLDef::collectNodes(), and NBLoadedTLDef::mustBrake().
Returns the times at which the signal switches.
[in] | cycleDuration | The duration of the complete cycle |
Definition at line 100 of file NBLoadedTLDef.cpp.
References myPhases, myTYellow, SUMOReal, and NBTrafficLightDefinition::TLCOLOR_RED.
Referenced by NBLoadedTLDef::myCompute().
bool NBLoadedTLDef::SignalGroup::hasYellow | ( | SUMOTime | time | ) | const |
Returns whether controlled links have yellow at the given time.
[in] | time | The regarded time |
Definition at line 142 of file NBLoadedTLDef.cpp.
References mayDrive(), and myTYellow.
Referenced by NBLoadedTLDef::buildPhaseState().
bool NBLoadedTLDef::SignalGroup::mayDrive | ( | SUMOTime | time | ) | const |
Returns whether vehicles on controlled links may drive at the given time.
[in] | time | The regarded time |
Definition at line 129 of file NBLoadedTLDef.cpp.
References myPhases, and NBTrafficLightDefinition::TLCOLOR_GREEN.
Referenced by NBLoadedTLDef::buildPhaseState(), and hasYellow().
void NBLoadedTLDef::SignalGroup::patchTYellow | ( | unsigned int | tyellow, |
bool | forced | ||
) |
Sets the yellow time.
[in] | tyellow | The yellow time to set in seconds |
[in] | forced | Whether resetting tyellow was forced by the user by setting "tls.yellow.patch-small" |
Definition at line 88 of file NBLoadedTLDef.cpp.
References Named::getID(), myTYellow, toString(), and WRITE_WARNING.
Referenced by NBLoadedTLDef::myCompute().
void NBLoadedTLDef::SignalGroup::remap | ( | NBEdge * | removed, |
int | removedLane, | ||
NBEdge * | by, | ||
int | byLane | ||
) |
Replaces a removed edge/lane.
[in] | removed | The edge to replace |
[in] | removedLane | The lane of this edge to replace |
[in] | by | The edge to insert instead |
[in] | byLane | This edge's lane to insert instead |
Definition at line 237 of file NBLoadedTLDef.cpp.
References myConnections.
Referenced by NBLoadedTLDef::replaceRemoved().
void NBLoadedTLDef::SignalGroup::remapIncoming | ( | NBEdge * | which, |
const EdgeVector & | by | ||
) |
Replaces the given incoming edge by the others given.
[in] | which | The edge to replace |
[in] | by | The replacements |
Definition at line 180 of file NBLoadedTLDef.cpp.
References Named::getID(), myConnections, and NBConnection::replaceFrom().
Referenced by NBLoadedTLDef::remapRemoved().
void NBLoadedTLDef::SignalGroup::remapOutgoing | ( | NBEdge * | which, |
const EdgeVector & | by | ||
) |
Replaces the given outgoing edge by the others given.
[in] | which | The edge to replace |
[in] | by | The replacements |
Definition at line 214 of file NBLoadedTLDef.cpp.
References Named::getID(), myConnections, and NBConnection::replaceTo().
Referenced by NBLoadedTLDef::remapRemoved().
|
inlineinherited |
resets the id
[in] | newID | The new id of this object |
Definition at line 73 of file Named.h.
References Named::myID.
Referenced by NBNodeCont::rename(), and NBEdgeCont::rename().
Sets the times for redyellow and yellow.
[in] | tRedYellowe | The duration of the redyellow phase |
[in] | tYellow | The duration of the yellow phase |
Definition at line 75 of file NBLoadedTLDef.cpp.
References myTRedYellow, and myTYellow.
void NBLoadedTLDef::SignalGroup::sortPhases | ( | ) |
Sorts the phases.
Definition at line 82 of file NBLoadedTLDef.cpp.
References myPhases.
Referenced by NBLoadedTLDef::myCompute().
|
private |
Connections controlled by this signal.
Definition at line 195 of file NBLoadedTLDef.h.
Referenced by addConnection(), containsConnection(), containsIncoming(), containsOutgoing(), getConnection(), getLinkNo(), remap(), remapIncoming(), and remapOutgoing().
|
protectedinherited |
The name of the object.
Definition at line 133 of file Named.h.
Referenced by GUI_E2_ZS_CollectorOverLanes::buildCollector(), RODFDetector::buildDestinationDistribution(), NGEdge::buildNBEdge(), NGNode::buildNBNode(), MSSOTLTrafficLightLogic::checkPhases(), NBNode::computeNodeShape(), METriggeredCalibrator::execute(), MSCalibrator::execute(), Named::getID(), NBEdge::getLaneID(), NBEdge::getLaneIDInsecure(), ROEdge::getStoredEffort(), ROEdge::getTravelTime(), MSActuatedTrafficLightLogic::init(), MSSOTLTrafficLightLogic::init(), MSCalibrator::init(), NBEdge::init(), MSCalibrator::myStartElement(), MSMeanData::openInterval(), RORouteDef::preComputeCurrentRoute(), NBEdge::reinitNodes(), MSRoute::release(), Named::setID(), MSSOTLTrafficLightLogic::setToATargetPhase(), NBEdge::splitGeometry(), RODFDetector::writeEmitterDefinition(), MSXMLRawOut::writeLane(), NBNode::writeLogic(), RODFDetector::writeSingleSpeedTrigger(), MEInductLoop::writeXMLOutput(), MSCalibrator::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
|
private |
The phases of this signal.
Definition at line 197 of file NBLoadedTLDef.h.
Referenced by addPhaseBegin(), getTimes(), mayDrive(), and sortPhases().
|
private |
The times of redyellow and yellow.
Definition at line 199 of file NBLoadedTLDef.h.
Referenced by setYellowTimes().
|
private |
Definition at line 199 of file NBLoadedTLDef.h.
Referenced by getTimes(), hasYellow(), patchTYellow(), and setYellowTimes().