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 | SIMTIME STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep()) |
#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) |
Definition in file SUMOTime.h.
#define ACCEL2DIST | ( | x | ) | (x) |
Definition at line 59 of file SUMOTime.h.
Referenced by MSLCM_DK2008::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(), MSVehicle::executeMove(), MSCFModel_PWag2009::followSpeed(), MSCFModel::freeSpeed(), MSCFModel::getSpeedAfterMaxDecel(), MSLCM_JE2013::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), MSCFModel_Wiedemann::krauss_vsafe(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MSLCM_JE2013::slowDownForBlocked(), MSLCM_LC2013::slowDownForBlocked(), MSCFModel_PWag2009::stopSpeed(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
#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(), TraCIServer::dispatchCommand(), MSE3Collector::enter(), MSCalibrator::execute(), Command_SaveTLSState::execute(), Command_SaveTLSSwitchStates::execute(), Command_SaveTLSSwitches::execute(), MSEventControl::execute(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSVehicle::executeMove(), TrackerValueDesc::getAggregationSpan(), MSInductLoop::getCurrentLength(), MSInductLoop::getCurrentOccupancy(), MSInductLoop::getCurrentPassedNumber(), MSInductLoop::getCurrentSpeed(), MSInductLoop::getCurrentVehicleIDs(), MSVehicle::Influencer::influenceSpeed(), MSE3Collector::leave(), GUIRunThread::makeStep(), MSInstantInductLoop::notifyMove(), MSVehicleContainer::DepartFinder::operator()(), NLTriggerBuilder::parseAndBuildCalibrator(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSNet::postSimStepOutput(), TraCIServerAPI_InductionLoop::processGet(), TraCIServerAPI_Simulation::processGet(), MSVehicle::processNextStop(), ROLoader::processRoutes(), TrackerValueDesc::setAggregationSpan(), MSPersonControl::setDeparture(), MSFrame::setMSGlobals(), MSTLLogicControl::TLSLogicVariants::setStateInstantiatingOnline(), 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.
Referenced by MSVehicle::executeMove().
#define SIMTIME STEPS2TIME(MSNet::getInstance()->getCurrentTimeStep()) |
Definition at line 94 of file SUMOTime.h.
#define SPEED2ACCEL | ( | x | ) | (x) |
Definition at line 63 of file SUMOTime.h.
Referenced by MSVehicle::executeMove(), 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(), MSDevice_BTreceiver::BTreceiverUpdate::execute(), MSVehicle::executeMove(), MSLane::executeMovements(), MSCFModel::freeSpeed(), MSLaneChanger::getRealFollower(), MSLCM_DK2008::informBlocker(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSCFModel_Wiedemann::krauss_vsafe(), MSVehicle::onRemovalFromNet(), MSVehicle::planMoveInternal(), and MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility().
#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 MSLCM_JE2013::_patchSpeed(), MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSDevice_Routing::buildVehicleDevices(), ROLogitCalculator::calculateProbabilities(), MSVehicle::Influencer::changeRequestRemainingSeconds(), 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(), MSDevice_BTreceiver::BTreceiverUpdate::enterRange(), 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(), MSLCM_JE2013::inform(), MSLCM_JE2013::informFollower(), MSLCM_JE2013::informLeader(), MSDevice_BTreceiver::BTreceiverUpdate::leaveRange(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), MSE3Collector::MSE3EntryReminder::notifyMove(), MSInstantInductLoop::notifyMove(), MSInductLoop::notifyMove(), MSE3Collector::MSE3LeaveReminder::notifyMove(), MSLCM_JE2013::patchSpeed(), 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(), MSLCM_JE2013::saveBlockerLength(), MSVehicleControl::scheduleVehicleRemoval(), MSLCM_JE2013::slowDownForBlocked(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::stretchLogic(), time2string(), MSCalibrator::totalWished(), GUIApplicationWindow::updateTimeLCD(), MSDevice_BTreceiver::BTreceiverUpdate::updateVisibility(), MSVehicleControl::vehicleDeparted(), MSLCM_JE2013::wantsChange(), 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_MAX INT_MAX |
Definition at line 44 of file SUMOTime.h.
Referenced by NLDetectorBuilder::createEdgeLaneMeanData(), GUIDialog_Breakpoints::GUIDialog_Breakpoints(), MSCalibrator::init(), SUMORouteLoaderControl::loadNext(), SUMORouteLoader::loadUntil(), SUMOVehicleParserHelper::parseFlowAttributes(), MSVehicle::planMoveInternal(), TraCIServerAPI_Edge::processSet(), TraCIServerAPI_Vehicle::processSet(), and RONet::saveAndRemoveRoutesUntil().
#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(), GUITLLogicPhasesTrackerWindow::drawValues(), MSCalibrator::execute(), MSLane::getLeaderOnConsecutive(), MSLink::getLeaveTime(), NIImporter_SUMO::initTrafficLightLogic(), NIXMLTrafficLightsHandler::initTrafficLightLogic(), MSLane::isInsertionSuccess(), MSTLLogicControl::WAUTSwitchProcedure::isPosAtGSP(), MSPerson::MSPersonStage_Walking::moveToNextEdge(), MSOffTrafficLightLogic::MSOffTrafficLightLogic(), NBOwnTLDef::myCompute(), NBLoadedTLDef::myCompute(), GUIParameterTracker::onCmdChangeAggregation(), NIImporter_VISUM::parse_TrafficLights(), SUMOVehicleParserHelper::parseFlowAttributes(), ODMatrix::parseSingleTime(), SUMOVehicleParserHelper::parseVTypeEmbedded(), MSVehicle::planMoveInternal(), MSPerson::MSPersonStage_Walking::proceed(), MSOffTrafficLightLogic::rebuildPhase(), 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 MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSE3Collector::detectorUpdate(), MSCFModel_IDM::duplicate(), MSCFModel_SmartSK::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSInductLoop::getCurrentOccupancy(), MSCFModel_SmartSK::MSCFModel_SmartSK(), MSDevice_HBEFA::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_SmartSK::updateMyHeadway(), GUIApplicationWindow::updateTimeLCD(), and MSMeanData_Harmonoise::MSLaneMeanDataValues::write().
Definition at line 43 of file SUMOTime.h.
SUMOTime string2time | ( | const std::string & | r | ) |
Definition at line 48 of file SUMOTime.cpp.
References TIME2STEPS.
Referenced by MSDetectorControl::add(), MSDetectorControl::addDetectorAndInterval(), NLHandler::addEdgeLaneMeanData(), NLBuilder::build(), NLBuilder::buildRouteLoaderControl(), NLTriggerBuilder::buildVaporizer(), MSDevice_Routing::buildVehicleDevices(), MSFrame::checkOptions(), MSRouteHandler::closeFlow(), RORouteHandler::closeFlow(), MSRouteHandler::closeVehicle(), RORouteHandler::closeVehicle(), computeRoutes(), GUIDialog_Breakpoints::GUIDialog_Breakpoints(), GUISettingsHandler::loadBreakpoints(), main(), MSNet::MSNet(), MSPhaseDefinition::MSPhaseDefinition(), SUMORouteHandler::myEndElement(), GUIDialog_Breakpoints::onCmdEditTable(), ROLoader::openRoutes(), TraCIServer::openSocket(), TraCIServer::processCommandsUntilSimStep(), readDetectorFlows(), TraCITestClient::run(), GUILoadThread::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 MSVehicleTransfer::addVeh(), 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_Tripinfo::generateOutput(), MSDevice_Vehroutes::generateOutput(), GUICalibrator::getParameterWindow(), GUIVehicle::getParameterWindow(), GUIVehicle::getStopInfo(), GUIApplicationWindow::handleEvent_SimulationEnded(), MSVehicle::Influencer::influenceChangeDecision(), 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(), MSLane::succLinkSec(), MSPerson::MSPersonStage_Walking::tripInfoOutput(), MSPerson::MSPersonStage_Driving::tripInfoOutput(), MSPerson::MSPersonStage_Waiting::tripInfoOutput(), MSEmissionExport::write(), MSFCDExport::write(), MSQueueExport::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().