![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <string>
#include <cmath>
#include <limits>
Go to the source code of this file.
Macros | |
#define | DEBUGOUT(msg) {std::ostringstream oss; oss << msg; std::cout << oss.str();} |
#define | FALLTHROUGH /* do nothing */ |
#define | SUMO_MAX_CONNECTIONS 256 |
the maximum number of connections across an intersection More... | |
#define | UNUSED_PARAMETER(x) ((void)(x)) |
Functions | |
template<typename T > | |
T | ISNAN (T a) |
template<typename T > | |
T | MAX2 (T a, T b) |
template<typename T > | |
T | MAX3 (T a, T b, T c) |
template<typename T > | |
T | MAX4 (T a, T b, T c, T d) |
template<typename T > | |
T | MIN2 (T a, T b) |
template<typename T > | |
T | MIN3 (T a, T b, T c) |
template<typename T > | |
T | MIN4 (T a, T b, T c, T d) |
double | roundBits (double x, int fractionBits) |
round to the given number of mantissa bits beyond the given number More... | |
double | truncate (double x, int fractionBits) |
discrds mantissa bits beyond the given number More... | |
Definition in file StdDefs.h.
#define DEBUGOUT | ( | msg | ) | {std::ostringstream oss; oss << msg; std::cout << oss.str();} |
#define SUMO_MAX_CONNECTIONS 256 |
|
inline |
Definition at line 114 of file StdDefs.h.
Referenced by MSDevice_ElecHybrid::acceleration(), PositionVector::bezier(), GawronCalculator< R, E, V >::calculateProbabilities(), MSDevice_ElecHybrid::consumption(), MSCFModel::maximumSafeFollowSpeed(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), NIImporter_OpenStreetMap::NodesHandler::myStartElement(), MSDevice_ElecHybrid::notifyMove(), and MSTractionSubstation::solveCircuit().
|
inline |
Definition at line 79 of file StdDefs.h.
Referenced by MSRoutingEngine::_initEdgeWeights(), MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_ACC::_v(), MSCFModel_IDM::_v(), MSCFModel_CACC::_v(), MSCFModel_CC::_v(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), HelpersEnergy::acceleration(), MSPModel_Striping::addCrossingVehs(), NBNode::addedLanesRight(), GUIParkingArea::addLotEntry(), PublicTransportEdge< E, L, N, V >::addSchedule(), MSRouteHandler::addStop(), GNERouteHandler::addStop(), MSE2Collector::aggregateOutputValues(), libsumo::Helper::applySubscriptionFilters(), NBEdge::assignInternalLaneLength(), AStarRouter< E, V >::AStarRouter(), IDSupplier::avoid(), MSBaseVehicle::basePos(), NBNode::bezierControlPoints(), MSTransportableControl::boardAnyWaiting(), NIVisumTL::build(), GUIViewTraffic::buildColorRainbow(), GNEViewNet::buildColorRainbow(), RODFNet::buildEdgeFlowMap(), NBEdge::buildInnerEdges(), GNETLSEditorFrame::buildInternalLanes(), MSDevice_Routing::buildVehicleDevices(), MSDevice_Taxi::buildVehicleDevices(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), RGBColor::changedBrightness(), MELoop::changeSegment(), MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::checkBlockingVehicles(), MSLaneChanger::checkChange(), NBOwnTLDef::checkCustomCrossingIndices(), GUIPolygon::checkDraw(), MSDevice_ToC::checkDynamicToC(), NBEdgeCont::checkGrade(), MSVehicle::checkLinkLeader(), MSFrame::checkOptions(), MSE2Collector::checkPositioning(), MSVehicle::checkReversal(), MSLCM_SL2015::checkStrategicChange(), MSVehicle::collisionStopTime(), MSLCM_SL2015::commitManoeuvre(), NBNodeShapeComputer::compute(), Bresenham::compute(), HelpersHBEFA::compute(), HelpersHBEFA3::compute(), HelpersPHEMlight::compute(), NBNetBuilder::compute(), NBTrafficLightDefinition::computeBrakingTime(), MSVehicleType::computeChosenSpeedDeviation(), MSDispatch::computeDetourTime(), MSDispatch_Greedy::computeDispatch(), MSDispatch_GreedyClosest::computeDispatch(), MSLink::computeDistToDivergence(), MSPModel_NonInteracting::PState::computeDuration(), MSPModel_NonInteracting::CState::computeDuration(), NBOwnTLDef::computeEscapeTime(), NBPTStop::computeExtent(), MSLCM_SL2015::computeGapFactor(), MSDevice_SSM::computeGlobalMeasures(), NBNode::computeLanes2Lanes(), NBOwnTLDef::computeLogicAndConts(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeTypeComputer::computeNodeTypes(), MSLaneChanger::computeOvertakingTime(), computeRoutes(), GUIBaseVehicle::computeSeats(), MSLCM_LC2013::computeSpeedLat(), MSLCM_SL2015::computeSpeedLat(), MSCFModel_W99::computeThresholds(), libsumo::Helper::convertCartesianToRoadMap(), MSSOTLTrafficLightLogic::countVehicles(), NGRandomNetBuilder::createNewNode(), GNENet::createRoundabout(), MSCFModel_Daniel1::dawdle(), MSCFModel_KraussOrig1::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_Krauss::dawdle2(), MSCFModel_KraussX::dawdleX(), MSDevice_SSM::determineTTCandDRAC(), MSDispatch_GreedyShared::dispatch(), MSDispatch_RouteExtension::dispatch(), MSCFModel::distAfterTime(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawVehicleBlinker(), GUIVehicle::drawBestLanes(), GNELane::drawDirectionIndicators(), GUILane::drawDirectionIndicators(), GUIBusStop::drawGL(), GUILane::drawGL(), GUIOverheadWire::drawGL(), GNEVehicle::drawGL(), GUILane::drawLinkRule(), GUIVehicle::drawRouteHelper(), GUITLLogicPhasesTrackerWindow::drawValues(), MSCFModel::estimateSpeedAfterDistance(), MSVehicle::estimateTimeToNextStop(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), NBEdge::expandableBy(), NBEdge::extendGeometryAtNode(), MSCFModel::finalizeSpeed(), MSCFModel_CC::finalizeSpeed(), MSCFModel_Daniel1::finalizeSpeed(), MSRailSignal::DriveWay::findFlankProtection(), MSCFModel_Krauss::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_Rail::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_W99::followSpeed(), MSCFModel::freeSpeed(), MSCFModel_Rail::freeSpeed(), MSCFModel_IDM::freeSpeed(), libsumo::Helper::fuseLaneCoverage(), MSVehicle::Influencer::gapControlSpeed(), MSCFModel::gapExtrapolation(), MSDevice_Emissions::generateOutput(), NBEdgeCont::generateStreetSigns(), NBNode::geometryLike(), GUIMessageWindow::getActiveStringObject(), MSLCM_LC2013::getAssumedDecelForLaneChangeDuration(), GUIPerson::getCenteringBoundary(), MSLaneChanger::getColumnleader(), MEVehicle::getConservativeSpeed(), MSLane::getCriticalLeader(), MSEdge::getCurrentTravelTime(), SUMOVTypeParameter::getDefaultEmergencyDecel(), NBNodeShapeComputer::getDefaultRadius(), MSVehicle::getDeltaPos(), ROVehicle::getDepartureTime(), MSDevice_ToC::getDynamicMRMProbability(), MSRoutingEngine::getEffort(), MSRoutingEngine::getEffortBike(), GUIVisualizationSizeSettings::getExaggeration(), NBEdge::getFinalLength(), MSLane::getFollowersOnConsecutive(), GUISUMOAbstractView::getFPS(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), MSParkingArea::getLastFreePosWithReservation(), MSLCM_SL2015::getLateralDrift(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLaneChangerSublane::getLeaders(), MSLane::getLeadersOnConsecutive(), MSLink::getLeaveTime(), GNELane::getLengthGeometryFactor(), MSActuatedTrafficLightLogic::getLinkMinDuration(), PositionVector::getMaxGrade(), NBLoadedSUMOTLDef::getMaxIndex(), MSCFModel::getMinimalArrivalTime(), NIImporter_OpenStreetMap::getNeighboringNodes(), MESegment::getNextInsertionTime(), MSInductLoop::getOccupancy(), MSLane::getOppositePos(), PositionVector::getOverlapWith(), MSDevice_SSM::getParameter(), PedestrianEdge< E, L, N, V >::getPartialLength(), MSStoppingPlace::getPersonsAbreast(), NBNode::getReduction(), GUIVehicle::getRightSublaneOnEdge(), MSLCHelper::getRoundaboutDistBonus(), MSVehicle::getSafeFollowSpeed(), MSCFModel_CACC::getSecureGap(), MSCFModel_IDM::getSecureGap(), MSCFModel_Wiedemann::getSecureGap(), MSCFModel::getSecureGap(), NBNodeShapeComputer::getSmoothCorner(), MSCFModel::getSpeedAfterMaxDecel(), MSVehicle::getStopDelay(), LIBSUMO_NAMESPACE::Vehicle::getStops(), MSLeaderInfo::getSubLanes(), MSLane::getSurroundingVehicles(), PedestrianEdge< E, L, N, V >::getTravelTime(), ROEdge::getTravelTime(), RailwayRouter< E, V >::getTravelTimeStatic(), MSPModel_Striping::getVehicleObstacles(), GUISUMOAbstractView::getViewportEditor(), MEVehicle::getWaitingTime(), MSLink::getZipperSpeed(), NBLoadedSUMOTLDef::guessMinMaxDuration(), NBEdgeCont::guessRoundabouts(), GUIBusStop::GUIBusStop(), GUIJunctionWrapper::GUIJunctionWrapper(), MSLane::handleCollisionBetween(), MSVehicle::Influencer::implicitSpeedRemote(), MSVehicle::Influencer::influenceSpeed(), MSLCM_DK2008::informBlocker(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_LC2013::informLeader(), MSActuatedTrafficLightLogic::init(), MSLCM_LC2013::initDerivedParameters(), MSLCM_SL2015::initDerivedParameters(), MSTrafficLightLogic::initMesoTLSPenalties(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), ROEdge::initPriorityFactor(), NIImporter_OpenStreetMap::insertEdge(), MSCFModel_IDM::insertionFollowSpeed(), MSCFModel::interactionGap(), MSCFModel_IDM::interactionGap(), MSLane::isInsertionSuccess(), NBLoadedSUMOTLDef::joinLogic(), NBEdgeCont::joinTramEdges(), MSLCM_SL2015::keepLatGap(), LandmarkLookupTable< E, V >::LandmarkLookupTable(), MSTransportableControl::loadAnyWaiting(), GUINet::loadEdgeData(), SUMORouteLoaderControl::loadNext(), GUIDialog_ViewSettings::loadWindowSize(), LandmarkLookupTable< E, V >::lowerBound(), MSE2Collector::makeMoveNotification(), MAX3(), MAX4(), MSCFModel::maximumSafeFollowSpeed(), MSCFModel::maximumSafeStopSpeedBallistic(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel_Rail::minNextSpeed(), MSCFModel::minNextSpeed(), MSCFModel_CC::minNextSpeed(), MSCFModel::minNextSpeedEmergency(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), MSDevice_ToC::MRMExecutionStep(), MSParkingArea::MSParkingArea(), NIImporter_SUMO::myEndElement(), GUINet::DiscoverAttributes::myStartElement(), NIImporter_OpenDrive::myStartElement(), MESegment::newArrival(), MSTriggeredRerouter::notifyEnter(), MSE2Collector::notifyLeave(), MSDevice_ElecHybrid::notifyMove(), MSDevice_Bluelight::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSPModel_Striping::numStripes(), GNETLSEditorFrame::onCmdPhaseCreate(), GNETLSEditorFrame::onCmdPhaseDelete(), GNEFrame::openHelpAttributesDialog(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), MSPModel_Striping::PState::otherStripe(), MSLCM_LC2013::overtakeDistance(), NLTriggerBuilder::parseAndBuildStoppingPlace(), MSCFModel::passingTime(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), NBRampsComputer::patchRampGeometry(), MSLCM_DK2008::patchSpeed(), MSLCM_LC2013::patchSpeed(), MSLCM_SL2015::patchSpeed(), MSCFModel_Krauss::patchSpeedBeforeLC(), MSCFModel_KraussOrig1::patchSpeedBeforeLC(), MSVehicle::planMoveInternal(), MESegment::prepareDetectorForWriting(), MSLCM_LC2013::prepareStep(), MSLCM_SL2015::prepareStep(), MSDevice_Taxi::prepareStop(), SUMOVehicleParserHelper::processActionStepLength(), MSE2Collector::processJams(), MSVehicle::processNextStop(), NBEdgeCont::processSplits(), MSVehicle::processTraCISpeedControl(), MSDelayBasedTrafficLightLogic::proposeProlongation(), NBNodeCont::pruneLongEdges(), GUIDialog_ViewSettings::rebuildList(), MSEdge::recalcCache(), MESegment::receive(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenStreetMap::reconstructLayerElevation(), MSCalibrator::remainingVehicleCapacity(), NBEdge::replaceInConnections(), NIImporter_DlrNavteq::TimeRestrictionsHandler::report(), NBEdgeCont::retrievePossiblySplit(), NIImporter_OpenDrive::sanitizeWidths(), MSLCM_SL2015::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSE2Collector::selectLanes(), MESegment::send(), MSStageTrip::setArrived(), MSSimpleDriverState::setAwareness(), MSDevice_ToC::setAwareness(), NIImporter_OpenDrive::setLaneAttributes(), MSFrame::setMSGlobals(), GUILane::setMultiColor(), GNELane::setMultiColor(), MSParkingArea::setNumAlternatives(), MSLCM_SL2015::setOwnState(), MSVehicle::setPreviousSpeed(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), MSLink::setRequestInformation(), MESegment::setSpeedForQueue(), GUIMainWindow::setWindowSizeAndPos(), GNEEdge::smoothShape(), MSTractionSubstation::solveCircuit(), NBEdgeCont::splitAt(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSPModel_Striping::PState::stripe(), MELoop::teleportVehicle(), time2string(), NGNet::toNB(), MSActuatedTrafficLightLogic::trySwitch(), MSDelayBasedTrafficLightLogic::trySwitch(), AGFreeTime::typeFromHomeDay(), AGFreeTime::typeFromHomeEvening(), AGFreeTime::typeFromHomeNight(), PolygonDynamics::update(), MSVehicle::updateBestLanes(), MSRailCrossing::updateCurrentPhase(), MSLCM_SL2015::updateGaps(), GNEConnection::updateGeometry(), GNEJunction::updateGeometryAfterNetbuild(), CHBuilder< E, V >::CHInfo::updateLevel(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSimpleDriverState::updateReactionTime(), MSSwarmTrafficLightLogic::updateSensitivities(), MSVehicle::updateState(), NIImporter_OpenStreetMap::usableType(), MSVehicleControl::vehicleDeparted(), FXWorkerThread::Pool::waitAll(), MSPModel_Striping::PState::walk(), MSPerson::MSPersonStage_Walking::walkDistance(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSVehicle::workOnMoveReminders(), MSMeanData_Net::MSLaneMeanDataValues::write(), ODMatrix::write(), RODFDetectorCon::writeEmitters(), NWWriter_OpenDrive::writeGeomLines(), NWWriter_OpenDrive::writeGeomPP3(), NWWriter_OpenDrive::writeGeomSmooth(), NWWriter_OpenDrive::writeInternalEdge(), NWWriter_SUMO::writeInternalEdges(), MSQueueExport::writeLane(), NWWriter_OpenDrive::writeNormalEdge(), NWWriter_OpenDrive::writeRoadObjects(), RODFDetector::writeSingleSpeedTrigger(), MSE2Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), and MSDevice_Taxi::~MSDevice_Taxi().
|
inline |
Definition at line 93 of file StdDefs.h.
References MAX2().
Referenced by HelpersEnergy::acceleration(), libsumo::Helper::applySubscriptionFilters(), MELoop::checkCar(), MSActuatedTrafficLightLogic::duration(), NBRampsComputer::fulfillsRampConstraints(), MSCFModel::getMinimalArrivalTime(), MESegment::getNextInsertionTime(), MSLink::getZipperSpeed(), MSStageWaiting::proceed(), MSDelayBasedTrafficLightLogic::trySwitch(), and MSLCM_SL2015::updateGaps().
|
inline |
|
inline |
Definition at line 73 of file StdDefs.h.
Referenced by MSRoutingEngine::_initEdgeWeights(), MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::DriveProcessItem::adaptLeaveSpeed(), MSLCM_LC2013::adaptSpeedToPedestrians(), MSVehicle::adaptToLeader(), MSPModel_Striping::addCrossingVehs(), NBNode::addedLanesRight(), GNENet::addRestrictedLane(), MSBaseVehicle::addStop(), NBEdge::addStraightConnections(), MSMeanData_Net::MSLaneMeanDataValues::addTo(), MSLCM_LC2013::anticipateFollowSpeed(), MSDevice_ToC::awarenessRecoveryStep(), MSBaseVehicle::basePos(), NBNode::bezierControlPoints(), GUIViewTraffic::buildColorRainbow(), GNEViewNet::buildColorRainbow(), NBEdge::buildInnerEdges(), GNETLSEditorFrame::buildInternalLanes(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), GNENetHelper::PathCalculator::calculateReachability(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), RGBColor::changedBrightness(), MSLaneChanger::changeOpposite(), MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::checkBlockingVehicles(), MELoop::checkCar(), MSLaneChanger::checkChange(), NBOwnTLDef::checkCustomCrossingIndices(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), MSVehicle::checkLinkLeader(), MSE2Collector::checkPositioning(), MSLink::checkWalkingAreaFoe(), MSLCM_SL2015::commitFollowSpeed(), Bresenham::compute(), AStarRouter< E, V >::compute(), NBNetBuilder::compute(), NBEdge::computeAngle(), MSDispatch_GreedyClosest::computeDispatch(), MSDevice_SSM::computeDRAC(), NBEdge::computeEdgeShape(), NBPTStop::computeExtent(), NBNode::computeLanes2Lanes(), MSParkingArea::computeLastFreePos(), NBOwnTLDef::computeLogicAndConts(), computeRoutes(), MSLCM_SL2015::computeSpeedGain(), MSLCM_LC2013::computeSpeedLat(), MSLCM_SL2015::computeSpeedLat(), GNENet::createRoundabout(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), MSDevice_SSM::determineTTCandDRAC(), GUIVehicle::drawAction_drawCarriageClass(), GNELane::drawDirectionIndicators(), GUILane::drawDirectionIndicators(), GNEEdge::drawEdgeGeometryPoints(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIOverheadWire::drawGL(), GUIParkingArea::drawGL(), GNEVehicle::drawGL(), GNELane::drawMarkings(), GUILane::drawMarkings(), GUIBaseVehicle::drawOnPos(), GNEDemandElement::drawPersonPlanPartialLane(), GNELane::drawStartEndShapePoints(), MSActuatedTrafficLightLogic::duration(), MSDevice_SSM::estimateConflictTimes(), MSVehicle::estimateLeaveSpeed(), MEVehicle::estimateLeaveSpeed(), MSCFModel::estimateSpeedAfterDistance(), MSVehicle::estimateTimeToNextStop(), MSVehicle::executeMove(), NBEdge::extendGeometryAtNode(), MSCFModel::finalizeSpeed(), MSCFModel_Daniel1::finalizeSpeed(), NBEdge::firstIntersection(), MSCFModel_ACC::followSpeed(), MSCFModel_CACC::followSpeed(), MSCFModel_Daniel1::followSpeed(), MSCFModel_Kerner::followSpeed(), MSCFModel_Krauss::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_Rail::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_W99::followSpeed(), MSLane::freeInsertion(), MSCFModel_IDM::freeSpeed(), MSCFModel_Wiedemann::fullspeed(), libsumo::Helper::fuseLaneCoverage(), MSActuatedTrafficLightLogic::gapControl(), MSVehicle::Influencer::gapControlSpeed(), MSCFModel::gapExtrapolation(), MSLane::getBruttoOccupancy(), GUIBaseVehicle::getContainerPosition(), NBNodeShapeComputer::getDefaultRadius(), MSEdge::getDepartLane(), MSEdge::getDepartPosBound(), MSDevice_ToC::getDynamicMRMProbability(), MSStageDriving::getEdgePos(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), MESegment::getEntryBlockTimeSeconds(), MSE2Collector::getEstimateQueueLength(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLeadersOnConsecutive(), LIBSUMO_NAMESPACE::Lane::getLinks(), MSLane::getMaximumBrakeDist(), GeomHelper::getMinAngleDiff(), MSActuatedTrafficLightLogic::getMinimumMinDuration(), ROEdge::getMinimumTravelTime(), NBNodesEdgesSorter::crossing_by_junction_angle_sorter::getMinRank(), HelpersPHEMlight::getModifiedAccel(), NIImporter_OpenStreetMap::getNeighboringNodes(), MSLane::getNettoOccupancy(), ROEdge::getNoiseEffort(), MSInductLoop::getOccupancy(), MSDevice_SSM::getParameter(), MSPModel_NonInteracting::CState::getPosition(), MSVehicle::getSafeFollowSpeed(), GUIBaseVehicle::getSeatPosition(), NBEdge::getShapeEndAngle(), NBEdge::getShapeStartAngle(), MSLeaderInfo::getSublaneBorders(), MSLeaderInfo::getSubLanes(), MSLane::getSurroundingVehicles(), PublicTransportEdge< E, L, N, V >::getTravelTime(), ROEdge::getTravelTime(), MSEdge::getTravelTimeAggregated(), MSLane::getVehicleMaxSpeed(), MSPModel_Striping::getVehicleObstacles(), GUISUMOAbstractView::getViewportEditor(), MSLink::getZipperSpeed(), NBNodeCont::guessTLs(), MSLane::handleCollisionBetween(), MSVehicle::handleCollisionStop(), MESegment::hasSpaceFor(), libsumo::POI::highlight(), LIBSUMO_NAMESPACE::Vehicle::highlight(), MSVehicle::Influencer::implicitSpeedRemote(), MSVehicle::Influencer::influenceSpeed(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeaders(), MSActuatedTrafficLightLogic::init(), MSTrafficLightLogic::initMesoTLSPenalties(), ROEdge::initPriorityFactor(), MSPModel_Striping::initWalkingAreaPaths(), MSCFModel_CACC::insertionFollowSpeed(), MSCFModel::insertionStopSpeed(), MSLane::insertVehicle(), MSCFModel::interactionGap(), MSLCM_SL2015::keepLatGap(), MSVehicle::keepStopping(), MSLane::lastInsertion(), SUMORouteLoaderControl::loadNext(), MESegment::loadState(), GUIDialog_ViewSettings::loadWindowSize(), MSE2Collector::makeMoveNotification(), MSCFModel::maximumSafeFollowSpeed(), MSCFModel::maxNextSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MIN3(), MIN4(), LIBSUMO_NAMESPACE::Person::moveToXY(), LIBSUMO_NAMESPACE::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), MSEdgeControl::MSEdgeControl(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NBEdge::NBEdge(), MESegment::newArrival(), TraCIServer::nextTargetTime(), MSDevice_Battery::notifyMove(), MSDevice_Bluelight::notifyMove(), MSMeanData::MeanDataValues::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), GUIViewTraffic::onCmdShowReachability(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), MSPModel_Striping::PState::otherStripe(), RORouteHandler::parseGeoEdges(), MSCFModel::passingTime(), NBRampsComputer::patchRampGeometry(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSDevice_Taxi::prepareStop(), MSDevice_SSM::processEncounters(), MSVehicle::processLinkApproaches(), ROLoader::processRoutes(), NBNodeCont::pruneClusterFringe(), MSEdge::recalcCache(), MESegment::receive(), NBEdge::reinit(), NBEdge::replaceInConnections(), NIImporter_DlrNavteq::TimeRestrictionsHandler::report(), GUIVehicle::rerouteDRTStop(), ROMAAssignments::resetFlows(), MSDevice_ToC::responseTimeMean(), MSLane::safeInsertionSpeed(), RONet::saveAndRemoveRoutesUntil(), ROPerson::PersonTrip::saveAsXML(), MSStageTrip::setArrived(), MSDevice_ToC::setAwareness(), NIImporter_OpenDrive::setLaneAttributes(), MSLCM_SL2015::setOwnState(), NBEdgePriorityComputer::setPriorityJunctionPriorities(), MSLink::setRequestInformation(), MSDevice_ToC::setState(), GUIMainWindow::setWindowSizeAndPos(), NBEdge::shiftPositionAtNode(), NBEdge::shortenGeometryAtNode(), PositionVector::smoothedZFront(), GNEEdge::smoothShape(), NBEdgeCont::splitAt(), NBEdge::startShapeAt(), MSCFModel_Rail::stopSpeed(), MSCFModel_W99::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), MSCFModel_ACC::stopSpeed(), MSCFModel_CACC::stopSpeed(), MSCFModel_Daniel1::stopSpeed(), MSCFModel_Kerner::stopSpeed(), MSCFModel_Krauss::stopSpeed(), MSCFModel_KraussOrig1::stopSpeed(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSPModel_Striping::PState::stripe(), time2string(), MSDelayBasedTrafficLightLogic::trySwitch(), AGFreeTime::typeFromHomeNight(), MSVehicle::updateBestLanes(), MSLCM_SL2015::updateExpectedSublaneSpeeds(), MSLCM_SL2015::updateGaps(), GNEConnection::updateGeometry(), MSSwarmTrafficLightLogic::updatePheromoneLevels(), MSSwarmTrafficLightLogic::updateSensitivities(), MSVehicleControl::vehicleDeparted(), MSCFModel_KraussOrig1::vsafe(), FXWorkerThread::Pool::waitAll(), MSPModel_Striping::PState::walk(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), NWWriter_OpenDrive::writeGeomSmooth(), NWWriter_OpenDrive::writeRoadObjects(), MSE3Collector::writeXMLOutput(), MSInductLoop::writeXMLOutput(), and MSMeanData::writeXMLOutput().
|
inline |
Definition at line 86 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), NBNode::addedLanesRight(), NBNodeShapeComputer::badIntersection(), MSLCM_SL2015::commitManoeuvre(), MSLink::computeDistToDivergence(), MSCFModel::finalizeSpeed(), MSCFModel_Daniel1::finalizeSpeed(), MSLink::getZipperSpeed(), MSTrafficLightLogic::init(), MSLCM_SL2015::updateGaps(), and MSPModel_Striping::PState::walk().
|
inline |
Definition at line 100 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), GLHelper::drawBoxLines(), and MSMeanData::MeanDataValues::notifyMove().
double roundBits | ( | double | x, |
int | fractionBits | ||
) |
round to the given number of mantissa bits beyond the given number
Definition at line 40 of file StdDefs.cpp.
double truncate | ( | double | x, |
int | fractionBits | ||
) |
discrds mantissa bits beyond the given number
Definition at line 36 of file StdDefs.cpp.
|
extern |
global utility flags for debugging
Definition at line 31 of file StdDefs.cpp.
Referenced by MSCFModel_IDM::_v(), MSPModel_Striping::addCrossingVehs(), NBRailwayTopologyAnalyzer::allBroken(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), NBNode::buildCrossings(), NIImporter_OpenDrive::OpenDriveLaneSection::buildSpeedChanges(), NBNode::buildWalkingAreas(), NBNode::checkCrossing(), MSVehicle::checkLinkLeader(), MSVehicle::executeMove(), NIImporter_OpenDrive::findWidthSplit(), MSCFModel_IDM::followSpeed(), NBEdge::getCrossingAngle(), NBNode::getEdgesSortedByAngleAtNodeCenter(), MSLane::getFollowersOnConsecutive(), MSLane::getLastVehicleInformation(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), NBNode::guessCrossings(), NBEdgeCont::guessRoundabouts(), MESegment::isOpen(), NBNodeCont::joinJunctions(), MSPModel_Striping::PState::mergeObstacles(), MSPModel_Striping::moveInDirectionOnLane(), MSLink::opened(), MSVehicle::processLinkApproaches(), NBNodeCont::pruneClusterFringe(), NBNodeCont::pruneLongEdges(), NBNodeCont::pruneSlipLaneNodes(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenDrive::revisitLaneSections(), NIImporter_OpenDrive::sanitizeWidths(), GUIVehicle::selectBlockingFoes(), NBEdge::setNodeBorder(), and NIImporter_OpenDrive::splitMinWidths().
|
extern |
Definition at line 32 of file StdDefs.cpp.
Referenced by MSLCM_SL2015::_patchSpeed(), MSLCM_SL2015::_wantsChangeSublane(), MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::checkBlockingVehicles(), MSLCM_SL2015::checkStrategicChange(), MSAbstractLaneChangeModel::checkTraCICommands(), MSLCM_SL2015::commitFollowSpeed(), MSLCM_SL2015::commitManoeuvre(), MSCFModel::followSpeedTransient(), MSLCM_SL2015::inform(), MSLCM_SL2015::informFollower(), MSLCM_SL2015::informLeader(), MSLCM_SL2015::keepLatGap(), MSLCM_SL2015::patchSpeed(), MSLCM_SL2015::saveBlockerLength(), MSLCM_SL2015::slowDownForBlocked(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateGaps(), and MSLCM_SL2015::wantsChangeSublane().
|
extern |
Definition at line 33 of file StdDefs.cpp.
Referenced by MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::getUpstreamVehicles(), and MSDevice_SSM::getVehiclesOnJunction().
|
extern |
Definition at line 34 of file StdDefs.cpp.
Referenced by MSRailSignal::DriveWay::buildRoute(), MSRailSignal::DriveWay::conflictLaneOccupied(), MSRailSignal::constraintsAllow(), MSRailSignal::DriveWay::deadlockLaneOccupied(), MSRailSignal::DriveWay::findProtection(), MSRailSignal::DriveWay::hasLinkConflict(), MSRailSignal::DriveWay::reserve(), and MSRailSignal::updateCurrentPhase().
|
extern |
Definition at line 27 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), GUITLLogicPhasesTrackerWindow::drawValues(), elapsedMs2string(), and time2string().
|
extern |
the precision for floating point outputs
Definition at line 25 of file StdDefs.cpp.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), NBEdge::assignInternalLaneLength(), SystemFrame::checkOptions(), MSVehicle::checkReversal(), MSCFModel::finalizeSpeed(), MSDevice_Emissions::generateOutput(), MSLane::getLeader(), MsgHandler::informf(), libsumo::Helper::moveToXYMap(), NIImporter_OpenDrive::myStartElement(), RORouteHandler::parseGeoEdges(), MSVehicle::planMove(), MSNet::postSimStepOutput(), MSDevice_Tripinfo::printStatistics(), ROPerson::PersonTrip::saveAsXML(), ROVehicle::saveAsXML(), time2string(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSXMLRawOut::write(), MSEmissionExport::write(), NWWriter_OpenDrive::writeInternalEdge(), NWWriter_OpenDrive::writeNormalEdge(), MSDevice_SSM::writeOutConflict(), NWWriter_OpenDrive::writeRoadObjects(), and MSDevice_Tripinfo::writeStatistics().
|
extern |
Definition at line 26 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), MSVTypeProbe::execute(), GNEPOI::getAttribute(), GNEPoly::getAttribute(), GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), RORouteHandler::parseGeoEdges(), PCPolyContainer::save(), ROPerson::PersonTrip::saveAsXML(), ROVehicle::saveAsXML(), GUISUMOAbstractView::updatePositionInformation(), MSFCDExport::write(), NWWriter_SUMO::writeConnection(), GeoConvHelper::writeLocation(), NWWriter_XML::writeNodes(), MSDevice_SSM::writeOutConflict(), NWWriter_XML::writeShape(), MSFCDExport::writeTransportable(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
|
extern |
Definition at line 28 of file StdDefs.cpp.
Referenced by LIBSUMO_NAMESPACE::Simulation::load(), main(), and SUMOVehicleParserHelper::parseVTypeEmbedded().
|
extern |
Definition at line 29 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), computeRoutes(), IntermodalRouter< E, L, N, V >::createNet(), MSRoutingEngine::getEffortExtra(), IntermodalEdge< E, L, N, V >::getTravelTimeStaticRandomized(), ROEdge::getTravelTimeStaticRandomized(), MSRoutingEngine::initRouter(), and PedestrianRouter< E, L, N, V >::PedestrianRouter().
const double INVALID_DOUBLE = std::numeric_limits<double>::max() |
Definition at line 62 of file StdDefs.h.
Referenced by MSDevice_SSM::Encounter::add(), MSMeanData_Net::MSLaneMeanDataValues::addTo(), PositionVector::angleAt2D(), PositionVector::beginEndAngle(), MSDevice_SSM::checkConflictEntryAndExit(), MSDevice_SSM::classifyEncounter(), MSDevice_SSM::computeDRAC(), MSDevice_SSM::computeGlobalMeasures(), MSDevice_SSM::computeSSMs(), MSDevice_SSM::computeTTC(), MSDevice_SSM::createEncounters(), MSDevice_SSM::determinePET(), MSDevice_SSM::determineTTCandDRAC(), MSCFModel::estimateArrivalTime(), MSDevice_SSM::estimateConflictTimes(), MSVehicle::estimateTimeToNextStop(), MSDevice_SSM::flushConflicts(), MSDevice_SSM::flushGlobalMeasures(), MSDevice_SSM::getDetectionRange(), MSDevice_SSM::getExtraTime(), GUIPerson::getGUIAngle(), MSLink::getLengthBeforeCrossing(), MSLink::getLengthsBeforeCrossing(), GUIPerson::getNaviDegree(), MSDevice_SSM::getParameter(), GUIPerson::getStageArrivalPos(), MSBaseVehicle::getStopArrivalDelay(), MSVehicle::getStopArrivalDelay(), LIBSUMO_NAMESPACE::Vehicle::getStopArrivalDelay(), PositionVector::nearest_offset_to_point25D(), PositionVector::nearest_offset_to_point2D(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSDevice_SSM::processEncounters(), MSDevice_SSM::qualifiesAsConflict(), MSMeanData_Net::MSLaneMeanDataValues::reset(), PositionVector::rotationAtOffset(), PositionVector::slopeDegreeAtOffset(), MSDevice_SSM::updatePassedEncounter(), and MSDevice_SSM::writeOutConflict().
const double NETWORK_VERSION = 1.6 |
version for written networks and default version for loading
Definition at line 65 of file StdDefs.h.
Referenced by NWWriter_XML::writeEdgesAndConnections(), NWWriter_XML::writeJoinedJunctions(), NWWriter_SUMO::writeNetwork(), NWWriter_XML::writeNodes(), NWWriter_XML::writeTrafficLights(), and NWWriter_XML::writeTypes().
const double SUMO_const_halfLaneAndOffset = SUMO_const_halfLaneWidth + SUMO_const_laneOffset |
Definition at line 52 of file StdDefs.h.
Referenced by NBEdgeCont::processSplits().
const double SUMO_const_halfLaneWidth = SUMO_const_laneWidth / 2 |
Definition at line 49 of file StdDefs.h.
Referenced by GUILane::drawGL().
const double SUMO_const_haltingSpeed = (double) 0.1 |
the speed threshold at which vehicles are considered as halting
Definition at line 60 of file StdDefs.h.
Referenced by MSLCM_LC2013::_wantsChange(), MSPModel_Striping::addCrossingVehs(), NBEdgeCont::appendRailwayTurnarounds(), NBEdge::appendTurnaround(), GUIApplicationWindow::checkGamingEvents(), MSVehicle::checkLinkLeader(), MSLCM_SL2015::checkStrategicChange(), MSVehicleControl::getHaltingVehicleNo(), MSStoppingPlace::getLastFreePos(), LIBSUMO_NAMESPACE::Edge::getLastStepHaltingNumber(), LIBSUMO_NAMESPACE::Lane::getLastStepHaltingNumber(), MSCFModel::getMinimalArrivalTime(), MSVehicle::getSafeFollowSpeed(), MSVehicle::getSpaceTillLastStanding(), MSLane::isInsertionSuccess(), MSDevice_Tripinfo::notifyMove(), MSVehicle::processLinkApproaches(), MSVehicle::processNextStop(), MSVehicle::setBrakingSignals(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_SL2015::slowDownForBlocked(), MSLCM_SL2015::updateCFRelated(), MSVehicle::updateWaitingTime(), MSPModel_Striping::PState::walk(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
const double SUMO_const_laneMarkWidth = (double) 0.1 |
Definition at line 53 of file StdDefs.h.
Referenced by GUILane::drawGL(), GNELane::drawMarkings(), and GUILane::drawMarkings().
const double SUMO_const_laneOffset = (double) 0 |
Definition at line 48 of file StdDefs.h.
Referenced by NBEdge::computeLaneShapes(), and NBEdge::shiftPositionAtNode().
const double SUMO_const_laneWidth = (double) 3.2 |
Definition at line 47 of file StdDefs.h.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), NLHandler::addLane(), NBNode::buildCrossings(), NBNode::buildWalkingAreas(), MSLCM_SL2015::checkStrategicChange(), NBEdge::computeLaneShapes(), NBNodeShapeComputer::computeNodeShapeDefault(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), GUIVehicle::drawAction_drawCarriageClass(), GUILane::drawArrows(), GUILane::drawGL(), GNELane::drawLaneAsRailway(), NBNodeCont::generateNodeClusters(), MSAbstractLaneChangeModel::getAngleOffset(), GUIBusStop::getCenteringBoundary(), NBEdge::getLaneWidth(), GUISUMOAbstractView::getObjectsInBoundary(), MSVehicle::getPosition(), GUISUMOAbstractView::makeSnapshot(), NBRampsComputer::moveRampRight(), libsumo::Helper::moveToXYMap(), MSParkingArea::MSParkingArea(), NBNodeCont::pruneClusterFringe(), NBNodeCont::pruneLongEdges(), NBPTLine::setEdges(), and NIImporter_OpenStreetMap::usableType().
const double SUMO_const_laneWidthAndOffset = SUMO_const_laneWidth + SUMO_const_laneOffset |
Definition at line 51 of file StdDefs.h.
Referenced by NBEdge::getMaxLaneOffset(), and NBEdgeCont::processSplits().
const double SUMO_const_quarterLaneWidth = SUMO_const_laneWidth / 4 |
const double SUMO_const_waitingContainerWidth = 2.4 |
Definition at line 56 of file StdDefs.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), and GUIBaseVehicle::drawOnPos().
const double SUMO_const_waitingPersonDepth = 0.67 |
Definition at line 55 of file StdDefs.h.
Referenced by MSStoppingPlace::getWaitPosition(), and GUIBusStop::GUIBusStop().
const double SUMO_const_waitingPersonWidth = 0.8 |
Definition at line 54 of file StdDefs.h.
Referenced by GUIVehicle::drawAction_drawCarriageClass(), GUIBaseVehicle::drawOnPos(), MSStoppingPlace::getPersonsAbreast(), and MSStoppingPlace::getWaitingPositionOnLane().