Eclipse SUMO - Simulation of Urban MObility
SUMOTime.h File Reference
#include <limits>
#include <string>
#include "UtilExceptions.h"
Include dependency graph for SUMOTime.h:

Go to the source code of this file.

Macros

#define ACCEL2DIST(x)   ((x)*TS*TS)
 
#define ACCEL2SPEED(x)   ((x)*TS)
 
#define DIST2SPEED(x)   ((x)/TS)
 
#define SIMSTEP   MSNet::getInstance()->getCurrentTimeStep()
 
#define SIMTIME   STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep())
 
#define SPEED2ACCEL(x)   ((x)/TS)
 
#define SPEED2DIST(x)   ((x)*TS)
 
#define STEPFLOOR(x)   (int(x/DELTA_T)*DELTA_T)
 
#define STEPS2MS(x)   (x)
 
#define STEPS2TIME(x)   (static_cast<double>((x)/1000.))
 
#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)*1000 + ((x) >= 0 ? 0.5 : -0.5)))
 
#define TS   (static_cast<double>(DELTA_T/1000.))
 

Typedefs

typedef long long int SUMOTime
 

Functions

SUMOTime string2time (const std::string &r)
 
std::string time2string (SUMOTime t)
 

Variables

SUMOTime DELTA_T
 

Detailed Description

Author
Daniel Krajzewicz
Jakob Erdmann
Michael Behrisch
Date
Fri, 29.04.2005
Version
$Id$

Definition in file SUMOTime.h.

Macro Definition Documentation

◆ ACCEL2DIST

#define ACCEL2DIST (   x)    ((x)*TS*TS)

◆ ACCEL2SPEED

#define ACCEL2SPEED (   x)    ((x)*TS)

