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) throw (EmptyData, NumberFormatException, ProcessError)
 
std::string time2string (SUMOTime t)
 

Detailed Description

Author
Daniel Krajzewicz
Jakob Erdmann
Michael Behrisch
Date
Fri, 29.04.2005
Version
Id:
SUMOTime.cpp 13811 2013-05-01 20:31:43Z behrisch
Author
Daniel Krajzewicz
Jakob Erdmann
Michael Behrisch
Date
Fri, 29.04.2005
Version
Id:
SUMOTime.h 13811 2013-05-01 20:31:43Z 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
#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(), DijkstraRouterTTBase< MSEdge, SUMOVehicle, prohibited_withRestrictions< MSEdge, SUMOVehicle > >::compute(), DijkstraRouterEffortBase< 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(), MSInductLoop::getCurrentOccupancy(), MSPerson::MSPersonStage_Walking::getEdgePos(), GUIVehicle::getLastLaneChangeOffset(), MSPerson::MSPersonStage_Walking::getPosition(), GUILaneWrapper::getStoredEdgeTravelTime(), MSInductLoop::getTimestepsSinceLastDetection(), MSVehicle::getWaitingSeconds(), MSVehicle::Influencer::influenceSpeed(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSCalibrator::VehicleRemover::notifyEnter(), MSInstantInductLoop::notifyLeave(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSInstantInductLoop::notifyMove(), MSInductLoop::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), 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(), MSLink::unsafeHeadwayTime(), MSVehicleControl::vehicleDeparted(), MSMeanData_HBEFA::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), 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(), 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_Tripinfo::generateOutput(), MSDevice_Vehroutes::generateOutput(), GUIVehicle::getParameterWindow(), GUIApplicationWindow::handleEvent_SimulationEnded(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::handleEvent_SimulationStep(), GUIRunThread::makeStep(), NBOwnTLDef::myCompute(), MSLaneSpeedTrigger::myStartElement(), MSCalibrator::VehicleRemover::notifyEnter(), ROLoader::openRoutes(), MSNet::postSimStepOutput(), MSNet::preSimStepOutput(), ROLoader::processRoutes(), GUIDialog_Breakpoints::rebuildList(), 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(), RODFDetector::writeEmitterDefinition(), ODMatrix::writeFlows(), MSNet::writeOutput(), RODFDetector::writeSingleSpeedTrigger(), ROLoader::writeStats(), MSInductLoop::writeTypedXMLOutput(), MSRouteProbe::writeXMLOutput(), MSCalibrator::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSDevice_Vehroutes::writeXMLRoute().