SUMO - Simulation of Urban MObility
SUMOTime.h File Reference
#include <config.h>
#include <climits>
#include <string>
#include "UtilExceptions.h"

Go to the source code of this file.

Defines

#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 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 11671 2012-01-07 20:14:30Z behrisch
Author:
Daniel Krajzewicz
Jakob Erdmann
Michael Behrisch
Date:
Fri, 29.04.2005
Version:
Id:
SUMOTime.h 11671 2012-01-07 20:14:30Z behrisch

Definition in file SUMOTime.h.


Define Documentation

#define ACCEL2DIST (   x)    (x)

Definition at line 58 of file SUMOTime.h.

Referenced by MSLCM_DK2004::informBlocker(), and MSVehicle::vsafeCriticalCont().

#define DIST2SPEED (   x)    (x)

Definition at line 56 of file SUMOTime.h.

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

Definition at line 66 of file SUMOTime.h.

Referenced by MSVehicleControl::vehicleDeparted().

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

Definition at line 64 of file SUMOTime.h.

Referenced by ROLogitCalculator::calculateProbabilities(), MSNet::closeSimulation(), MSInductLoop::collectVehiclesOnDet(), TraCIDijkstraRouter< E >::compute(), DijkstraRouterEffortBase< E, V, PF >::compute(), DijkstraRouterTTBase< E, V, PF >::compute(), AStarRouterTTBase< E, V, PF >::compute(), GUITLLogicPhasesTrackerWindow::drawValues(), GUILaneWrapper::getColorValue(), MSInductLoop::getCurrentOccupancy(), GUIVehicle::getLastLaneChangeOffset(), MSInductLoop::getTimestepsSinceLastDetection(), MSVehicle::getWaitingSeconds(), MSVehicle::Influencer::influenceSpeed(), MSInductLoop::MSInductLoop(), MSInstantInductLoop::notifyLeave(), MSInstantInductLoop::notifyMove(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSInductLoop::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), TraCIDijkstraRouter< E >::recomputeCosts(), DijkstraRouterEffortBase< E, V, PF >::recomputeCosts(), AStarRouterTTBase< E, V, PF >::recomputeCosts(), DijkstraRouterTTBase< E, V, PF >::recomputeCosts(), MSVehicleControl::scheduleVehicleRemoval(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), time2string(), MSVehicleControl::vehicleDeparted(), MSMeanData_HBEFA::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), NWWriter_SUMO::writeSUMOTime(), MSInductLoop::writeTypedXMLOutput(), RORouteDef_Complete::writeXMLDefinition(), RORouteDef_Alternatives::writeXMLDefinition(), RORoute::writeXMLDefinition(), and MSE2Collector::writeXMLOutput().

#define SUMOTIME_MAXSTRING   "2147483"

Definition at line 45 of file SUMOTime.h.

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


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(), NLBuilder::build(), NLBuilder::buildNet(), MSVehicleTransfer::checkInsertions(), MSLane::detectCollisions(), GUIParameterTracker::GUIParameterTrackerPanel::drawValue(), GUITLLogicPhasesTrackerWindow::drawValues(), GUIDialog_Breakpoints::encode2TXT(), MSPersonControl::erase(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSVTypeProbe::execute(), MSDevice_Vehroutes::generateOutput(), MSDevice_Tripinfo::generateOutput(), GUIVehicle::getParameterWindow(), GUIApplicationWindow::handleEvent_SimulationEnded(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::handleEvent_SimulationStep(), GUIRunThread::makeStep(), MSLane::moveCritical(), MSLaneSpeedTrigger::myStartElement(), ROLoader::openRoutes(), MSNet::postSimStepOutput(), MSNet::preSimStepOutput(), ROLoader::processRoutesStepWise(), GUIDialog_Breakpoints::rebuildList(), MSLane::setCritical(), MSNet::simulate(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Waiting::tripInfoOutput(), MSXMLRawOut::write(), SUMOVehicleParameter::writeAs(), RODFDetector::writeEmitterDefinition(), MSNet::writeOutput(), ROLoader::writeStats(), MSInductLoop::writeTypedXMLOutput(), MSRouteProbe::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSE3Collector::writeXMLOutput(), MSMeanData::writeXMLOutput(), and MSDevice_Vehroutes::writeXMLRoute().

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines