Eclipse SUMO - Simulation of Urban MObility
|
#include <MSRailSignalConstraint.h>
Data Structures | |
class | PassedTracker |
Public Types | |
enum | ConstraintType { PREDECESSOR = 0 , INSERTION_PREDECESSOR = 1 , FOE_INSERTION = 2 , INSERTION_ORDER = 3 , BIDI_PREDECESSOR = 4 } |
typedef std::map< std::string, std::string > | Map |
parameters map | |
Public Member Functions | |
bool | cleared () const |
whether the constraint has been met | |
void | clearParameter () |
Clears the parameter map. | |
std::string | getDescription () const |
double | getDouble (const std::string &key, const double defaultValue) const |
Returns the value for a given key converted to a double. | |
std::vector< double > | getDoubles (const std::string &key, std::vector< double > defaultValue=std::vector< double >()) const |
Returns the value for a given key converted to a list of doubles. | |
const SUMOVehicle * | getFoe () const |
virtual const std::string | getParameter (const std::string &key, const std::string defaultValue="") const |
Returns the value for a given key. | |
const Parameterised::Map & | getParametersMap () const |
Returns the inner key/value map. | |
std::string | getParametersStr (const std::string kvsep="=", const std::string sep="|") const |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN". | |
ConstraintType | getSwappedType () const |
SumoXMLTag | getTag () const |
ConstraintType | getType () const |
bool | hasParameter (const std::string &key) const |
Returns whether the parameter is set. | |
bool | isActive () const |
bool | isInsertionConstraint () const |
void | mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true) |
Adds or appends all given parameters from the map. | |
MSRailSignalConstraint_Predecessor (ConstraintType type, const MSRailSignal *signal, const std::string &tripId, int limit, bool active) | |
Constructor. | |
void | setActive (bool active) |
virtual void | setParameter (const std::string &key, const std::string &value) |
Sets a parameter. | |
void | setParameters (const Parameterised ¶ms) |
set the inner key/value map in map<string, string> format | |
void | setParametersStr (const std::string ¶msString, const std::string kvsep="=", const std::string sep="|") |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN" | |
void | unsetParameter (const std::string &key) |
Removes a parameter. | |
void | updateParameters (const Parameterised::Map &mapArg) |
Adds or updates all given parameters from the map. | |
void | write (OutputDevice &out, const std::string &tripId) const |
void | writeParams (OutputDevice &device) const |
write Params in the given outputdevice | |
~MSRailSignalConstraint_Predecessor () | |
Destructor. | |
Static Public Member Functions | |
static bool | areAttributesValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas) | |
static bool | areParametersValid (const std::string &value, bool report=false, const std::string kvsep="=", const std::string sep="|") |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN" | |
static void | cleanup () |
clean up state | |
static void | clearAll () |
Remove all constraints before quick-loading state. | |
static void | clearState () |
Clear all constraint states before quick-loading state. | |
static void | loadState (const SUMOSAXAttributes &attrs) |
loads the constraint state from the given attrs | |
static const std::string & | lookupVehId (const std::string &tripId) |
static void | saveState (OutputDevice &out) |
Saves the current constraint states into the given stream. | |
static void | storeTripId (const std::string &tripId, const std::string &vehID) |
Data Fields | |
bool | myAmActive |
Whether this constraint is currently active. | |
const MSRailSignal * | myFoeSignal |
store the foe signal (for TraCI access) | |
const int | myLimit |
the number of passed vehicles within which tripId must have occured | |
std::vector< PassedTracker * > | myTrackers |
the tracker object for this constraint | |
const std::string | myTripId |
id of the predecessor that must already have passed | |
Static Public Attributes | |
static std::map< const MSLane *, PassedTracker *, ComparatorNumericalIdLess > | myTrackerLookup |
Static Protected Member Functions | |
static const SUMOVehicle * | getVeh (const std::string &tripID, bool checkID=false) |
Protected Attributes | |
ConstraintType | myType |
Static Protected Attributes | |
static std::map< std::string, std::string > | myTripIdLookup |
Private Member Functions | |
MSRailSignalConstraint_Predecessor & | operator= (const MSRailSignalConstraint_Predecessor &s)=delete |
invalidated assignment operator | |
Static Private Member Functions | |
static bool | isParameterValid (const std::string &value, const std::string &kvsep, const std::string &sep) |
check if given string can be parsed to a parameter of type "key=value" | |
Private Attributes | |
Parameterised::Map | myMap |
The key->value map. | |
Definition at line 135 of file MSRailSignalConstraint.h.
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
|
inherited |
Enumerator | |
---|---|
PREDECESSOR | |
INSERTION_PREDECESSOR | |
FOE_INSERTION | |
INSERTION_ORDER | |
BIDI_PREDECESSOR |
Definition at line 44 of file MSRailSignalConstraint.h.
MSRailSignalConstraint_Predecessor::MSRailSignalConstraint_Predecessor | ( | ConstraintType | type, |
const MSRailSignal * | signal, | ||
const std::string & | tripId, | ||
int | limit, | ||
bool | active | ||
) |
Constructor.
Definition at line 108 of file MSRailSignalConstraint.cpp.
References MSTrafficLightLogic::getLinks(), myTrackerLookup, myTrackers, and MSRailSignalConstraint_Predecessor::PassedTracker::raiseLimit().
|
inline |
Destructor.
Definition at line 142 of file MSRailSignalConstraint.h.
|
staticinherited |
check if given string can be parsed to an attributes map "key1=value1|key2=value2|...|keyN=valueN" (used in generic datas)
Definition at line 219 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEFrameAttributeModules::GenericDataAttributes::areAttributesValid(), GNEEdgeData::isValid(), GNEEdgeRelData::isValid(), and GNETAZRelData::isValid().
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 200 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEDetector::isDetectorValid(), GNEAccess::isValid(), GNEBusStop::isValid(), GNECalibrator::isValid(), GNECalibratorFlow::isValid(), GNEChargingStation::isValid(), GNEContainerStop::isValid(), GNEMultiEntryExitDetector::isValid(), GNEOverheadWire::isValid(), GNEParkingArea::isValid(), GNEParkingSpace::isValid(), GNERerouter::isValid(), GNERouteProbe::isValid(), GNETAZ::isValid(), GNETAZSourceSink::isValid(), GNETractionSubstation::isValid(), GNEVaporizer::isValid(), GNEVariableSpeedSign::isValid(), GNEContainer::isValid(), GNEPerson::isValid(), GNERoute::isValid(), GNEStop::isValid(), GNEVehicle::isValid(), GNEVType::isValid(), GNEConnection::isValid(), GNECrossing::isValid(), GNEEdge::isValid(), GNEEdgeType::isValid(), GNEJunction::isValid(), GNELane::isValid(), GNELaneType::isValid(), GNEPOI::isValid(), GNEPoly::isValid(), GNETLSEditorFrame::TLSAttributes::isValidParameters(), and GNEFrameAttributeModules::GenericDataAttributes::onCmdSetParameters().
|
static |
clean up state
Definition at line 132 of file MSRailSignalConstraint.cpp.
References myTrackerLookup.
Referenced by MSRailSignalConstraint::cleanup().
|
staticinherited |
Remove all constraints before quick-loading state.
Definition at line 78 of file MSRailSignalConstraint.cpp.
References MSRailSignalControl::getInstance(), MSRailSignalControl::getSignals(), and MSRailSignalConstraint::myTripIdLookup.
Referenced by MSStateHandler::myStartElement().
|
virtual |
whether the constraint has been met
Implements MSRailSignalConstraint.
Definition at line 174 of file MSRailSignalConstraint.cpp.
References myAmActive, myLimit, myTrackers, and myTripId.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), and LIBSUMO_NAMESPACE::TrafficLight::updateConstraints().
|
inherited |
Clears the parameter map.
Definition at line 139 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing(), and GNESingleParametersDialog::onCmdAccept().
|
static |
Clear all constraint states before quick-loading state.
Definition at line 166 of file MSRailSignalConstraint.cpp.
References myTrackerLookup.
Referenced by MSRailSignalConstraint::clearState().
|
virtual |
Reimplemented from MSRailSignalConstraint.
Definition at line 187 of file MSRailSignalConstraint.cpp.
References Named::getID(), Parameterised::getParametersMap(), MSRailSignalConstraint::getTag(), MSRailSignalConstraint::getVeh(), myTrackers, myTripId, StringUtils::prune(), and toString().
|
inherited |
Returns the value for a given key converted to a double.
[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 100 of file Parameterised.cpp.
References Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by MSPModel_JuPedSim::add(), MSVehicleType::build(), MSVehicleType::check(), EnergyParams::EnergyParams(), MSSOTLPolicy5DStimulus::getStimCox(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionIn(), MSSOTLPolicy5DStimulus::getStimCoxExpDispersionOut(), MSSOTLPolicy5DStimulus::getStimCoxExpIn(), MSSOTLPolicy5DStimulus::getStimCoxExpOut(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionIn(), MSSOTLPolicy5DStimulus::getStimDivisorDispersionOut(), MSSOTLPolicy5DStimulus::getStimDivisorIn(), MSSOTLPolicy5DStimulus::getStimDivisorOut(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionIn(), MSSOTLPolicy5DStimulus::getStimOffsetDispersionOut(), MSSOTLPolicy5DStimulus::getStimOffsetIn(), MSSOTLPolicy5DStimulus::getStimOffsetOut(), MSActuatedTrafficLightLogic::init(), MSDevice_ElecHybrid::MSDevice_ElecHybrid(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), and MSDevice_Battery::readParameterValue().
|
inherited |
Returns the value for a given key converted to a list of doubles.
[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 118 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, TL, StringUtils::toDouble(), WRITE_WARNING, and WRITE_WARNINGF.
Referenced by EnergyParams::EnergyParams().
|
virtual |
Reimplemented from MSRailSignalConstraint.
Definition at line 218 of file MSRailSignalConstraint.cpp.
References MSRailSignalConstraint::getVeh(), and myTripId.
|
virtualinherited |
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 |
Reimplemented in MSActuatedTrafficLightLogic, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 90 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSPModel_JuPedSim::add(), NBRailwayTopologyAnalyzer::addBidiEdge(), NBEdge::addRestrictedLane(), FareModul::addStop(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), ROEdge::cacheParamRestrictions(), SUMOVTypeParameter::cacheParamRestrictions(), MSVehicleType::check(), MSRailSignal::constraintsAllow(), GUINet::createTLWrapper(), GNEEdge::drawEdgeName(), GNEConnection::drawEdgeValues(), GNEGenericData::drawFilteredAttribute(), GUIEdge::drawGL(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUIEdge::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), LIBSUMO_NAMESPACE::TrafficLight::getFutureTripIds(), MSTLLogicControl::WAUTSwitchProcedure::getGSPTime(), RORoutable::getMaxSpeed(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSSOTLRequestPolicy::getMinDecisionalPhaseDuration(), GUIBaseVehicle::getOptionalName(), GUITrafficLightLogicWrapper::getOptionalName(), MSDevice_SSM::getOutputFilename(), MSSimpleTrafficLightLogic::getParameter(), NEMALogic::getParameter(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSBaseVehicle::getPrefixedParameter(), GUIBaseVehicle::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSRailSignalControl::haveDeadlock(), MSLink::ignoreFoe(), MSSOTLPhasePolicy::init(), MSStageDriving::init(), PushButtonLogic::init(), SigmoidLogic::init(), SUMOVTypeParameter::initRailVisualizationParameters(), NIImporter_OpenStreetMap::insertNodeChecking(), MSAbstractLaneChangeModel::laneChangeOutput(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), MSSOTLPolicy::MSSOTLPolicy(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), MSDevice_GLOSA::notifyEnter(), MSRailSignalConstraint_Predecessor::PassedTracker::notifyEnter(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), MSDevice_Bluelight::resetVehicle(), GNEEdgeData::setColor(), GNEEdgeRelData::setColor(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), NBEdge::setOrigID(), MSVehicle::slowDownForSchedule(), NBEdgeCont::splitAt(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), NWWriter_DlrNavteq::writeLinksUnsplitted(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPOI(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inherited |
Returns the inner key/value map.
Definition at line 145 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), NBEdge::addLane(), NBEdge::append(), LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), GUIParameterTableWindow::closeBuilding(), NLHandler::closeEdge(), NBTrafficLightDefinition::compute(), GNEGenericData::drawAttribute(), GNEGenericData::drawFilteredAttribute(), NLDetectorBuilder::endE3Detector(), GNEAccess::getACParametersMap(), GNECalibrator::getACParametersMap(), GNEDetector::getACParametersMap(), GNEMultiEntryExitDetector::getACParametersMap(), GNEOverheadWire::getACParametersMap(), GNEParkingSpace::getACParametersMap(), GNERerouter::getACParametersMap(), GNERouteProbe::getACParametersMap(), GNEStoppingPlace::getACParametersMap(), GNETAZ::getACParametersMap(), GNEVaporizer::getACParametersMap(), GNEVariableSpeedSign::getACParametersMap(), GNEDataInterval::getACParametersMap(), GNEDataSet::getACParametersMap(), GNEGenericData::getACParametersMap(), GNEContainer::getACParametersMap(), GNEPerson::getACParametersMap(), GNEPersonTrip::getACParametersMap(), GNERide::getACParametersMap(), GNERoute::getACParametersMap(), GNEStop::getACParametersMap(), GNEStopPlan::getACParametersMap(), GNETranship::getACParametersMap(), GNETransport::getACParametersMap(), GNEVehicle::getACParametersMap(), GNEVType::getACParametersMap(), GNEWalk::getACParametersMap(), GNEConnection::getACParametersMap(), GNECrossing::getACParametersMap(), GNEEdge::getACParametersMap(), GNEEdgeType::getACParametersMap(), GNEJunction::getACParametersMap(), GNELane::getACParametersMap(), GNELaneType::getACParametersMap(), GNEPOI::getACParametersMap(), GNEPoly::getACParametersMap(), getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), GNESingleParametersDialog::GNESingleParametersDialog(), MSRailCrossing::init(), MSActuatedTrafficLightLogic::init(), MSDevice_Taxi::initDispatch(), MSPModel_JuPedSim::initialize(), MSBaseVehicle::initTransientModelParams(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), GNEEdgeData::isGenericDataVisible(), GNEEdgeRelData::isGenericDataVisible(), GNETAZRelData::isGenericDataVisible(), GNEGenericData::isVisibleInspectDeleteSelect(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), GUIParameterTableWindow::numParams(), GNESingleParametersDialog::onCmdReset(), GNEVType::overwriteVType(), TraCIServerAPI_TrafficLight::processGet(), Parameterised::setParameters(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), GNEEdgeData::writeGenericData(), GNEEdgeRelData::writeGenericData(), and GNETAZRelData::writeGenericData().
|
inherited |
Returns the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN".
Definition at line 151 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAccess::getAttribute(), GNEBusStop::getAttribute(), GNECalibrator::getAttribute(), GNECalibratorFlow::getAttribute(), GNEChargingStation::getAttribute(), GNEContainerStop::getAttribute(), GNEMultiEntryExitDetector::getAttribute(), GNEOverheadWire::getAttribute(), GNEParkingArea::getAttribute(), GNEParkingSpace::getAttribute(), GNERerouter::getAttribute(), GNERouteProbe::getAttribute(), GNETAZ::getAttribute(), GNETAZSourceSink::getAttribute(), GNETractionSubstation::getAttribute(), GNEVaporizer::getAttribute(), GNEVariableSpeedSign::getAttribute(), GNEEdgeData::getAttribute(), GNEEdgeRelData::getAttribute(), GNETAZRelData::getAttribute(), GNEContainer::getAttribute(), GNEPerson::getAttribute(), GNERoute::getAttribute(), GNEStop::getAttribute(), GNEVehicle::getAttribute(), GNEVType::getAttribute(), GNEConnection::getAttribute(), GNEEdge::getAttribute(), GNEEdgeType::getAttribute(), GNEJunction::getAttribute(), GNELane::getAttribute(), GNELaneType::getAttribute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), and GNEDetector::getDetectorAttribute().
|
inlineinherited |
Definition at line 95 of file MSRailSignalConstraint.h.
References MSRailSignalConstraint::FOE_INSERTION, MSRailSignalConstraint::INSERTION_PREDECESSOR, and MSRailSignalConstraint::myType.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::swapConstraints().
|
inlineinherited |
Definition at line 80 of file MSRailSignalConstraint.h.
References MSRailSignalConstraint::BIDI_PREDECESSOR, MSRailSignalConstraint::FOE_INSERTION, MSRailSignalConstraint::INSERTION_ORDER, MSRailSignalConstraint::INSERTION_PREDECESSOR, MSRailSignalConstraint::myType, SUMO_TAG_BIDI_PREDECESSOR, SUMO_TAG_FOE_INSERTION, SUMO_TAG_INSERTION_ORDER, SUMO_TAG_INSERTION_PREDECESSOR, and SUMO_TAG_PREDECESSOR.
Referenced by getDescription(), and write().
|
inlineinherited |
Definition at line 76 of file MSRailSignalConstraint.h.
References MSRailSignalConstraint::myType.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().
|
staticprotectedinherited |
Definition at line 87 of file MSRailSignalConstraint.cpp.
References Named::getID(), MSNet::getInstance(), SUMOTrafficObject::getParameter(), Parameterised::getParameter(), MSVehicleControl::getVehicle(), MSNet::getVehicleControl(), MSVehicleControl::loadedVehBegin(), MSVehicleControl::loadedVehEnd(), and MSRailSignalConstraint::lookupVehId().
Referenced by getDescription(), and getFoe().
|
inherited |
Returns whether the parameter is set.
[in] | key | The key to ask for |
Definition at line 84 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by MSStageWalking::activateEntryReminders(), NBEdge::append(), MSVehicleType::build(), GUIInductLoop::buildDetectorGUIRepresentation(), MSDevice_ElecHybrid::buildVehicleDevices(), MSDevice_Example::buildVehicleDevices(), GUINet::createTLWrapper(), EnergyParams::EnergyParams(), MSDevice_SSM::filterByConflictType(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GNELane::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NIImporter_OpenStreetMap::load(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), GNEVType::overwriteVType(), NWWriter_OpenDrive::parseTrafficSign(), NBTrafficLightDefinition::railSignalUncontrolled(), MSDevice_Battery::readParameterValue(), MSDevice_SSM::requestsTrajectories(), NBTrafficLightLogicCont::setOpenDriveSignalParameters(), MSVehicle::slowDownForSchedule(), MSDevice_SSM::useGeoCoords(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::WAUTSwitchProcedure_Stretch(), MSDevice_SSM::writeLanesPositions(), MSDevice_SSM::writePositions(), NWWriter_OpenDrive::writeRoadObjectPoly(), NWWriter_OpenDrive::writeRoadObjects(), and NWWriter_OpenDrive::writeSignals().
|
inlinevirtual |
Implements MSRailSignalConstraint.
Definition at line 164 of file MSRailSignalConstraint.h.
References myAmActive.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), and LIBSUMO_NAMESPACE::TrafficLight::updateConstraints().
|
inlineinherited |
Definition at line 106 of file MSRailSignalConstraint.h.
References MSRailSignalConstraint::INSERTION_ORDER, MSRailSignalConstraint::INSERTION_PREDECESSOR, and MSRailSignalConstraint::myType.
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 254 of file Parameterised.cpp.
References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().
Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().
|
static |
loads the constraint state from the given attrs
Definition at line 147 of file MSRailSignalConstraint.cpp.
References MSLane::dictionary(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getString(), MSRailSignalConstraint_Predecessor::PassedTracker::loadState(), myTrackerLookup, SUMO_ATTR_INDEX, SUMO_ATTR_LANE, SUMO_ATTR_STATE, TL, TLF, and WRITE_WARNINGF.
Referenced by MSStateHandler::myStartElement().
|
staticinherited |
Definition at line 228 of file MSRailSignalConstraint.cpp.
References MSRailSignalConstraint::myTripIdLookup.
Referenced by MSRailSignalConstraint::getVeh().
|
inherited |
Adds or appends all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 65 of file Parameterised.cpp.
References Parameterised::getParameter(), Parameterised::hasParameter(), and Parameterised::setParameter().
Referenced by NBEdge::append().
|
privatedelete |
invalidated assignment operator
|
static |
Saves the current constraint states into the given stream.
Definition at line 140 of file MSRailSignalConstraint.cpp.
References myTrackerLookup.
Referenced by MSRailSignalConstraint::saveState().
|
inlinevirtual |
Implements MSRailSignalConstraint.
Definition at line 160 of file MSRailSignalConstraint.h.
References myAmActive.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::removeConstraints().
|
virtualinherited |
Sets a parameter.
[in] | key | The parameter's name |
[in] | value | The parameter's value |
Reimplemented in MSRailCrossing, MSActuatedTrafficLightLogic, MSRailSignal, MSSimpleTrafficLightLogic, and NEMALogic.
Definition at line 45 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NBRailwayTopologyAnalyzer::addBidiEdge(), NLHandler::addDistrict(), RONetHandler::addParam(), ShapeHandler::addPOI(), NBOwnTLDef::buildNemaPhases(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSStateHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), GNESingleParametersDialog::onCmdAccept(), NBRailwayTopologyAnalyzer::reverseEdges(), GNEVType::setAttribute(), NBEdge::setJunctionPriority(), NIImporter_OpenDrive::setLaneAttributes(), MSRailCrossing::setParameter(), MSActuatedTrafficLightLogic::setParameter(), MSRailSignal::setParameter(), MSSimpleTrafficLightLogic::setParameter(), NEMALogic::setParameter(), LIBSUMO_NAMESPACE::Simulation::setParameter(), Parameterised::setParametersStr(), LIBSUMO_NAMESPACE::Vehicle::setStopParameter(), LIBSUMO_NAMESPACE::TrafficLight::swapParameters(), Parameterised::updateParameters(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().
|
inherited |
set the inner key/value map in map<string, string> format
Definition at line 167 of file Parameterised.cpp.
References Parameterised::getParametersMap(), and Parameterised::myMap.
Referenced by MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), and MSStageTrip::reroute().
|
inherited |
set the inner key/value map in string format "key1=value1|key2=value2|...|keyN=valueN"
[in] | paramsString | A serialized key-value map |
[in] | kvsep | The separater between key and value |
[in] | sep | The separater between map entries |
Definition at line 173 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), GNEAccess::setAttribute(), GNEBusStop::setAttribute(), GNECalibrator::setAttribute(), GNECalibratorFlow::setAttribute(), GNEChargingStation::setAttribute(), GNEContainerStop::setAttribute(), GNEMultiEntryExitDetector::setAttribute(), GNEOverheadWire::setAttribute(), GNEParkingArea::setAttribute(), GNEParkingSpace::setAttribute(), GNERerouter::setAttribute(), GNERouteProbe::setAttribute(), GNETAZ::setAttribute(), GNETAZSourceSink::setAttribute(), GNETractionSubstation::setAttribute(), GNEVaporizer::setAttribute(), GNEVariableSpeedSign::setAttribute(), GNEEdgeData::setAttribute(), GNEEdgeRelData::setAttribute(), GNETAZRelData::setAttribute(), GNEContainer::setAttribute(), GNEPerson::setAttribute(), GNERoute::setAttribute(), GNEStop::setAttribute(), GNEVehicle::setAttribute(), GNEVType::setAttribute(), GNEConnection::setAttribute(), GNEEdge::setAttribute(), GNEEdgeType::setAttribute(), GNEJunction::setAttribute(), GNELane::setAttribute(), GNELaneType::setAttribute(), GNEPOI::setAttribute(), GNEPoly::setAttribute(), and GNEDetector::setDetectorAttribute().
|
staticinherited |
Definition at line 223 of file MSRailSignalConstraint.cpp.
References MSRailSignalConstraint::myTripIdLookup.
Referenced by MSBaseVehicle::addStop().
|
inherited |
Removes a parameter.
[in] | key | The parameter's name |
Definition at line 51 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NIImporter_OpenStreetMap::insertEdge(), MSLane::isInsertionSuccess(), NIImporter_OpenStreetMap::load(), GNEVType::setAttribute(), and LIBSUMO_NAMESPACE::TrafficLight::swapParameters().
|
inherited |
Adds or updates all given parameters from the map.
[in] | mapArg | The keys/values to insert |
Definition at line 57 of file Parameterised.cpp.
References Parameterised::setParameter().
Referenced by NIImporter_SUMO::_loadNetwork(), NBNode::addCrossing(), PCLoaderOSM::addPOI(), PCLoaderOSM::addPolygon(), NLHandler::closeEdge(), NLJunctionControlBuilder::closeJunction(), NLJunctionControlBuilder::closeTrafficLightLogic(), NBTrafficLightDefinition::compute(), NLDetectorBuilder::endE3Detector(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), NBEdge::NBEdge(), NBLoadedSUMOTLDef::NBLoadedSUMOTLDef(), NBTrafficLightLogic::NBTrafficLightLogic(), and LIBSUMO_NAMESPACE::TrafficLight::swapConstraints().
|
virtual |
Implements MSRailSignalConstraint.
Definition at line 327 of file MSRailSignalConstraint.cpp.
References OutputDevice::closeTag(), Named::getID(), MSRailSignalConstraint::getTag(), myAmActive, myFoeSignal, myLimit, myTripId, OutputDevice::openTag(), SUMO_ATTR_ACTIVE, SUMO_ATTR_FOES, SUMO_ATTR_LIMIT, SUMO_ATTR_TLID, SUMO_ATTR_TRIP_ID, OutputDevice::writeAttr(), and Parameterised::writeParams().
|
inherited |
write Params in the given outputdevice
Definition at line 188 of file Parameterised.cpp.
References OutputDevice::closeTag(), StringUtils::escapeXML(), Parameterised::myMap, OutputDevice::openTag(), SUMO_ATTR_KEY, SUMO_ATTR_VALUE, SUMO_TAG_PARAM, and OutputDevice::writeAttr().
Referenced by MSStageWaiting::routeOutput(), MSTransportable::routeOutput(), ROPerson::saveAsXML(), ROVehicle::saveAsXML(), MEVehicle::saveState(), MSVehicle::saveState(), MSStop::write(), SUMOVTypeParameter::write(), SUMOVehicleParameter::Stop::write(), NBPTStop::write(), write(), GNEBusStop::writeAdditional(), GNECalibrator::writeAdditional(), GNECalibratorFlow::writeAdditional(), GNEChargingStation::writeAdditional(), GNEContainerStop::writeAdditional(), GNEEntryExitDetector::writeAdditional(), GNEInductionLoopDetector::writeAdditional(), GNEInstantInductionLoopDetector::writeAdditional(), GNELaneAreaDetector::writeAdditional(), GNEMultiEntryExitDetector::writeAdditional(), GNEOverheadWire::writeAdditional(), GNEParkingArea::writeAdditional(), GNEParkingSpace::writeAdditional(), GNERerouter::writeAdditional(), GNERouteProbe::writeAdditional(), GNETAZ::writeAdditional(), GNETractionSubstation::writeAdditional(), GNEVaporizer::writeAdditional(), GNEVariableSpeedSign::writeAdditional(), NWWriter_SUMO::writeConnection(), GNEContainer::writeDemandElement(), GNEPerson::writeDemandElement(), GNERoute::writeDemandElement(), GNEVehicle::writeDemandElement(), NWWriter_SUMO::writeEdge(), NWWriter_XML::writeEdgesAndConnections(), NWWriter_SUMO::writeJunction(), NWWriter_SUMO::writeLane(), NWWriter_XML::writeNodes(), MSDevice_Vehroutes::writeOutput(), NWWriter_SUMO::writeTrafficLight(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
bool MSRailSignalConstraint_Predecessor::myAmActive |
Whether this constraint is currently active.
Definition at line 212 of file MSRailSignalConstraint.h.
Referenced by cleared(), isActive(), setActive(), and write().
const MSRailSignal* MSRailSignalConstraint_Predecessor::myFoeSignal |
store the foe signal (for TraCI access)
Definition at line 215 of file MSRailSignalConstraint.h.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), LIBSUMO_NAMESPACE::TrafficLight::getConstraintsByFoe(), LIBSUMO_NAMESPACE::TrafficLight::removeConstraints(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), and write().
const int MSRailSignalConstraint_Predecessor::myLimit |
the number of passed vehicles within which tripId must have occured
Definition at line 209 of file MSRailSignalConstraint.h.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), cleared(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), and write().
|
privateinherited |
The key->value map.
Definition at line 139 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getDoubles(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::hasParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
static |
Definition at line 218 of file MSRailSignalConstraint.h.
Referenced by cleanup(), clearState(), loadState(), MSRailSignalConstraint_Predecessor(), and saveState().
std::vector<PassedTracker*> MSRailSignalConstraint_Predecessor::myTrackers |
the tracker object for this constraint
Definition at line 203 of file MSRailSignalConstraint.h.
Referenced by cleared(), getDescription(), and MSRailSignalConstraint_Predecessor().
const std::string MSRailSignalConstraint_Predecessor::myTripId |
id of the predecessor that must already have passed
Definition at line 206 of file MSRailSignalConstraint.h.
Referenced by LIBSUMO_NAMESPACE::TrafficLight::buildConstraint(), cleared(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::TrafficLight::getConstraintsByFoe(), getDescription(), getFoe(), LIBSUMO_NAMESPACE::TrafficLight::removeConstraints(), LIBSUMO_NAMESPACE::TrafficLight::swapConstraints(), LIBSUMO_NAMESPACE::TrafficLight::updateConstraints(), and write().
|
staticprotectedinherited |
Definition at line 131 of file MSRailSignalConstraint.h.
Referenced by MSRailSignalConstraint::clearAll(), MSRailSignalConstraint::clearState(), MSRailSignalConstraint::lookupVehId(), and MSRailSignalConstraint::storeTripId().
|
protectedinherited |
Definition at line 129 of file MSRailSignalConstraint.h.
Referenced by MSRailSignalConstraint::getSwappedType(), MSRailSignalConstraint::getTag(), MSRailSignalConstraint::getType(), and MSRailSignalConstraint::isInsertionConstraint().