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 | 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) |
Definition in file SUMOTime.h.
#define ACCEL2DIST | ( | x | ) | (x) |
Definition at line 59 of file SUMOTime.h.
Referenced by MSLCM_DK2004::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(), MSCFModel_PWag2009::followSpeed(), MSCFModel::getSecureGap(), MSCFModel::getSpeedAfterMaxDecel(), MSCFModel_Wiedemann::krauss_vsafe(), MSCFModel::maxNextSpeed(), MSVehicle::moveChecked(), MSCFModel_PWag2009::stopSpeed(), MSLCM_DK2004::wantsChangeToLeft(), and MSLCM_DK2004::wantsChangeToRight().
#define DELTA_T 1 |
Definition at line 50 of file SUMOTime.h.
Referenced by RORDGenerator_ODAmounts::FlowDef::addRoutes(), GUITLLogicPhasesTrackerWindow::addValue(), MSLaneChanger::change(), MSInsertionControl::checkFlows(), MSE2Collector::detectorUpdate(), MSMeanData::detectorUpdate(), traci::TraCIServer::dispatchCommand(), MSE3Collector::enter(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSEventControl::execute(), RORDGenerator_ODAmounts::FlowDef::FlowDef(), TrackerValueDesc::getAggregationSpan(), MSInductLoop::getCurrentLength(), MSInductLoop::getCurrentOccupancy(), MSInductLoop::getCurrentPassedNumber(), MSInductLoop::getCurrentSpeed(), MSInductLoop::getCurrentVehicleIDs(), MSVehicle::Influencer::influenceSpeed(), MSE3Collector::leave(), GUIRunThread::makeStep(), MSVehicle::moveChecked(), MSVehicleContainer::DepartFinder::operator()(), MSNet::postSimStepOutput(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Simulation::processGet(), MSVehicle::processNextStop(), ROLoader::processRoutesStepWise(), TraCIServerAPI_TLS::processSet(), RORDGenerator_ODAmounts::readRoutesAtLeastUntil(), TrackerValueDesc::setAggregationSpan(), MSPersonControl::setDeparture(), MSFrame::setMSGlobals(), MSPersonControl::setWaitEnd(), MSNet::simulationStep(), MSInsertionControl::tryInsert(), MSOffTrafficLightLogic::trySwitch(), 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) |
Definition at line 63 of file SUMOTime.h.
Referenced by 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(), getMaxSpeedRegardingNextLanes(), MSLaneChanger::getRealFollower(), MSCFModel::getSecureGap(), MSLCM_DK2004::informBlocker(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSCFModel_Wiedemann::krauss_vsafe(), MSVehicle::move(), MSVehicle::moveChecked(), MSVehicle::onRemovalFromNet(), and MSLane::setCritical().
#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::drawGLAdditional(), GUITLLogicPhasesTrackerWindow::drawValues(), 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(), MSInstantInductLoop::notifyLeave(), MSInstantInductLoop::notifyMove(), MSE3Collector::MSE3EntryReminder::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(), MSVehicleControl::vehicleDeparted(), MSMeanData_HBEFA::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), NWWriter_SUMO::writeSUMOTime(), MSInductLoop::writeTypedXMLOutput(), RORoute::writeXMLDefinition(), MSE2Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
#define SUMOTime_MAX INT_MAX |
Definition at line 44 of file SUMOTime.h.
Referenced by NLDetectorBuilder::createEdgeLaneMeanData(), GUIDialog_Breakpoints::GUIDialog_Breakpoints(), MSRouteLoaderControl::loadNext(), SUMOVehicleParserHelper::parseFlowAttributes(), ROLoader::processAllRoutes(), TraCIServerAPI_Edge::processSet(), and TraCIServerAPI_Vehicle::processSet().
#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.
#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(), NLHandler::addE2Detector(), NIImporter_SUMO::addPhase(), MSVehicleTransfer::addVeh(), ODMatrix::applyCurve(), NLHandler::beginE3Detector(), NLBuilder::buildNet(), MSVehicleTransfer::checkInsertions(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), GUIVehicle::drawGLAdditional(), GUITLLogicPhasesTrackerWindow::drawValues(), MSLane::getLeaderOnConsecutive(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MSLane::isInsertionSuccess(), MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP(), MSVehicle::move(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSOffTrafficLightLogic::MSOffTrafficLightLogic(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), GUIParameterTracker::onCmdChangeAggregation(), MSLink::opened(), NIImporter_VISUM::parse_TrafficLights(), SUMOVehicleParserHelper::parseFlowAttributes(), parseSingleTime(), MSPerson::MSPersonStage_Walking::proceed(), MSOffTrafficLightLogic::rebuildPhase(), MSLink::safeHeadwayTime(), MSLink::setApproaching(), 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 MSE3Collector::detectorUpdate(), MSCFModel_IDM::duplicate(), MSCFModel_SmartSK::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSInductLoop::getCurrentOccupancy(), GUIApplicationWindow::handleEvent_SimulationLoaded(), GUIApplicationWindow::handleEvent_SimulationStep(), MSCFModel_SmartSK::MSCFModel_SmartSK(), MSDevice_HBEFA::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_SmartSK::updateMyHeadway(), and MSMeanData_Harmonoise::MSLaneMeanDataValues::write().
Definition at line 43 of file SUMOTime.h.
SUMOTime string2time | ( | const std::string & | r | ) | throw (EmptyData, NumberFormatException, ProcessError) |
Definition at line 48 of file SUMOTime.cpp.
References TIME2STEPS.
Referenced by MSDetectorControl::add(), MSDetectorControl::addDetectorAndInterval(), NLHandler::addEdgeLaneMeanData(), NLBuilder::build(), ROLoader::buildNamedHandler(), NLBuilder::buildRouteLoaderControl(), NLTriggerBuilder::buildVaporizer(), MSDevice_Routing::buildVehicleDevices(), MSRouteHandler::closeFlow(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), computeRoutes(), GUIDialog_Breakpoints::GUIDialog_Breakpoints(), main(), MSNet::MSNet(), MSPhaseDefinition::MSPhaseDefinition(), GUIDialog_Breakpoints::onCmdEditTable(), GUIDialog_Breakpoints::onCmdLoad(), ROLoader::openRoutes(), SUMOVehicleParserHelper::parseFlowAttributes(), readDetectorFlows(), GUILoadThread::run(), testclient::TraCITestClient::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 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(), 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(), MSVehicle::moveChecked(), 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(), MSQueueExport::write(), MSEmissionExport::write(), MSFCDExport::write(), MSFullExport::write(), MSXMLRawOut::write(), ODMatrix::write(), SUMOVehicleParameter::writeAs(), RODFDetector::writeEmitterDefinition(), MSNet::writeOutput(), RODFDetector::writeSingleSpeedTrigger(), ROLoader::writeStats(), MSInductLoop::writeTypedXMLOutput(), MSRouteProbe::writeXMLOutput(), MSE2Collector::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSDevice_Vehroutes::writeXMLRoute().