Definition at line 53 of file SUMOTime.h.

Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_ACC::_v(), MSCFModel_IDM::_v(), MSCFModel_CC::_v(), MSLCM_LC2013::_wantsChange(), MSVehicle::addStop(), MSCFModel::brakeGapEuler(), MSCFModel::calculateEmergencyDeceleration(), MSLaneChanger::checkChange(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSLCM_SL2015::commitManoeuvre(), HelpersEnergy::compute(), MSLCM_SL2015::computeSpeedLat(), MSCFModel_KraussOrig1::dawdle(), MSCFModel_Daniel1::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_Krauss::dawdle2(), MSCFModel_KraussX::dawdleX(), MSCFModel::distAfterTime(), MSVehicle::executeMove(), MSCFModel::finalizeSpeed(), MSCFModel_CC::finalizeSpeed(), MSCFModel_W99::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel::followSpeedTransient(), MSCFModel_Rail::freeSpeed(), MSCFModel::freeSpeed(), MSVehicle::getDeltaPos(), MSCFModel::getSpeedAfterMaxDecel(), MSLink::getZipperSpeed(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MSCFModel::maximumSafeFollowSpeed(), MSCFModel::maximumSafeStopSpeedBallistic(), MSCFModel::maximumSafeStopSpeedEuler(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel_CC::maxNextSpeed(), MSCFModel::maxNextSpeed(), MSCFModel_CC::minNextSpeed(), MSCFModel::minNextSpeed(), MSCFModel::minNextSpeedEmergency(), MSDevice_ToC::MRMExecutionStep(), MSVehicle::processLinkApproaches(), MSVehicle::setBrakingSignals(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSCFModel_CACC::speedSpeedContol(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_KraussOrig1::vsafe(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().

◆ DIST2SPEED

◆ SIMSTEP

◆ SIMTIME

#define SIMTIME   STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep())

Definition at line 64 of file SUMOTime.h.

Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_Wiedemann::_v(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSLaneChangerSublane::abortLCManeuver(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSVehicle::adaptToLeaders(), MSPModel_Striping::addCrossingVehs(), libsumo::Polygon::addDynamics(), MSLCM_SL2015::addLCSpeedAdvice(), MSCFModel::applyHeadwayAndSpeedDifferencePerceptionErrors(), MSCFModel::applyHeadwayPerceptionError(), libsumo::Helper::applySubscriptionFilters(), MSDevice_ToC::awarenessRecoveryStep(), MSPModel_Striping::blockedAtDist(), MSE2Collector::buildJam(), MSCFModel::calculateEmergencyDeceleration(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSVehicle::canReverse(), MSLaneChangerSublane::change(), MSLaneChanger::change(), MSLCM_SL2015::changed(), MSLaneChanger::changeOpposite(), MSLaneChanger::checkChange(), MSLaneChangerSublane::checkChangeSublane(), MSDevice_SSM::checkConflictEntryAndExit(), MSDevice_ToC::checkDynamicToC(), MSLane::checkForPedestrians(), MSE2Collector::checkJam(), MSVehicle::checkLinkLeader(), MSVehicle::checkRewindLinkLanes(), MSLCM_SL2015::checkStrategicChange(), MSLaneChanger::checkTraCICommands(), MSAbstractLaneChangeModel::checkTraCICommands(), MSAbstractLaneChangeModel::cleanupShadowLane(), MSAbstractLaneChangeModel::cleanupTargetLane(), MSDevice_SSM::closeEncounter(), MSLCM_SL2015::commitManoeuvre(), MSVehicle::computeAngle(), MSDevice_SSM::computeDRAC(), MSDevice_SSM::computeGlobalMeasures(), MSLCM_SL2015::computeSpeedLat(), MSDevice_SSM::computeSSMs(), MSRailSignal::DriveWay::conflictLaneOccupied(), MSLaneChanger::continueChange(), MSLaneChangerSublane::continueChangeSublane(), MSDevice_SSM::createEncounters(), MSDevice_ToC::deactivateDeliberateLCs(), MSLCM_SL2015::decideDirection(), MSLane::detectCollisionBetween(), MSLane::detectCollisions(), MSE3Collector::detectorUpdate(), MSE2Collector::detectorUpdate(), MSLane::detectPedestrianJunctionCollision(), MSDevice_SSM::determineConflictPoint(), MSDevice_SSM::determinePET(), MSDevice_SSM::determineTTCandDRAC(), MSDevice_SSM::Encounter::Encounter(), MSVehicle::enterLaneAtInsertion(), MSVehicle::enterLaneAtLaneChange(), MSDevice_BTreceiver::BTreceiverUpdate::enterRange(), MSDevice_SSM::estimateConflictTimes(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSCFModel::finalizeSpeed(), MSLaneChanger::findCandidate(), MSDevice_SSM::findFoeConflictLane(), MSRailSignal::DriveWay::findProtection(), MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::flushConflicts(), MSDevice_SSM::flushGlobalMeasures(), MSCFModel_W99::followSpeed(), MSCFModel_CACC::followSpeed(), MSVehicle::getBackPositionOnLane(), MSLane::getCriticalLeader(), MSLane::getFollowersOnConsecutive(), MSParkingArea::getLastFreePosWithReservation(), MSVehicle::getLatOffset(), MSLink::getLeaderInfo(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSPModel_Striping::getNeighboringObstacles(), MSPModel_Striping::getNextLane(), MSLane::getOppositeFollower(), MSLane::getOppositeLeader(), MSLane::getPartialBehind(), MSSimpleDriverState::getPerceivedHeadway(), MSSimpleDriverState::getPerceivedSpeedDifference(), MSLaneChanger::getRealFollower(), MSLaneChanger::getRealLeader(), MSVehicle::getSafeFollowSpeed(), MSCFModel_CACC::getSecureGap(), MSAbstractLaneChangeModel::getShadowLane(), libsumo::Simulation::getTime(), MSInductLoop::getTimeSinceLastDetection(), MSDevice_SSM::getUpstreamVehicles(), MSPModel_Striping::getVehicleObstacles(), MSDevice_SSM::getVehiclesOnJunction(), MSLink::getZipperSpeed(), libsumo::POI::highlight(), libsumo::Vehicle::highlight(), MSPModel_Striping::PState::ignoreRed(), MSVehicle::ignoreRed(), MSLCM_LC2013::inform(), MSLCM_SL2015::inform(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MSRoutingEngine::initEdgeWeights(), MSE2Collector::integrateMoveNotification(), MSLane::integrateNewVehicles(), MSLane::isInsertionSuccess(), MSVehicle::isLeader(), MESegment::isOpen(), MSLCM_SL2015::keepLatGap(), MSVehicle::lateralDistanceToLane(), MSVehicle::leaveLane(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSE2Collector::makeMoveNotification(), MSE2Collector::makeVehicleInfo(), MSCFModel::maximumSafeFollowSpeed(), MSPModel_Striping::moveInDirection(), MSPModel_Striping::moveInDirectionOnLane(), MSPModel_Striping::PState::moveToNextLane(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), MSDevice_ToC::MRMExecutionStep(), MSLCM_LC2013::MSLCM_LC2013(), MSE3Collector::MSE3EntryReminder::notifyEnter(), MSMeanData::MeanDataValues::notifyEnter(), MSInductLoop::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSTriggeredRerouter::notifyEnter(), MSE3Collector::MSE3LeaveReminder::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSE2Collector::notifyEnter(), MSInstantInductLoop::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyLeave(), MSE3Collector::MSE3LeaveReminder::notifyLeave(), MSE2Collector::notifyLeave(), MSInstantInductLoop::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSInductLoop::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSE2Collector::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSVehicle::onRemovalFromNet(), MSLink::opened(), MSLaneChangerSublane::outputLCStarted(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSLane::planMovements(), MSLCM_SL2015::prepareStep(), TraCIServer::processCommandsUntilSimStep(), MSDevice_SSM::processEncounters(), TraCIServerAPI_Simulation::processGet(), MSE2Collector::processJams(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), TraCIServer::processReorderingRequests(), TraCIServerAPI_Vehicle::processSet(), MSVehicle::processTraCISpeedControl(), MSDelayBasedTrafficLightLogic::proposeProlongation(), MSDevice_SSM::qualifiesAsConflict(), MSLink::removeApproaching(), MSVehicle::removePassedDriveItems(), MSDevice_ToC::requestToC(), MSBaseVehicle::reroute(), MSRailSignal::LinkInfo::reroute(), MSTriggeredRerouter::rerouteParkingArea(), MSDevice_ToC::resetDeliberateLCs(), MSLane::resetManeuverReservation(), MSLane::resetPartialOccupation(), MSLane::safeInsertionSpeed(), MSLCM_LC2013::saveBlockerLength(), MSLCM_SL2015::saveBlockerLength(), GUIVehicle::selectBlockingFoes(), MSVehicle::setAngle(), MSLink::setApproaching(), MSVehicle::setApproachingForAllLinks(), MSSimpleDriverState::setAwareness(), MSAbstractLaneChangeModel::setManeuverDist(), MSLane::setManeuverReservation(), MSLCM_SL2015::setOwnState(), MSDevice_ToC::setParameter(), MSLane::setPartialOccupation(), MSDevice_ToC::setState(), MSNet::simulate(), MSNet::simulationStep(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLaneChangerSublane::startChangeSublane(), MSDevice_ToC::switchHolderType(), MSDevice_ToC::ToCPreparationStep(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSDevice_ToC::triggerUpwardToC(), MSSimpleDriverState::update(), MSDevice_SSM::update(), MSDevice_SSM::updateAndWriteOutput(), MSVehicle::updateBestLanes(), MSRailSignal::updateCurrentPhase(), MSVehicle::updateDriveItems(), MSDevice_SSM::updateEncounter(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSVehicle::updateFurtherLanes(), MSDevice_SSM::updatePassedEncounter(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSSimpleDriverState::updateStepDuration(), MSAbstractLaneChangeModel::updateTargetLane(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), MSPModel_Striping::PState::walk(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSMeanData_Net::MSLaneMeanDataValues::write(), MSDevice_SSM::writeOutConflict(), and MSDevice_SSM::Encounter::~Encounter().

◆ SPEED2ACCEL

◆ SPEED2DIST

◆ STEPFLOOR

#define STEPFLOOR (   x)    (int(x/DELTA_T)*DELTA_T)

Definition at line 60 of file SUMOTime.h.

Referenced by MSVehicleControl::vehicleDeparted().

◆ STEPS2MS

#define STEPS2MS (   x)    (x)

Definition at line 61 of file SUMOTime.h.

Referenced by MSFrame::buildStreams(), and MSAmitranTrajectories::writeVehicle().

◆ STEPS2TIME

#define STEPS2TIME (   x)    (static_cast<double>((x)/1000.))

Definition at line 57 of file SUMOTime.h.

Referenced by MSCFModel_CC::_consensus(), MSCFModel_CC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSRoutingEngine::adaptEdgeEfforts(), TraCIServer::addObjectVariableSubscription(), MSLink::blockedByFoe(), CHBuilder< E, V >::buildContractionHierarchy(), LogitCalculator< R, E, V >::calculateProbabilities(), MSLaneChanger::changeOpposite(), MSVehicle::Influencer::changeRequestRemainingSeconds(), MSVehicleType::check(), MSInductLoop::collectVehiclesOnDet(), ROJTRRouter::compute(), IntermodalRouter< E, L, N, V >::compute(), DijkstraRouter< E, V, BASE >::compute(), AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >::compute(), MSPerson::MSPersonStage_Walking::computeAverageSpeed(), NBOwnTLDef::computeLogicAndConts(), MSAbstractLaneChangeModel::computeSpeedLat(), MSCalibrator::currentFlow(), GUIBaseVehicle::drawLinkItem(), GUIVehicle::drawRouteHelper(), GUITLLogicPhasesTrackerWindow::drawValues(), MSE3Collector::enter(), MSAbstractLaneChangeModel::estimateLCDuration(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSNet::generateStatistics(), MSVehicle::getAccumulatedWaitingSeconds(), MSAbstractLaneChangeModel::getAngleOffset(), GNEPerson::getAttribute(), GNEVehicle::getAttribute(), MEVehicle::getAverageSpeed(), MSDevice_Tripinfo::getAvgDepartDelay(), MSDevice_Tripinfo::getAvgDuration(), MSDevice_Tripinfo::getAvgRideDuration(), MSDevice_Tripinfo::getAvgRideWaitingTime(), MSDevice_Tripinfo::getAvgTimeLoss(), MSDevice_Tripinfo::getAvgWaitingTime(), MSDevice_Tripinfo::getAvgWalkDuration(), MSDevice_Tripinfo::getAvgWalkTimeLoss(), MEVehicle::getBlockTimeSeconds(), GUIMEVehicle::getColorValue(), GUIVehicle::getColorValue(), libsumo::TrafficLight::getCompleteRedYellowGreenDefinition(), MEVehicle::getConservativeSpeed(), MEVehicle::getCurrentLinkPenaltySeconds(), MSInductLoop::getCurrentOccupancy(), MEVehicle::getCurrentStoppingTimeSeconds(), MSContainer::MSContainerStage_Tranship::getDistance(), GUINet::getEdgeData(), MESegment::getEntryBlockTimeSeconds(), MESegment::getEventTimeSeconds(), MEVehicle::getEventTimeSeconds(), MSPModel_Striping::PState::getImpatience(), PublicTransportEdge< E, L, N, V >::getIntended(), libsumo::Vehicle::getLastActionTime(), MEVehicle::getLastEntryTimeSeconds(), MESegment::getLastHeadwaySeconds(), GUIVehicle::getLastLaneChangeOffset(), GUILane::getLoadedEdgeWeight(), MESegment::getMaxPenaltySeconds(), libsumo::Vehicle::getNextStops(), libsumo::TrafficLight::getNextSwitch(), MSDevice_ToC::getParameter(), MSCFModel_CC::getParameter(), GUICalibrator::getParameterWindow(), libsumo::TrafficLight::getPhaseDuration(), CState::getPosition(), MSBaseVehicle::getRNG(), libsumo::Person::getStage(), GUILane::getStoredEdgeTravelTime(), PedestrianEdge< E, L, N, V >::getTravelTime(), PublicTransportEdge< E, L, N, V >::getTravelTime(), GUIVehicle::getTypeParameterWindow(), MSCFModel_CC::getVehicleInformation(), MEVehicle::getWaitingSeconds(), MSTransportable::getWaitingSeconds(), MSVehicle::getWaitingSeconds(), MSLink::getZipperSpeed(), MSPModel_Striping::PState::ignoreRed(), MSVehicle::ignoreRed(), ROMAAssignments::incremental(), MSVehicle::Influencer::influenceSpeed(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::initMesoTLSPenalties(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), MESegment::jamThresholdForSpeed(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSVehicleType::MSVehicleType(), TrajectoriesHandler::myStartElement(), SAXWeightsHandler::myStartElement(), MESegment::newArrival(), MSE3Collector::MSE3EntryReminder::notifyMove(), GNETLSEditorFrame::onCmdPhaseEdit(), MSMeanData_Amitran::openInterval(), MSVehicle::planMove(), MSVehicle::planMoveInternal(), MSDevice_Tripinfo::printStatistics(), SUMOVehicleParserHelper::processActionStepLength(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), MSEdge::recalcCache(), SUMOAbstractRouter< E, IntermodalTrip< E, N, V > >::recomputeCosts(), MESegment::recomputeJamThreshold(), MSVehicleControl::removePending(), MSDevice_ToC::requestToC(), ROMAAssignments::resetFlows(), MSVehicleType::setActionStepLength(), GNETLSEditorFrame::TLSAttributes::setOffset(), MSStopOut::stopEnded(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), string2time(), libsumo::Helper::subscribe(), ROMAAssignments::sue(), time2string(), MSCalibrator::totalWished(), PolygonDynamics::update(), GNETLSEditorFrame::TLSPhases::updateCycleDuration(), MSMoveReminder::updateDetector(), MSSwarmTrafficLightLogic::updateSensitivities(), GNETLSEditorFrame::varDurString(), MSVehicleControl::vehicleDeparted(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), SUMOVTypeParameter::write(), GNEPerson::writeDemandElement(), GNEVehicle::writeDemandElement(), ODMatrix::writeFlows(), writeInterval(), MSDevice_ToC::writeOutput(), MSNet::writeOutput(), NWWriter_SUMO::writeSUMOTime(), GNETLSEditorFrame::TLSFile::writeSUMOTime(), RORoute::writeXMLDefinition(), MSCalibrator::writeXMLOutput(), MSInductLoop::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSE2Collector::writeXMLOutput().

◆ SUMOTime_MAX

◆ SUMOTIME_MAXSTRING

#define SUMOTIME_MAXSTRING   "9223372036854774"

Definition at line 38 of file SUMOTime.h.

Referenced by ROMAFrame::addImportOptions(), ROFrame::fillOptions(), and fillOptions().

◆ SUMOTime_MIN

#define SUMOTime_MIN   std::numeric_limits<SUMOTime>::min()

Definition at line 37 of file SUMOTime.h.

Referenced by MEVehicle::hasArrived(), and MEVehicle::loadState().

◆ TIME2STEPS

#define TIME2STEPS (   x)    (static_cast<SUMOTime>((x)*1000 + ((x) >= 0 ? 0.5 : -0.5)))

Definition at line 59 of file SUMOTime.h.

Referenced by MSTLLogicControl::WAUTSwitchProcedure_GSP::adaptLogic(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::adaptLogic(), libsumo::Person::add(), NLHandler::addE2Detector(), TraCIServer::addObjectVariableSubscription(), NBOwnTLDef::addPedestrianPhases(), NBOwnTLDef::addPedestrianScramble(), NIImporter_SUMO::addPhase(), AGActivityTripWriter::addTrip(), libsumo::Person::appendWaitingStage(), libsumo::Person::appendWalkingStage(), ODMatrix::applyCurve(), NLHandler::beginE3Detector(), MSPModel_Striping::blockedAtDist(), MSLink::blockedByFoe(), NLBuilder::buildNet(), MSDevice_ToC::buildVehicleDevices(), libsumo::Vehicle::changeLane(), libsumo::Vehicle::changeLaneRelative(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSRouteHandler::closePersonFlow(), RORouteHandler::closePersonFlow(), PedestrianRouter< E, L, N, V >::compute(), IntermodalRouter< E, L, N, V >::compute(), ROPerson::computeIntermodal(), NBOwnTLDef::computeLogicAndConts(), CState::computeTranshipTime(), MSPModel_NonInteracting::PState::computeWalkingTime(), libsumo::Person::convertTraCIStage(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), TraCIServer::dispatchCommand(), GUITLLogicPhasesTrackerWindow::drawValues(), MSActuatedTrafficLightLogic::duration(), MSE3Collector::enter(), METriggeredCalibrator::execute(), MSCalibrator::execute(), libsumo::Simulation::findIntermodalRoute(), libsumo::Simulation::findRoute(), MSLane::getCriticalLeader(), ROPerson::TripItem::getDuration(), PublicTransportEdge< E, L, N, V >::getIntended(), MSStoppingPlace::getLastFreePos(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLeaveTime(), MSCFModel::getMinimalArrivalTime(), MESegment::getNextInsertionTime(), GNETLSEditorFrame::getSUMOTime(), MESegment::getTimeHeadway(), MSVehicle::getTimeLoss(), PublicTransportEdge< E, L, N, V >::getTravelTime(), NBLoadedSUMOTLDef::guessMinMaxDuration(), MSTrafficLightLogic::initMesoTLSPenalties(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MSLane::isInsertionSuccess(), MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP(), MSPerson::Influencer::isRemoteAffected(), MSVehicle::Influencer::isRemoteAffected(), MSActuatedTrafficLightLogic::MSActuatedTrafficLightLogic(), MSDelayBasedTrafficLightLogic::MSDelayBasedTrafficLightLogic(), MSOffTrafficLightLogic::MSOffTrafficLightLogic(), NBLoadedTLDef::myCompute(), MESegment::newArrival(), MSDevice_Bluelight::notifyMove(), MSDevice_Tripinfo::notifyMoveInternal(), GUIParameterTracker::onCmdChangeAggregation(), GNETLSEditorFrame::onCmdPhaseCreate(), NIImporter_VISUM::parse_TrafficLights(), NLTriggerBuilder::parseAndBuildRerouter(), SUMOVehicleParserHelper::parseFlowAttributes(), ODMatrix::parseSingleTime(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSVehicle::planMoveInternal(), MSPerson::MSPersonStage_Access::proceed(), SUMOVehicleParserHelper::processActionStepLength(), MSDelayBasedTrafficLightLogic::proposeProlongation(), MSOffTrafficLightLogic::rebuildPhase(), MESegment::receive(), MSAbstractLaneChangeModel::remainingTime(), MSDevice_ToC::requestToC(), GUIVehicle::rerouteDRTStop(), MSVehicle::resumeFromStopping(), MSTransportable::Stage_Trip::setArrived(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), libsumo::TrafficLight::setCompleteRedYellowGreenDefinition(), MSTransportableDevice_Routing::setParameter(), MSDevice_ToC::setParameter(), MSDevice_Routing::setParameter(), libsumo::TrafficLight::setPhaseDuration(), libsumo::Vehicle::setStop(), libsumo::Vehicle::slowDown(), libsumo::Simulation::step(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), string2time(), libsumo::Helper::subscribe(), MELoop::teleportVehicle(), TraCITestClient::testAPI(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSDelayBasedTrafficLightLogic::trySwitch(), MSTLLogicControl::WAUTSwitchProcedure_GSP::trySwitch(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::trySwitch(), and NWWriter_SUMO::writeTrafficLights().

◆ TS

#define TS   (static_cast<double>(DELTA_T/1000.))

Definition at line 44 of file SUMOTime.h.

Referenced by MSCFModel_CC::_ploeg(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::Influencer::GapControlState::activate(), MSDevice_ToC::awarenessRecoveryStep(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), MSLCM_SL2015::checkBlockingVehicles(), MSLaneChanger::checkChange(), MSDevice_SSM::checkConflictEntryAndExit(), RONet::checkFlows(), GUIApplicationWindow::checkGamingEvents(), MSLCM_SL2015::commitManoeuvre(), MSLaneChanger::computeOvertakingTime(), MSCFModel_CC::createVehicleVariables(), MSE3Collector::detectorUpdate(), MSInsertionControl::determineCandidates(), MSCFModel::distAfterTime(), MSCFModel_IDM::finalizeSpeed(), MSCFModel_Rail::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel::followSpeedTransient(), MSCFModel::freeSpeed(), MSVehicle::Influencer::gapControlSpeed(), MSCFModel::gapExtrapolation(), MSInductLoop::getCurrentOccupancy(), libsumo::Simulation::getDeltaT(), MSLink::getZipperSpeed(), MSDevice_Battery::increaseChargingStartTime(), MSLCM_LC2013::informFollower(), MSE3Collector::leave(), MSCFModel::maximumSafeStopSpeedBallistic(), MSCFModel::maximumSafeStopSpeedEuler(), MSCFModel_SmartSK::MSCFModel_SmartSK(), MSInstantInductLoop::notifyMove(), MSDevice_Emissions::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSCFModel::passingTime(), MSNet::postSimStepOutput(), GUIRunThread::run(), MSCFModel_CC::setParameter(), MSCFModel::speedAfterTime(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_Rail::stopSpeed(), time2string(), MSCFModel_SmartSK::updateMyHeadway(), MSDevice_SSM::updatePassedEncounter(), MSSimpleDriverState::updateReactionTime(), MSVehicle::updateTimeLoss(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), and TrajectoriesHandler::writeEmissions().

Typedef Documentation

◆ SUMOTime

typedef long long int SUMOTime

Definition at line 35 of file SUMOTime.h.

Function Documentation

◆ string2time()

SUMOTime string2time ( const std::string &  r)

Definition at line 42 of file SUMOTime.cpp.

References StringTokenizer::getVector(), STEPS2TIME, string2time(), SUMOTime_MAX, TIME2STEPS, and StringUtils::toDouble().

Referenced by ODMatrix::add(), MSDetectorControl::add(), MSDetectorControl::addDetectorAndInterval(), NLHandler::addEdgeLaneMeanData(), NLBuilder::build(), MSTransportableDevice_Routing::buildDevices(), NLBuilder::buildRouteLoaderControl(), MELoop::buildSegmentsFor(), NLTriggerBuilder::buildVaporizer(), MSDevice_Routing::buildVehicleDevices(), MSDevice_Routing::checkOptions(), MSFrame::checkOptions(), TraCIServer::cleanup(), MSNet::closeBuilding(), MSRouteHandler::closeFlow(), MSRouteHandler::closePerson(), MSRouteHandler::closePersonFlow(), MSRouteHandler::closeVehicle(), computeRoutes(), SUMOSAXAttributes::getOptSUMOTimeReporting(), GNEStopFrame::getStopParameter(), SUMOSAXAttributes::getSUMOTimeReporting(), GUIApplicationWindow::handleEvent_SimulationLoaded(), MSPhaseDefinition::init(), MSLane::initCollisionOptions(), MSRoutingEngine::initWeightUpdate(), GUISettingsHandler::loadBreakpoints(), main(), MSNet::MSNet(), MSPModel_Striping::MSPModel_Striping(), SUMORouteHandler::myEndElement(), MSStateHandler::myStartElement(), GUIDialog_Breakpoints::onCmdEditTable(), ROLoader::openRoutes(), TraCIServer::openSocket(), GNEAttributeCarrier::parse(), SUMOVehicleParameter::parseDepart(), SUMOVehicleParserHelper::parseVTypeEmbedded(), readDetectorFlows(), MSRoutingEngine::reroute(), GUILoadThread::run(), GNEVehicleType::setAttribute(), GNEStop::setAttribute(), GNEPerson::setAttribute(), GNEVehicle::setAttribute(), MSFrame::setMSGlobals(), signalHandler(), startComputation(), string2time(), and MSFCDExport::write().

◆ time2string()

std::string time2string ( SUMOTime  t)

Definition at line 65 of file SUMOTime.cpp.

References gHumanReadableTime, gPrecision, STEPS2TIME, and TS.

Referenced by MSPModel_Striping::add(), libsumo::Person::add(), MSVehicleTransfer::add(), IntermodalNetwork< E, L, N, V >::addSchedule(), AGActivityTripWriter::addTrip(), GUIRunThread::begin(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSContainer::MSContainerStage_Tranship::beginEventOutput(), MSTransportable::Stage_Waiting::beginEventOutput(), MSTransportable::Stage_Driving::beginEventOutput(), NLBuilder::build(), CHBuilder< E, V >::buildContractionHierarchy(), NLBuilder::buildNet(), MSSwarmTrafficLightLogic::calculateEtaDiff(), MSSwarmTrafficLightLogic::calculateEtaRatio(), MSDeterministicHiLevelTrafficLightLogic::canRelease(), MSSOTLPolicyBasedTrafficLightLogic::canRelease(), MSSwarmTrafficLightLogic::canRelease(), MELoop::changeSegment(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSVehicleTransfer::checkInsertions(), CHRouter< E, V, BASE >::clone(), AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >::compute(), NBOwnTLDef::computeLogicAndConts(), computeRoutes(), MSDeterministicHiLevelTrafficLightLogic::decideNextPhase(), MSSOTLPolicyBasedTrafficLightLogic::decideNextPhase(), MSSOTLPolicy::decideNextPhase(), MSSwarmTrafficLightLogic::decideNextPhase(), MSDeterministicHiLevelTrafficLightLogic::decidePolicy(), MSSwarmTrafficLightLogic::decidePolicy(), MSLane::detectCollisions(), MSLane::detectPedestrianJunctionCollision(), GUIVehicle::drawRouteHelper(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GUITLLogicPhasesTrackerWindow::drawValues(), GUIDialog_Breakpoints::encode2TXT(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSContainer::MSContainerStage_Tranship::endEventOutput(), MSTransportable::Stage_Waiting::endEventOutput(), MSTransportable::Stage_Driving::endEventOutput(), METriggeredCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSDevice_Tripinfo::generateOutput(), GNEChargingStation::getAttribute(), GNEVaporizer::getAttribute(), GNERouteProbe::getAttribute(), GNEDetectorE3::getAttribute(), GNECalibratorFlow::getAttribute(), GNEDetectorE1::getAttribute(), GNERerouterInterval::getAttribute(), GNERerouter::getAttribute(), GNECalibrator::getAttribute(), GNEDetectorE2::getAttribute(), GNEVehicleType::getAttribute(), GNEStop::getAttribute(), GNEPerson::getAttribute(), GNEVehicle::getAttribute(), MSVehicle::getBackPositionOnLane(), SUMOVehicleParameter::getDepart(), IntermodalTrip< E, N, V >::getID(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForInputLanes(), MSDeterministicHiLevelTrafficLightLogic::getMeanSpeedForOutputLanes(), MSPModel_Striping::getNextLane(), MSTransportableDevice_Routing::getParameter(), MSDevice_Routing::getParameter(), GUIPerson::getParameterWindow(), GUIContainer::getParameterWindow(), GUICalibrator::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIMEVehicle::getParameterWindow(), MSSwarmTrafficLightLogic::getPheromoneForInputLanes(), MSSwarmTrafficLightLogic::getPheromoneForOutputLanes(), MSPerson::MSPersonStage_Driving::getStageSummary(), MSTransportable::Stage_Waiting::getStageSummary(), GUIVehicle::getStopInfo(), MSLane::handleCollisionBetween(), GUIApplicationWindow::handleEvent_SimulationEnded(), MSVehicle::haveValidStopEdges(), ROMAAssignments::incremental(), MSVehicle::Influencer::influenceChangeDecision(), MSActuatedTrafficLightLogic::init(), MSEdge::insertVehicle(), MSSOTLTrafficLightLogic::isThresholdPassed(), MSAbstractLaneChangeModel::laneChangeOutput(), MSVehicle::leaveLane(), GUIRunThread::makeStep(), MSPModel_Striping::moveInDirectionOnLane(), MSLaneSpeedTrigger::myStartElement(), MSTriggeredRerouter::notifyEnter(), MSCalibrator::VehicleRemover::notifyEnter(), GUIDialog_ViewSettings::onCmdExportSetting(), MSMeanData::openInterval(), ROLoader::openRoutes(), MSNet::postSimStepOutput(), MSNet::preSimStepOutput(), MSVehicle::processLaneAdvances(), ROLoader::processRoutes(), GUIDialog_Breakpoints::rebuildList(), MSVehicle::rerouteParkingArea(), MSPerson::MSPersonStage_Walking::routeOutput(), MSContainer::routeOutput(), MSPerson::MSPersonStage_Driving::routeOutput(), MSPerson::routeOutput(), MSTransportable::Stage_Waiting::routeOutput(), ROPerson::Ride::saveAsXML(), MSStateHandler::saveState(), MSNet::simulate(), MSNet::simulationStep(), MSStopOut::stopEnded(), MSStopOut::stopStarted(), MSLane::succLinkSec(), MELoop::teleportVehicle(), MSContainer::MSContainerStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSContainer::MSContainerStage_Tranship::tripInfoOutput(), MSContainer::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Access::tripInfoOutput(), MSPerson::tripInfoOutput(), MSTransportable::Stage_Waiting::tripInfoOutput(), MSSOTLTrafficLightLogic::trySwitch(), MSSOTLTrafficLightLogic::updateDecayThreshold(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSAbstractLaneChangeModel::updateShadowLane(), MSVehicle::updateState(), MSPModel_Striping::PState::walk(), MSBatteryExport::write(), MSEmissionExport::write(), MSQueueExport::write(), MSFullExport::write(), MSFCDExport::write(), MSXMLRawOut::write(), ODMatrix::write(), SUMOVehicleParameter::Stop::write(), MSVehicle::Stop::write(), MSLink::writeApproaching(), MSChargingStation::writeChargingStationOutput(), GNEPerson::writeDemandElement(), GNEVehicle::writeDemandElement(), RODFDetector::writeEmitterDefinition(), ODMatrix::writeFlows(), writeInterval(), MSDevice_Vehroutes::writeOutput(), MSNet::writeOutput(), RODFDetector::writeSingleSpeedTrigger(), ROLoader::writeStats(), TrajectoriesHandler::writeXMLEmissions(), MSCalibrator::writeXMLOutput(), MEInductLoop::writeXMLOutput(), MSRouteProbe::writeXMLOutput(), MSE3Collector::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and MSDevice_Vehroutes::writeXMLRoute().

Variable Documentation

◆ DELTA_T

SUMOTime DELTA_T

Definition at line 35 of file SUMOTime.cpp.

Referenced by MSCFModel_CC::_consensus(), MSCFModel_CC::_v(), MSVehicle::Influencer::GapControlState::activate(), MSRoutingEngine::adaptEdgeEfforts(), MSPModel_Striping::add(), MSTransportableControl::add(), GUITLLogicPhasesTrackerWindow::addValue(), MSDevice_ToC::awarenessRecoveryStep(), MSTransportableControl::boardAnyWaiting(), MSFrame::buildStreams(), MSVehicleType::check(), MSInsertionControl::checkCandidates(), MSLaneChanger::checkChange(), RONet::checkFlows(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), MSE2Collector::checkJam(), GUIViewTraffic::checkSnapshots(), GUISUMOAbstractView::checkSnapshots(), NLJunctionControlBuilder::closeTrafficLightLogic(), MSInsertionControl::computeRandomDepartOffset(), MSSOTLTrafficLightLogic::computeReturnTime(), MSSwarmTrafficLightLogic::computeReturnTime(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSLane::detectCollisionBetween(), MSE3Collector::detectorUpdate(), MSMeanData::detectorUpdate(), MSInsertionControl::determineCandidates(), TraCIServer::dispatchCommand(), MSVehicle::enterLaneAtInsertion(), MSPModel_Remote::execute(), METriggeredCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSCalibrator::execute(), MSEventControl::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSPModel_Striping::MovePedestrians::execute(), MSVehicle::executeMove(), TrackerValueDesc::getAggregationSpan(), MEVehicle::getConservativeSpeed(), MSInductLoop::getCurrentLength(), MSInductLoop::getCurrentOccupancy(), MSInductLoop::getCurrentPassedNumber(), MSInductLoop::getCurrentSpeed(), MSInductLoop::getCurrentVehicleIDs(), GUINet::getRTFactor(), MSLeaderInfo::getSubLanes(), libsumo::InductionLoop::getVehicleData(), MSVehicle::hasDriverState(), MSVehicle::Influencer::influenceSpeed(), MSVehicle::keepStopping(), MSAbstractLaneChangeModel::laneChangeOutput(), GUIRunThread::makeStep(), MSCFModel_Rail::maxNextSpeed(), MSCFModel_Rail::minNextSpeed(), MSPModel_Striping::moveInDirectionOnLane(), MSDevice_ToC::MRMExecutionStep(), MSPModel_Remote::MSPModel_Remote(), MSRailSignal::MSRailSignal(), MSDevice_Tripinfo::notifyMove(), MSVehicleContainer::DepartFinder::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSVehicle::planMoveInternal(), MSNet::postSimStepOutput(), MSDevice_Routing::preInsertionReroute(), SUMOVehicleParserHelper::processActionStepLength(), TraCIServerAPI_Vehicle::processSet(), MSDevice_ToC::requestToC(), GUIRunThread::run(), TrackerValueDesc::setAggregationSpan(), MSFrame::setMSGlobals(), libsumo::Vehicle::setSpeed(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), MSTransportableControl::setWaitEnd(), MELoop::simulate(), MSNet::simulationStep(), MSLaneChangerSublane::startChangeSublane(), MSAbstractLaneChangeModel::startLaneChangeManeuver(), MSDevice_ToC::ToCPreparationStep(), MSDevice_ToC::triggerDownwardToC(), MSDevice_ToC::triggerMRM(), MSInsertionControl::tryInsert(), MSOffTrafficLightLogic::trySwitch(), MSRailSignal::trySwitch(), MSAbstractLaneChangeModel::unchanged(), PolygonDynamics::update(), MSRailCrossing::updateCurrentPhase(), GUIApplicationWindow::updateTimeLCD(), MSVehicle::updateWaitingTime(), MSPModel_Striping::PState::walk(), ODMatrix::write(), MSNet::writeOutput(), MSMeanData::writeXMLOutput(), and SUMOVehicle::~SUMOVehicle().