SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SUMOTime.h File Reference
#include <config.h>
#include <climits>
#include <string>
#include "UtilExceptions.h"

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 SPEED2ACCEL(x)   (x)
 
#define SPEED2DIST(x)   (x)
 
#define STEPFLOOR(x)   (x)
 
#define STEPS2TIME(x)   (static_cast<SUMOReal>(x))
 
#define SUMOTime_MAX   INT_MAX
 
#define SUMOTIME_MAXSTRING   "2147483"
 
#define SUMOTime_MIN   INT_MIN
 
#define TIME2STEPS(x)   (static_cast<SUMOTime>(x))
 
#define TS   (static_cast<SUMOReal>(1.))
 

Typedefs

typedef int SUMOTime
 

Functions

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

Detailed Description

Author
Daniel Krajzewicz
Jakob Erdmann
Michael Behrisch
Date
Fri, 29.04.2005
Version
Id:
SUMOTime.cpp 14425 2013-08-16 20:11:47Z behrisch
Author
Daniel Krajzewicz
Jakob Erdmann
Michael Behrisch
Date
Fri, 29.04.2005
Version
Id:
SUMOTime.h 14425 2013-08-16 20:11:47Z behrisch

Definition in file SUMOTime.h.

Macro Definition Documentation

#define ACCEL2DIST (   x)    (x)

Definition at line 59 of file SUMOTime.h.

Referenced by MSLCM_DK2004::informBlocker().

#define DELTA_T   1

Definition at line 50 of file SUMOTime.h.

