![]() |
SUMO - Simulation of Urban MObility
|
Go to the source code of this file.
Macros | |
#define | ACCEL2DIST(x) (x) |
#define | ACCEL2SPEED(x) (x) |
#define | DELTA_T 1 |
#define | DIST2SPEED(x) (x) |
#define | SIMTIME STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep()) |
#define | SPEED2ACCEL(x) (x) |
#define | SPEED2DIST(x) (x) |
#define | STEPFLOOR(x) (x) |
#define | STEPS2MS(x) ((x)*1000) |
#define | STEPS2TIME(x) (static_cast<SUMOReal>(x)) |
#define | SUMOTime_MAX std::numeric_limits<SUMOTime>::max() |
#define | SUMOTIME_MAXSTRING "9223372036854774" |
#define | SUMOTime_MIN std::numeric_limits<SUMOTime>::min() |
#define | TIME2STEPS(x) (static_cast<SUMOTime>(x)) |
#define | TS (static_cast<SUMOReal>(1.)) |
Typedefs | |
typedef long long int | SUMOTime |
Functions | |
SUMOTime | string2time (const std::string &r) |
std::string | time2string (SUMOTime t) |
Definition in file SUMOTime.h.
#define ACCEL2DIST | ( | x | ) | (x) |
Definition at line 59 of file SUMOTime.h.
Referenced by MSCFModel::freeSpeed(), and MSLCM_DK2008::informBlocker().
#define ACCEL2SPEED | ( | x | ) | (x) |
Definition at line 61 of file SUMOTime.h.
Referenced by MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_IDM::_v(), MSCFModel::brakeGap(), MSVehicle::checkRewindLinkLanes(), MSCFModel_Krauss::dawdle(), MSCFModel_Daniel1::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_KraussOrig1::dawdle(), MSVehicle::executeMove(), MSCFModel_PWag2009::followSpeed(), MSCFModel::freeSpeed(), MSCFModel::getSpeedAfterMaxDecel(), MSLCM_JE2013::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), MSCFModel_Wiedemann::krauss_vsafe(), MSCFModel::maximumSafeStopSpeed(), MSCFModel_KraussAccelBound::maxNextSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MSLCM_JE2013::slowDownForBlocked(), MSLCM_LC2013::slowDownForBlocked(), MSCFModel_PWag2009::stopSpeed(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
#define DELTA_T 1 |
Definition at line 50 of file SUMOTime.h.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSDevice_Routing::adaptEdgeEfforts(), GUITLLogicPhasesTrackerWindow::addValue(), MSPersonControl::boardAnyWaiting(), MSFrame::buildStreams(), MSInsertionControl::checkCandidates(), MSLaneChanger::checkChange(), RONet::checkFlows(), GUIApplicationWindow::checkGamingEvents(), MSVehicleControl::computeRandomDepartOffset(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), MSE2Collector::detectorUpdate(), MSMeanData::detectorUpdate(), MSInsertionControl::determineCandidates(), TraCIServer::dispatchCommand(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSEventControl::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), TrackerValueDesc::getAggregationSpan(), MSInductLoop::getCurrentLength(), MSInductLoop::getCurrentOccupancy(), MSInductLoop::getCurrentPassedNumber(), MSInductLoop::getCurrentSpeed(), MSInductLoop::getCurrentVehicleIDs(), MSLane::handleCollision(), MSVehicle::Influencer::influenceSpeed(), GUIRunThread::makeStep(), MSPModel_Striping::MSPModel_Striping(), MSRailSignal::MSRailSignal(), MSInstantInductLoop::notifyMove(), MSVehicleContainer::DepartFinder::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSVehicle::planMoveInternal(), MSNet::postSimStepOutput(), MSDevice_Routing::preInsertionReroute(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Simulation::processGet(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), TrackerValueDesc::setAggregationSpan(), MSContainerControl::setDeparture(), MSPersonControl::setDeparture(), MSFrame::setMSGlobals(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSContainerControl::setWaitEnd(), MSPersonControl::setWaitEnd(), MSNet::simulationStep(), MSAbstractLaneChangeModel::startLaneChangeManeuver(), MSInsertionControl::tryInsert(), MSOffTrafficLightLogic::trySwitch(), MSRailSignal::trySwitch(), MSAbstractLaneChangeModel::unchanged(), MSLaneChanger::updateChanger(), MSRailSignal::updateCurrentPhase(), MSDevice_Tripinfo::updateStatistics(), GUIApplicationWindow::updateTimeLCD(), MSPModel_Striping::PState::walk(), ODMatrix::write(), MSNet::writeOutput(), and MSMeanData::writeXMLOutput().
#define DIST2SPEED | ( | x | ) | (x) |
Definition at line 57 of file SUMOTime.h.
Referenced by MSVehicle::executeMove(), MSCFModel::freeSpeed(), MSVehicle::Influencer::implicitDeltaPosVTD(), MSVehicle::Influencer::implicitSpeedVTD(), and MSPModel_Striping::PState::walk().
#define SIMTIME STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep()) |
Definition at line 96 of file SUMOTime.h.
Referenced by MSDevice_Routing::buildVehicleDevices(), MSDevice_BTreceiver::BTreceiverUpdate::enterRange(), MSPModel_Striping::MovePedestrians::execute(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), and MSPModel_Striping::PState::walk().
#define SPEED2ACCEL | ( | x | ) | (x) |
Definition at line 63 of file SUMOTime.h.
Referenced by MSVehicle::executeMove(), MSCFModel_PWag2009::followSpeed(), MSCFModel_PWag2009::moveHelper(), and MSCFModel_PWag2009::stopSpeed().
#define SPEED2DIST | ( | x | ) | (x) |
Definition at line 55 of file SUMOTime.h.
Referenced by MSCFModel_Kerner::_v(), MSCFModel_IDM::_v(), MSCFModel::brakeGap(), MSVehicle::executeMove(), MSLane::executeMovements(), MSCFModel::freeSpeed(), MSDevice_Battery::getPropEnergy(), MSLCM_DK2008::informBlocker(), MSLCM_JE2013::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSCFModel_Wiedemann::krauss_vsafe(), MSVehicle::onRemovalFromNet(), MSVehicle::planMoveInternal(), TraCIServerAPI_Vehicle::vtdMap(), and MSPModel_Striping::PState::walk().
#define STEPFLOOR | ( | x | ) | (x) |
Definition at line 67 of file SUMOTime.h.
Referenced by MSVehicleControl::vehicleDeparted().
#define STEPS2MS | ( | x | ) | ((x)*1000) |
Definition at line 68 of file SUMOTime.h.
Referenced by MSFrame::buildStreams(), and MSAmitranTrajectories::writeVehicle().
#define STEPS2TIME | ( | x | ) | (static_cast<SUMOReal>(x)) |
Definition at line 65 of file SUMOTime.h.
Referenced by MSLCM_JE2013::_patchSpeed(), MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSDevice_Routing::adaptEdgeEfforts(), MSBaseVehicle::addStops(), CHRouter< E, V, PF >::buildContractionHierarchy(), LogitCalculator< R, E, V >::calculateProbabilities(), MSVehicle::Influencer::changeRequestRemainingSeconds(), MSLaneChanger::checkChange(), MSNet::closeSimulation(), MSInductLoop::collectVehiclesOnDet(), ROJTRRouter::compute(), DijkstraRouterTT< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::compute(), DijkstraRouterEffort< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::compute(), AStarRouter< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::compute(), MSPerson::MSPersonStage_Walking::computeAverageSpeed(), NBOwnTLDef::computeLogicAndConts(), MSE3Collector::detectorUpdate(), GUIBaseVehicle::drawLinkItem(), GUITLLogicPhasesTrackerWindow::drawValues(), MSE3Collector::enter(), MSCalibrator::execute(), MSVehicle::getAngle(), MSDevice_Tripinfo::getAvgDepartDelay(), MSDevice_Tripinfo::getAvgDuration(), MSDevice_Tripinfo::getAvgTimeLoss(), MSDevice_Tripinfo::getAvgWaitingTime(), GUIVehicle::getColorValue(), MSInductLoop::getCurrentOccupancy(), PedestrianEdge< E, L, N >::getEffort(), MSPModel_Striping::PState::getImpatience(), GUIVehicle::getLastLaneChangeOffset(), GUILane::getLoadedEdgeWeight(), GUICalibrator::getParameterWindow(), CState::getPosition(), GUILane::getStoredEdgeTravelTime(), MSInductLoop::getTimestepsSinceLastDetection(), MSTransportable::getWaitingSeconds(), MSVehicle::getWaitingSeconds(), MSLink::getZipperSpeed(), ROMAAssignments::incremental(), MSVehicle::Influencer::influenceSpeed(), MSLCM_JE2013::inform(), MSLCM_JE2013::informFollower(), MSLCM_JE2013::informLeader(), GNETLSEditor::initPhaseTable(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSMoveReminder::MSMoveReminder(), TrajectoriesHandler::myStartElement(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSInstantInductLoop::notifyMove(), MSInductLoop::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), GNETLSEditor::onCmdDefSwitch(), GNETLSEditor::onCmdPhaseEdit(), MSMeanData_Amitran::openInterval(), MSMeanData::openInterval(), MSLCM_JE2013::patchSpeed(), MSVehicle::planMoveInternal(), TraCIServerAPI_Vehicle::processSet(), CHRouterWrapper< E, V, PF >::recomputeCosts(), DijkstraRouterEffort< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::recomputeCosts(), DijkstraRouterTT< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::recomputeCosts(), AStarRouter< MSEdge, SUMOVehicle, prohibited_withPermissions< MSEdge, SUMOVehicle > >::recomputeCosts(), CHRouter< E, V, PF >::recomputeCosts(), ROMAAssignments::resetFlows(), MSLCM_JE2013::saveBlockerLength(), MSVehicleControl::scheduleVehicleRemoval(), MSLCM_JE2013::slowDownForBlocked(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), string2time(), ROMAAssignments::sue(), time2string(), MSCalibrator::totalWished(), GNETLSEditor::updateCycleDuration(), GUIApplicationWindow::updateTimeLCD(), MSVehicleControl::vehicleDeparted(), MSLCM_JE2013::wantsChange(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), writeInterval(), MSNet::writeOutput(), SUMOVehicleParameter::writeStops(), NWWriter_SUMO::writeSUMOTime(), MSInductLoop::writeTypedXMLOutput(), RORoute::writeXMLDefinition(), MSCalibrator::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
Definition at line 44 of file SUMOTime.h.
Referenced by GUIEdge::addRerouter(), NLDetectorBuilder::createEdgeLaneMeanData(), GUIDialog_Breakpoints::GUIDialog_Breakpoints(), MSCalibrator::init(), SUMORouteLoaderControl::loadNext(), SUMORouteLoader::loadUntil(), MSPModel_Striping::MSPModel_Striping(), SUMOVehicleParserHelper::parseFlowAttributes(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Vehicle::processSet(), RONet::saveAndRemoveRoutesUntil(), and string2time().
#define SUMOTIME_MAXSTRING "9223372036854774" |
Definition at line 46 of file SUMOTime.h.
Referenced by ROMAFrame::addImportOptions(), ROFrame::fillOptions(), and fillOptions().
Definition at line 45 of file SUMOTime.h.
#define TIME2STEPS | ( | x | ) | (static_cast<SUMOTime>(x)) |
Definition at line 66 of file SUMOTime.h.
Referenced by MSTLLogicControl::WAUTSwitchProcedure_GSP::adaptLogic(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), MSVehicleTransfer::add(), NLHandler::addE2Detector(), NBOwnTLDef::addPedestrianPhases(), NIImporter_SUMO::addPhase(), ODMatrix::applyCurve(), NLHandler::beginE3Detector(), NLBuilder::buildNet(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), PedestrianRouter< E, L, N, DijkstraRouterTT< PedestrianEdge< E, L, N >, PedestrianTrip< E, N >, prohibited_withPermissions< PedestrianEdge< E, L, N >, PedestrianTrip< E, N > > > >::compute(), NBOwnTLDef::computeLogicAndConts(), CState::computeTranshipTime(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), GUITLLogicPhasesTrackerWindow::drawValues(), MSActuatedTrafficLightLogic::duration(), MSCalibrator::execute(), MSLane::getCriticalLeader(), MSLane::getLeaderOnConsecutive(), MSLink::getLeaveTime(), GNETLSEditor::getSUMOTime(), SUMOSAXAttributes::getSUMOTimeReporting(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MSLane::isInsertionSuccess(), MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP(), MSVehicle::Influencer::isVTDAffected(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSOffTrafficLightLogic::MSOffTrafficLightLogic(), NBLoadedTLDef::myCompute(), MSDevice_Tripinfo::notifyMove(), GUIParameterTracker::onCmdChangeAggregation(), NIImporter_VISUM::parse_TrafficLights(), SUMOVehicleParserHelper::parseFlowAttributes(), ODMatrix::parseSingleTime(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSVehicle::planMoveInternal(), MSOffTrafficLightLogic::rebuildPhase(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), string2time(), MSTLLogicControl::WAUTSwitchProcedure_GSP::trySwitch(), and MSTLLogicControl::WAUTSwitchProcedure_Stretch::trySwitch().
#define TS (static_cast<SUMOReal>(1.)) |
Definition at line 52 of file SUMOTime.h.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), RONet::checkFlows(), GUIApplicationWindow::checkGamingEvents(), MSE3Collector::detectorUpdate(), MSInsertionControl::determineCandidates(), MSCFModel_IDM::duplicate(), MSCFModel_SmartSK::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSInductLoop::getCurrentOccupancy(), MSLink::getZipperSpeed(), MSE3Collector::leave(), MSCFModel::maximumSafeStopSpeed(), MSCFModel_IDM::moveHelper(), MSCFModel_SmartSK::MSCFModel_SmartSK(), MSDevice_Tripinfo::notifyMove(), MSDevice_Emissions::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_SmartSK::updateMyHeadway(), GUIApplicationWindow::updateTimeLCD(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSMeanData_Harmonoise::MSLaneMeanDataValues::write().
typedef long long int SUMOTime |
Definition at line 43 of file SUMOTime.h.
SUMOTime string2time | ( | const std::string & | r | ) |
Definition at line 48 of file SUMOTime.cpp.
References STEPS2TIME, SUMOTime_MAX, and TIME2STEPS.
Referenced by ODMatrix::add(), MSDetectorControl::add(), MSDetectorControl::addDetectorAndInterval(), NLHandler::addEdgeLaneMeanData(), NLBuilder::build(), NLBuilder::buildRouteLoaderControl(), NLTriggerBuilder::buildVaporizer(), MSDevice_Routing::buildVehicleDevices(), MSFrame::checkOptions(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), computeRoutes(), GUIDialog_Breakpoints::GUIDialog_Breakpoints(), GUISettingsHandler::loadBreakpoints(), main(), MSNet::MSNet(), MSPhaseDefinition::MSPhaseDefinition(), MSPModel_Striping::MSPModel_Striping(), MSVehicleControl::MSVehicleControl(), SUMORouteHandler::myEndElement(), MSStateHandler::myStartElement(), GUIDialog_Breakpoints::onCmdEditTable(), ROLoader::openRoutes(), TraCIServer::openSocket(), SUMOVehicleParameter::parseDepart(), TraCIServer::processCommandsUntilSimStep(), readDetectorFlows(), MSDevice_Routing::reroute(), TraCITestClient::run(), GUILoadThread::run(), MSFrame::setMSGlobals(), and startComputation().
std::string time2string | ( | SUMOTime | t | ) |
Definition at line 61 of file SUMOTime.cpp.
References OUTPUT_ACCURACY, and STEPS2TIME.
Referenced by MSVehicleTransfer::add(), GUIRunThread::begin(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSContainer::MSContainerStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Waiting::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NLBuilder::build(), CHRouter< E, V, PF >::buildContractionHierarchy(), NLBuilder::buildNet(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), NBOwnTLDef::computeLogicAndConts(), computeRoutes(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GUITLLogicPhasesTrackerWindow::drawValues(), GUIDialog_Breakpoints::encode2TXT(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSContainer::MSContainerStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Waiting::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), MSContainerControl::erase(), MSPersonControl::erase(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSDevice_Vehroutes::generateOutput(), MSDevice_Tripinfo::generateOutput(), PedestrianTrip< E, N >::getID(), MSPModel_Striping::getNextLane(), GUICalibrator::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIVehicle::getStopInfo(), MSLane::handleCollision(), GUIApplicationWindow::handleEvent_SimulationEnded(), MSVehicle::Influencer::influenceChangeDecision(), MSVehicle::leaveLane(), GUIRunThread::makeStep(), MSPModel_Striping::moveInDirectionOnLane(), MSLaneSpeedTrigger::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), ROLoader::openRoutes(), MSNet::postSimStepOutput(), MSNet::preSimStepOutput(), ROLoader::processRoutes(), GUIDialog_Breakpoints::rebuildList(), MSPerson::MSPersonStage_Walking::routeOutput(), MSContainer::MSContainerStage_Waiting::routeOutput(), MSPerson::MSPersonStage_Waiting::routeOutput(), MSStateHandler::saveState(), MSBaseVehicle::saveState(), MSNet::simulate(), MSLane::succLinkSec(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSContainer::MSContainerStage_Driving::tripInfoOutput(), MSContainer::MSContainerStage_Waiting::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), MSContainer::MSContainerStage_Tranship::tripInfoOutput(), MSPerson::MSPersonStage_Waiting::tripInfoOutput(), MSPModel_Striping::PState::walk(), MSQueueExport::write(), MSBatteryExport::write(), MSEmissionExport::write(), MSFullExport::write(), MSFCDExport::write(), MSXMLRawOut::write(), ODMatrix::write(), SUMOVehicleParameter::write(), MSLink::writeApproaching(), RODFDetector::writeEmitterDefinition(), ODMatrix::writeFlows(), writeInterval(), MSNet::writeOutput(), RODFDetector::writeSingleSpeedTrigger(), ROLoader::writeStats(), MSInductLoop::writeTypedXMLOutput(), TrajectoriesHandler::writeXMLEmissions(), MSRouteProbe::writeXMLOutput(), MSCalibrator::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSDevice_Vehroutes::writeXMLRoute().