![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <MSDispatch_GreedyShared.h>
Public Types | |
| typedef std::map< std::string, std::string > | Map |
| parameters map | |
Public Member Functions | |
| virtual Reservation * | addReservation (MSTransportable *person, SUMOTime reservationTime, SUMOTime pickupTime, SUMOTime earliestPickupTime, const MSEdge *from, double fromPos, const MSStoppingPlace *fromStop, const MSEdge *to, double toPos, const MSStoppingPlace *tostop, std::string group, const std::string &line, int maxCapacity, int maxContainerCapacity) |
| add a new reservation | |
| void | clearParameter () |
| Clears the parameter map. | |
| virtual void | computeDispatch (SUMOTime now, const std::vector< MSDevice_Taxi * > &fleet) |
| computes dispatch and updates reservations | |
| virtual void | fulfilledReservation (const Reservation *res) |
| erase reservation from storage | |
| double | getDouble (const std::string &key, const double defaultValue) const |
| Returns the value for a given key converted to a double. | |
| 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". | |
| std::vector< Reservation * > | getReservations () |
| retrieve all reservations | |
| virtual std::vector< const Reservation * > | getRunningReservations () |
| retrieve all reservations that were already dispatched and are still active | |
| bool | hasParameter (const std::string &key) const |
| Returns whether the parameter is set. | |
| bool | hasServableReservations () |
| check whether there are still (servable) reservations in the system | |
| bool | isReachable (SUMOTime t, const MSDevice_Taxi *taxi, const Reservation &res, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router) |
| compute whether the reservation is servable | |
| void | mergeParameters (const Parameterised::Map &mapArg, const std::string separator=" ", bool uniqueValues=true) |
| Adds or appends all given parameters from the map. | |
| MSDispatch_GreedyShared (const Parameterised::Map ¶ms) | |
| virtual std::string | removeReservation (MSTransportable *person, const MSEdge *from, double fromPos, const MSEdge *to, double toPos, std::string group) |
| remove person from reservation. If the whole reservation is removed, return its id | |
| virtual void | setParameter (const std::string &key, const std::string &value) |
| Sets a parameter. | |
| void | setParameters (const Parameterised ¶ms) |
| set the given key/value map in map<string, string> format | |
| void | setParameters (const std::vector< std::pair< std::string, std::string > > ¶ms) |
| set the given key/value vector 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. | |
| virtual Reservation * | updateReservationFromPos (MSTransportable *person, const MSEdge *from, double fromPos, const MSEdge *to, double toPos, std::string group, double newFromPos) |
| update fromPos of the person's reservation. TODO: if there is already a reservation with the newFromPos, add to this reservation TODO: if there are other persons in this reservation, create a new reservation for the updated one | |
| void | writeParams (OutputDevice &device) const |
| write Params in the given outputdevice | |
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 double | computeDetourTime (SUMOTime t, SUMOTime viaTime, const MSDevice_Taxi *taxi, const MSEdge *from, double fromPos, const MSEdge *via, double viaPos, const MSEdge *to, double toPos, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, double &timeDirect) |
| compute directTime and detourTime | |
| static SUMOTime | computePickupTime (SUMOTime t, const MSDevice_Taxi *taxi, const Reservation &res, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router) |
| compute time to pick up the given reservation | |
Data Fields | |
| bool | myHasServableReservations = false |
| whether the last call to computeDispatch has left servable reservations | |
Protected Member Functions | |
| virtual int | dispatch (MSDevice_Taxi *taxi, std::vector< Reservation * >::iterator &resIt, SUMOAbstractRouter< MSEdge, SUMOVehicle > &router, std::vector< Reservation * > &reservations) |
| trigger taxi dispatch. | |
| int | remainingCapacity (const MSDevice_Taxi *taxi, const Reservation *res) |
| whether the given taxi has sufficient capacity to serve the reservation | |
| void | servedReservation (const Reservation *res, MSDevice_Taxi *taxi) |
Protected Attributes | |
| const double | myAbsoluteLossThreshold |
| absolute time threshold for declining shared ride in s | |
| std::map< std::string, std::vector< Reservation * > > | myGroupReservations |
| SUMOTime | myKeepUnreachableResTime |
| the duration before canceling unreachable reservations | |
| const SUMOTime | myMaximumWaitingTime |
| maximum time to arrive earlier at customer | |
| OutputDevice * | myOutput |
| optional file output for dispatch information | |
| const SUMOTime | myRecheckSafety |
| const SUMOTime | myRecheckTime |
| recheck interval for early reservations | |
| const double | myRelativeLossThreshold |
| relative time threshold for declining shared ride | |
| int | myReservationCount |
| const int | myRoutingMode |
| which router/edge weights to use | |
| std::map< std::string, std::map< const Reservation *, MSDevice_Taxi * > > | myRunningReservations |
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 35 of file MSDispatch_GreedyShared.h.
|
inherited |
parameters map
Definition at line 45 of file Parameterised.h.
|
inline |
Definition at line 37 of file MSDispatch_GreedyShared.h.
|
virtualinherited |
add a new reservation
Reimplemented in MSDispatch_TraCI.
Definition at line 71 of file MSDispatch.cpp.
References DEBUG_COND2, Named::getID(), MSTransportable::isPerson(), MSDispatch::myGroupReservations, MSDispatch::myHasServableReservations, MSDispatch::myReservationCount, SIMTIME, time2string(), TL, toString(), and WRITE_WARNINGF.
Referenced by MSDevice_Taxi::addReservation(), and MSDispatch_TraCI::addReservation().
|
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 207 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
|
staticinherited |
check if given string can be parsed to a parameters map "key1=value1|key2=value2|...|keyN=valueN"
Definition at line 188 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::isParameterValid(), TL, and WRITE_WARNINGF.
Referenced by GNEAttributeCarrier::isCommonAttributeValid(), and GNETLSEditorFrame::TLSAttributes::isValidParameters().
|
inherited |
Clears the parameter map.
Definition at line 118 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by NLHandler::beginEdgeParsing().
|
staticinherited |
compute directTime and detourTime
Definition at line 327 of file MSDispatch.cpp.
References SUMOAbstractRouter< E, V >::compute(), MSVehicleDevice::getHolder(), Named::getID(), MAX2(), SUMOAbstractRouter< E, V >::recomputeCostsPos(), STEPS2TIME, TIME2STEPS, and toString().
Referenced by dispatch().
|
virtualinherited |
computes dispatch and updates reservations
Implements MSDispatch.
Reimplemented in MSDispatch_GreedyClosest.
Definition at line 40 of file MSDispatch_Greedy.cpp.
References MSDispatch::computePickupTime(), DEBUG_COND2, MSDispatch_Greedy::dispatch(), Reservation::from, Reservation::fromPos, Named::getID(), MSNet::getInstance(), MSDispatch::getReservations(), MSRoutingEngine::getRouterTT(), MSNet::getRouterTT(), Reservation::group, MSDispatch::isReachable(), MAX2(), MSDispatch::myHasServableReservations, MSDispatch::myKeepUnreachableResTime, MSDispatch_Greedy::myMaximumWaitingTime, MSDispatch_Greedy::myRecheckSafety, MSDispatch_Greedy::myRecheckTime, MSDispatch_Greedy::myRoutingMode, Reservation::persons, Reservation::pickupTime, Reservation::recheck, MSDispatch::remainingCapacity(), MSDispatch::removeReservation(), SIMSTEP, SIMTIME, SUMOTime_MAX, SVC_TAXI, time2string(), Reservation::to, Reservation::toPos, toString(), and WRITE_WARNINGF.
|
staticinherited |
compute time to pick up the given reservation
Definition at line 306 of file MSDispatch.cpp.
References SUMOAbstractRouter< E, V >::compute(), Reservation::from, Reservation::fromPos, SUMOTrafficObject::getEdge(), MSVehicleDevice::getHolder(), SUMOTrafficObject::getPositionOnLane(), SUMOAbstractRouter< E, V >::recomputeCosts(), SUMOTime_MAX, and TIME2STEPS.
Referenced by MSDispatch_Greedy::computeDispatch(), and MSDispatch_GreedyClosest::computeDispatch().
|
protectedvirtual |
trigger taxi dispatch.
Reimplemented from MSDispatch_Greedy.
Definition at line 39 of file MSDispatch_GreedyShared.cpp.
References OutputDevice::closeTag(), MSDevice_Taxi::compatibleLine(), MSDispatch::computeDetourTime(), DEBUG_COND2, MSDevice_Taxi::dispatch(), MSDevice_Taxi::dispatchShared(), Reservation::from, Reservation::fromPos, MSNet::getCurrentTimeStep(), MSVehicleDevice::getHolder(), Named::getID(), MSNet::getInstance(), MAX2(), myAbsoluteLossThreshold, MSDispatch::myOutput, myRelativeLossThreshold, OutputDevice::openTag(), Reservation::persons, Reservation::pickupTime, MSDispatch::remainingCapacity(), MSDispatch::servedReservation(), SIMTIME, time2string(), Reservation::to, Reservation::toPos, toString(), and OutputDevice::writeAttr().
|
virtualinherited |
erase reservation from storage
Reimplemented in MSDispatch_TraCI.
Definition at line 296 of file MSDispatch.cpp.
References Reservation::group, and MSDispatch::myRunningReservations.
Referenced by MSDevice_Taxi::cancelCustomer(), MSDevice_Taxi::customerArrived(), MSDispatch_TraCI::fulfilledReservation(), and MSDispatch::removeReservation().
|
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(), MSSOTLPolicy5DFamilyStimulus::MSSOTLPolicy5DFamilyStimulus(), and MSDevice_Battery::readParameterValue().
|
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(), NBEdge::append(), NBEdgeCont::attachRemoved(), 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(), GUIPointOfInterest::drawGL(), GNEPOI::drawPOI(), EnergyParams::EnergyParams(), MSPModel_JuPedSim::execute(), MSDevice_SSM::filterByConflictType(), LIBSUMO_NAMESPACE::TrafficLight::findConstraintsDeadLocks(), LIBSUMO_NAMESPACE::Simulation::findIntermodalRoute(), GUIBusStop::finishedLoading(), MSStoppingPlace::finishedLoading(), GUIVehicle::getColorValue(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::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(), GNETAZRelData::getScaleValue(), LIBSUMO_NAMESPACE::Vehicle::getStopParameter(), SUMOTrafficObject::getStringParam(), MSRailSignalConstraint::getVeh(), LIBSUMO_NAMESPACE::TrafficLight::getVehicleByTripId(), MSStoppingPlaceRerouter::getWeight(), MSRailSignal::hasInsertionConstraint(), MSInsertionControl::hasTaxiDeviceType(), 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(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), 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(), NBEdge::updateRemovedNodes(), 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 124 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(), MSRailSignalConstraint_Predecessor::getDescription(), NWWriter_OpenDrive::getDividerType(), GUILane::getParameterWindow(), 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(), GNEVType::overwriteVType(), 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 130 of file Parameterised.cpp.
References Parameterised::myMap.
Referenced by GNEAttributeCarrier::getCommonAttribute().
|
inherited |
retrieve all reservations
Definition at line 251 of file MSDispatch.cpp.
References MSDispatch::myGroupReservations.
Referenced by MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), and LIBSUMO_NAMESPACE::Person::getTaxiReservations().
|
virtualinherited |
retrieve all reservations that were already dispatched and are still active
Definition at line 261 of file MSDispatch.cpp.
References MSDispatch::myRunningReservations.
Referenced by LIBSUMO_NAMESPACE::Person::getTaxiReservations().
|
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(), GUIBusStop::finishedLoading(), NWWriter_DlrNavteq::getBrunnelType(), GNEEdgeData::getColorValue(), GNEEdgeRelData::getColorValue(), GNETAZRelData::getColorValue(), GUILane::getColorValue(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), MSDevice_SSM::getMDRAC_PRT(), MSDevice_SSM::getMeasuresAndThresholds(), MSDevice_SSM::getOutputFilename(), LIBSUMO_NAMESPACE::Simulation::getParameter(), GNETAZRelData::getScaleValue(), MSStoppingPlaceRerouter::getWeight(), MSStageDriving::init(), SUMOVTypeParameter::initRailVisualizationParameters(), MSEdge::insertVehicle(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSSimpleTrafficLightLogic::MSSimpleTrafficLightLogic(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), 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().
|
inlineinherited |
check whether there are still (servable) reservations in the system
Definition at line 174 of file MSDispatch.h.
References MSDispatch::myHasServableReservations.
Referenced by MSDevice_Taxi::hasServableReservations().
|
staticprivateinherited |
check if given string can be parsed to a parameter of type "key=value"
Definition at line 242 of file Parameterised.cpp.
References StringTokenizer::getVector(), and SUMOXMLDefinitions::isValidParameterKey().
Referenced by Parameterised::areAttributesValid(), and Parameterised::areParametersValid().
|
inherited |
compute whether the reservation is servable
Definition at line 319 of file MSDispatch.cpp.
References SUMOAbstractRouter< E, V >::compute(), Reservation::from, Reservation::fromPos, MSVehicleDevice::getHolder(), Reservation::to, and Reservation::toPos.
Referenced by MSDispatch_Greedy::computeDispatch().
|
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().
|
protectedinherited |
whether the given taxi has sufficient capacity to serve the reservation
Definition at line 363 of file MSDispatch.cpp.
References MSVehicleType::getContainerCapacity(), MSVehicleDevice::getHolder(), MSVehicleType::getPersonCapacity(), SUMOTrafficObject::getVehicleType(), and Reservation::persons.
Referenced by MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), dispatch(), and MSDispatch_RouteExtension::dispatch().
|
virtualinherited |
remove person from reservation. If the whole reservation is removed, return its id
Reimplemented in MSDispatch_TraCI.
Definition at line 138 of file MSDispatch.cpp.
References MSDevice_Taxi::cancelCustomer(), DEBUG_COND2, Reservation::from, Reservation::fromPos, MSDispatch::fulfilledReservation(), Named::getID(), Reservation::id, MSDispatch::myGroupReservations, MSDispatch::myHasServableReservations, MSDispatch::myRunningReservations, Reservation::persons, SIMTIME, Reservation::to, and Reservation::toPos.
Referenced by MSDispatch_Greedy::computeDispatch(), MSDispatch_TraCI::removeReservation(), and MSDevice_Taxi::removeReservation().
|
protectedinherited |
Definition at line 273 of file MSDispatch.cpp.
References Reservation::ASSIGNED, Reservation::group, MSDispatch::myGroupReservations, MSDispatch::myRunningReservations, Reservation::state, and TL.
Referenced by MSDispatch_Greedy::dispatch(), dispatch(), MSDispatch_RouteExtension::dispatch(), and MSDispatch_TraCI::interpretDispatch().
|
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(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSStateHandler::closeVehicle(), MSParkingArea::enter(), NIImporter_MATSim::EdgesHandler::insertEdge(), NIImporter_OpenStreetMap::insertEdge(), NIImporter_OpenStreetMap::insertNodeChecking(), MSLane::isInsertionSuccess(), NBNodeCont::joinNodeCluster(), NBEdge::Lane::Lane(), NWWriter_OpenDrive::mapmatchRoadObjects(), Parameterised::mergeParameters(), NIImporter_OpenStreetMap::RelationHandler::myEndElement(), MSStateHandler::myStartElement(), NIXMLConnectionsHandler::myStartElement(), NIXMLNodesHandler::myStartElement(), NIXMLTrafficLightsHandler::myStartElement(), ShapeHandler::myStartElement(), MSDevice_Bluelight::notifyMove(), 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(), NBEdge::updateRemovedNodes(), NWWriter_OpenDrive::writeNetwork(), and NIImporter_OpenDrive::writeRoadObjects().
|
inherited |
set the given key/value map in map<string, string> format
Definition at line 146 of file Parameterised.cpp.
References Parameterised::getParametersMap(), and Parameterised::myMap.
Referenced by GNEVehicleFrame::buildVehicleOverRoute(), MSStageDriving::clone(), MSStageTranship::clone(), MSStageTrip::clone(), MSStageWaiting::clone(), MSStageWalking::clone(), GNEVehicleFrame::createPath(), and MSStageTrip::reroute().
|
inherited |
set the given key/value vector in map<string, string> format
Definition at line 152 of file Parameterised.cpp.
References Parameterised::myMap.
|
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 161 of file Parameterised.cpp.
References StringTokenizer::getVector(), Parameterised::myMap, and Parameterised::setParameter().
Referenced by MSDevice_Taxi::initDispatch(), and GNEAttributeCarrier::setCommonAttribute().
|
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(), 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().
|
virtualinherited |
update fromPos of the person's reservation. TODO: if there is already a reservation with the newFromPos, add to this reservation TODO: if there are other persons in this reservation, create a new reservation for the updated one
Definition at line 206 of file MSDispatch.cpp.
References DEBUG_COND2, Reservation::from, Reservation::fromPos, Named::getID(), Reservation::id, MSDispatch::myGroupReservations, Reservation::persons, SIMTIME, Reservation::to, and Reservation::toPos.
Referenced by MSDevice_Taxi::updateReservationFromPos().
|
inherited |
write Params in the given outputdevice
Definition at line 176 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(), MSRailSignalConstraint_Predecessor::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(), GNEPOI::writeAdditional(), GNEPoly::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().
|
protected |
absolute time threshold for declining shared ride in s
Definition at line 48 of file MSDispatch_GreedyShared.h.
Referenced by dispatch().
|
protectedinherited |
Definition at line 213 of file MSDispatch.h.
Referenced by MSDispatch::addReservation(), MSDispatch::getReservations(), MSDispatch::removeReservation(), MSDispatch::servedReservation(), MSDispatch_TraCI::splitReservation(), MSDispatch::updateReservationFromPos(), and MSDispatch::~MSDispatch().
|
inherited |
whether the last call to computeDispatch has left servable reservations
Definition at line 194 of file MSDispatch.h.
Referenced by MSDispatch::addReservation(), MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), MSDispatch_TraCI::fulfilledReservation(), MSDispatch::hasServableReservations(), and MSDispatch::removeReservation().
|
protectedinherited |
the duration before canceling unreachable reservations
Definition at line 211 of file MSDispatch.h.
Referenced by MSDispatch_Greedy::computeDispatch(), and MSDispatch::MSDispatch().
|
privateinherited |
The key->value map.
Definition at line 135 of file Parameterised.h.
Referenced by Parameterised::clearParameter(), Parameterised::getDouble(), Parameterised::getParameter(), Parameterised::getParametersMap(), Parameterised::getParametersStr(), Parameterised::hasParameter(), Parameterised::setParameter(), Parameterised::setParameters(), Parameterised::setParameters(), Parameterised::setParametersStr(), Parameterised::unsetParameter(), and Parameterised::writeParams().
|
protectedinherited |
maximum time to arrive earlier at customer
Definition at line 60 of file MSDispatch_Greedy.h.
Referenced by MSDispatch_Greedy::computeDispatch(), and MSDispatch_GreedyClosest::computeDispatch().
|
protectedinherited |
optional file output for dispatch information
Definition at line 206 of file MSDispatch.h.
Referenced by dispatch(), MSDispatch_RouteExtension::dispatch(), and MSDispatch::MSDispatch().
|
protectedinherited |
Definition at line 64 of file MSDispatch_Greedy.h.
Referenced by MSDispatch_Greedy::computeDispatch(), and MSDispatch_GreedyClosest::computeDispatch().
|
protectedinherited |
recheck interval for early reservations
Definition at line 63 of file MSDispatch_Greedy.h.
Referenced by MSDispatch_Greedy::computeDispatch(), and MSDispatch_GreedyClosest::computeDispatch().
|
protected |
relative time threshold for declining shared ride
Definition at line 51 of file MSDispatch_GreedyShared.h.
Referenced by dispatch().
|
protectedinherited |
Definition at line 208 of file MSDispatch.h.
Referenced by MSDispatch::addReservation(), and MSDispatch_TraCI::splitReservation().
|
protectedinherited |
which router/edge weights to use
Definition at line 57 of file MSDispatch_Greedy.h.
Referenced by MSDispatch_Greedy::computeDispatch(), and MSDispatch_GreedyClosest::computeDispatch().
|
protectedinherited |
Definition at line 203 of file MSDispatch.h.
Referenced by MSDispatch::fulfilledReservation(), MSDispatch::getRunningReservations(), MSDispatch::removeReservation(), MSDispatch::servedReservation(), and MSDispatch_TraCI::splitReservation().