Referenced by GUITLLogicPhasesTrackerWindow::addValue(), MSInsertionControl::checkFlows(), RONet::checkFlows(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), MSE2Collector::detectorUpdate(), MSMeanData::detectorUpdate(), traci::TraCIServer::dispatchCommand(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSEventControl::execute(), MSVehicle::executeMove(), TrackerValueDesc::getAggregationSpan(), MSInductLoop::getCurrentLength(), MSInductLoop::getCurrentOccupancy(), MSInductLoop::getCurrentPassedNumber(), MSInductLoop::getCurrentSpeed(), MSInductLoop::getCurrentVehicleIDs(), MSVehicle::Influencer::influenceSpeed(), MSE3Collector::leave(), GUIRunThread::makeStep(), MSVehicleContainer::DepartFinder::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSNet::postSimStepOutput(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Simulation::processGet(), MSVehicle::processNextStop(), ROLoader::processRoutes(), TraCIServerAPI_TLS::processSet(), TrackerValueDesc::setAggregationSpan(), MSPersonControl::setDeparture(), MSFrame::setMSGlobals(), MSPersonControl::setWaitEnd(), MSNet::simulationStep(), MSAbstractLaneChangeModel::startLaneChangeManeuver(), MSInsertionControl::tryInsert(), MSOffTrafficLightLogic::trySwitch(), MSAbstractLaneChangeModel::unchanged(), MSTriggeredReader::wrappedExecute(), ODMatrix::write(), MSNet::writeOutput(), and MSMeanData::writeXMLOutput().

#define DIST2SPEED (   x)    (x)

Definition at line 57 of file SUMOTime.h.

#define SPEED2ACCEL (   x)    (x)
#define STEPFLOOR (   x)    (x)

Definition at line 67 of file SUMOTime.h.

Referenced by MSVehicleControl::vehicleDeparted().

#define STEPS2TIME (   x)    (static_cast<SUMOReal>(x))

Definition at line 65 of file SUMOTime.h.

Referenced by MSDevice_Routing::buildVehicleDevices(), ROLogitCalculator::calculateProbabilities(), MSNet::closeSimulation(), MSInductLoop::collectVehiclesOnDet(), DijkstraRouterEffortBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::compute(), DijkstraRouterTTBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::compute(), AStarRouterTTBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::compute(), GUIVehicle::drawLinkItem(), GUITLLogicPhasesTrackerWindow::drawValues(), MSCalibrator::execute(), MSPerson::MSPersonStage_Walking::getAngle(), MSVehicle::getAngle(), GUIPerson::getColorValue(), MSInductLoop::getCurrentOccupancy(), MSPerson::MSPersonStage_Walking::getEdgePos(), GUIVehicle::getLastLaneChangeOffset(), GUICalibrator::getParameterWindow(), MSPerson::MSPersonStage_Walking::getPosition(), GUILane::getStoredEdgeTravelTime(), MSInductLoop::getTimestepsSinceLastDetection(), MSVehicle::getWaitingSeconds(), MSVehicle::Influencer::influenceSpeed(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSInstantInductLoop::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSInstantInductLoop::notifyMove(), MSInductLoop::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSVehicle::planMoveInternal(), DijkstraRouterEffortBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::recomputeCosts(), AStarRouterTTBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::recomputeCosts(), DijkstraRouterTTBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::recomputeCosts(), MSVehicleControl::scheduleVehicleRemoval(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), time2string(), MSCalibrator::totalWished(), GUIApplicationWindow::updateTimeLCD(), MSVehicleControl::vehicleDeparted(), MSMeanData_HBEFA::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), MSNet::writeOutput(), SUMOVehicleParameter::writeStops(), NWWriter_SUMO::writeSUMOTime(), MSInductLoop::writeTypedXMLOutput(), RORoute::writeXMLDefinition(), MSCalibrator::writeXMLOutput(), MSE2Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().

#define SUMOTIME_MAXSTRING   "2147483"

Definition at line 46 of file SUMOTime.h.

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

#define SUMOTime_MIN   INT_MIN

Definition at line 45 of file SUMOTime.h.

Typedef Documentation

typedef int SUMOTime

Definition at line 43 of file SUMOTime.h.

Function Documentation

std::string time2string ( SUMOTime  t)

Definition at line 61 of file SUMOTime.cpp.

References OUTPUT_ACCURACY, and STEPS2TIME.

Referenced by GUIRunThread::begin(), MSPerson::MSPersonStage_Walking::beginEventOutput(), MSPerson::MSPersonStage_Driving::beginEventOutput(), MSPerson::MSPersonStage_Waiting::beginEventOutput(), NLBuilder::build(), NLBuilder::buildNet(), MSVehicleTransfer::checkInsertions(), MSAbstractLaneChangeModel::continueLaneChangeManeuver(), MSLane::detectCollisions(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GUITLLogicPhasesTrackerWindow::drawValues(), GUIDialog_Breakpoints::encode2TXT(), MSPerson::MSPersonStage_Walking::endEventOutput(), MSPerson::MSPersonStage_Driving::endEventOutput(), MSPerson::MSPersonStage_Waiting::endEventOutput(), 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(), GUICalibrator::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIVehicle::getStopInfo(), GUIApplicationWindow::handleEvent_SimulationEnded(), GUIRunThread::makeStep(), NBOwnTLDef::myCompute(), MSLaneSpeedTrigger::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), ROLoader::openRoutes(), MSNet::postSimStepOutput(), MSNet::preSimStepOutput(), ROLoader::processRoutes(), GUIDialog_Breakpoints::rebuildList(), MSPerson::MSPersonStage_Walking::routeOutput(), MSPerson::MSPersonStage_Waiting::routeOutput(), MSNet::simulate(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Waiting::tripInfoOutput(), MSQueueExport::write(), MSFCDExport::write(), MSEmissionExport::write(), MSFullExport::write(), MSXMLRawOut::write(), ODMatrix::write(), SUMOVehicleParameter::write(), MSLink::writeApproaching(), RODFDetector::writeEmitterDefinition(), ODMatrix::writeFlows(), MSNet::writeOutput(), RODFDetector::writeSingleSpeedTrigger(), ROLoader::writeStats(), MSInductLoop::writeTypedXMLOutput(), MSRouteProbe::writeXMLOutput(), MSCalibrator::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSDevice_Vehroutes::writeXMLRoute().