![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include <string>
#include <cmath>
#include <limits>
Go to the source code of this file.
Macros | |
#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... | |
Variables | |
bool | gDebugFlag1 |
global utility flags for debugging More... | |
bool | gDebugFlag2 |
bool | gDebugFlag3 |
bool | gDebugFlag4 |
bool | gHumanReadableTime |
int | gPrecision |
the precision for floating point outputs More... | |
int | gPrecisionGeo |
bool | gSimulation |
double | gWeightsRandomFactor |
const double | INVALID_DOUBLE = std::numeric_limits<double>::max() |
const double | NETWORK_VERSION = 1.3 |
version for written networks and default version for loading More... | |
const double | SUMO_const_halfLaneAndOffset = SUMO_const_halfLaneWidth + SUMO_const_laneOffset |
const double | SUMO_const_halfLaneWidth = SUMO_const_laneWidth / 2 |
const double | SUMO_const_haltingSpeed = (double) 0.1 |
the speed threshold at which vehicles are considered as halting More... | |
const double | SUMO_const_laneMarkWidth = (double) 0.1 |
const double | SUMO_const_laneOffset = (double) 0 |
const double | SUMO_const_laneWidth = (double) 3.2 |
const double | SUMO_const_laneWidthAndOffset = SUMO_const_laneWidth + SUMO_const_laneOffset |
const double | SUMO_const_quarterLaneWidth = SUMO_const_laneWidth / 4 |
const double | SUMO_const_waitingPersonDepth = 0.67 |
const double | SUMO_const_waitingPersonWidth = 0.8 |
#define FALLTHROUGH /* do nothing */ |
Definition at line 37 of file StdDefs.h.
Referenced by MSLane::insertVehicle(), SUMORouteHandler::myEndElement(), and GeoConvHelper::x2cartesian().
#define SUMO_MAX_CONNECTIONS 256 |
the maximum number of connections across an intersection
Definition at line 43 of file StdDefs.h.
Referenced by NLJunctionControlBuilder::addLogicItem(), NBNode::computeLogic(), and MSRailCrossing::MSRailCrossing().
#define UNUSED_PARAMETER | ( | x | ) | ((void)(x)) |
Definition at line 32 of file StdDefs.h.
Referenced by MSLCM_SL2015::_wantsChangeSublane(), MSLeaderDistanceInfo::addLeader(), MSCriticalFollowerDistanceInfo::addLeader(), MSCFModel::applyHeadwayAndSpeedDifferencePerceptionErrors(), MSCFModel::applyHeadwayPerceptionError(), MSPModel::blockedAtDist(), GNEViewNet::buildColorRainbow(), GUISUMOAbstractView::buildColorRainbow(), GNEViewNetHelper::VehicleOptions::buildVehicleOptionsMenuChecks(), GNEViewNetHelper::VehicleTypeOptions::buildVehicleTypeOptionsMenuChecks(), MSRailCrossing::changeStepAndDuration(), MSOffTrafficLightLogic::changeStepAndDuration(), MSRailSignal::changeStepAndDuration(), combCallback(), combineCallback(), HelpersHBEFA::compute(), HelpersHBEFA3::compute(), RODFNet::computeRoutesFor(), MSAbstractLaneChangeModel::decideDirection(), GNEReferenceCounter::decRef(), MSDetectorFileOutput::detectorUpdate(), GUIVehicle::drawAction_drawLinkItems(), GUIBaseVehicleHelper::drawAction_drawVehicleAsPoly(), GUIBaseVehicle::drawAction_drawVehicleBrakeLight(), GUITriggeredRerouter::drawGL(), GUIGlObject::drawGLAdditional(), MSAbstractLaneChangeModel::endLaneChangeManeuver(), MSCFModel::estimateArrivalTime(), libsumo::Simulation::findIntermodalRoute(), NIImporter_OpenDrive::findWidthSplit(), MSCFModel_W99::followSpeed(), MSCFModel_CACC::followSpeed(), MSCFModel_CC::followSpeed(), FXSingleEventThread::FXSingleEventThread(), FXEX::FXThreadEvent::FXThreadEvent(), NIImporter_OpenDrive::geomFromArc(), NIImporter_OpenDrive::geomFromLine(), NIImporter_OpenDrive::geomFromParamPoly(), NIImporter_OpenDrive::geomFromPoly(), NIImporter_OpenDrive::geomFromSpiral(), RODFDetectorCon::getAggFlowFor(), PollutantsInterface::Helper::getAmitranVehicleClass(), PollutantsInterface::Helper::getClass(), PollutantsInterface::Helper::getClassByName(), PollutantsInterface::Helper::getEuroClass(), MSInternalJunction::getFoeInternalLanes(), MSInternalJunction::getFoeLinks(), MSJunctionLogic::getFoesFor(), PollutantsInterface::Helper::getFuel(), MSJunctionLogic::getIsCont(), PHEMCEP::GetMaxAccel(), PollutantsInterface::Helper::getModifiedAccel(), MSCFModel::getParameter(), FirstOrderLagModel::getRealAcceleration(), RealisticEngineModel::getRealBrakingAcceleration(), MSJunctionLogic::getResponseFor(), IntermodalEdge< E, L, N, V >::getSuccessors(), GUIGlObject::getTypeParameterWindow(), IntermodalEdge< E, L, N, V >::getViaSuccessors(), NBEdge::Connection::getViaSuccessors(), PollutantsInterface::Helper::getWeight(), NBHeightMapper::getZ(), MSPModel::hasPedestrians(), GNEReferenceCounter::incRef(), MSLCM_LC2013::inform(), MSLCM_SL2015::inform(), MSCFModel_CC::insertionFollowSpeed(), MSCFModel_W99::interactionGap(), MSCFModel_Wiedemann::interactionGap(), LandmarkLookupTable< E, V >::LandmarkLookupTable(), PCLoaderArcView::load(), NBHeightMapper::loadShapeFile(), NBHeightMapper::loadTiff(), MSPModel_Striping::PState::moveToNextLane(), PedestrianState::moveToXY(), MSPModel_Striping::PState::moveToXY(), MSPModel_NonInteracting::MSPModel_NonInteracting(), NBLoadedSUMOTLDef::myCompute(), NIImporter_DlrNavteq::NamesHandler::NamesHandler(), MSPModel::nextBlocking(), NIImporter_ArcView::NIImporter_ArcView(), NIImporter_DlrNavteq::NodesHandler::NodesHandler(), MSMeanData::MeanDataValues::notifyEnter(), MSDevice_Bluelight::notifyEnter(), MSMeanData_Net::MSLaneMeanDataValues::notifyEnter(), MSMoveReminder::notifyEnter(), MSMeanData::MeanDataValueTracker::notifyEnter(), MSDevice_SSM::notifyEnter(), MSDevice_Bluelight::notifyLeave(), MSMoveReminder::notifyLeave(), MSDevice_SSM::notifyLeave(), MSDevice_Bluelight::notifyMove(), MSMoveReminder::notifyMove(), MSDevice_SSM::notifyMove(), MSMoveReminder::notifyMoveInternal(), FXSingleEventThread::onThreadSignal(), FXEX::FXThreadEvent::onThreadSignal(), NBNode::edge_by_direction_sorter::operator()(), OutputDevice_File::OutputDevice_File(), RGBColor::parseColorReporting(), MSCFModel_KraussOrig1::patchSpeedBeforeLC(), MSCFModel::patchSpeedBeforeLC(), MSLaneSpeedTrigger::processCommand(), NBTrafficLightDefinition::removeConnection(), MEVehicle::replaceRoute(), MSRailSignal::LinkInfo::reroute(), libsumo::Vehicle::rerouteTraveltime(), MSMeanData::resetOnly(), MSAbstractLaneChangeModel::saveBlockerLength(), GUIViewTraffic::saveFrame(), GUISUMOAbstractView::saveFrame(), GUIMainWindow::sendBlockingEvent(), MSCFModel::setImperfection(), FirstOrderLagModel::setParameter(), MSDevice::setParameter(), RealisticEngineModel::setParameter(), MSCFModel::setParameter(), MSAbstractLaneChangeModel::setParameter(), GUIDialog_EditViewport::setValues(), NBTrafficLightDefinition::shiftTLConnectionLaneIndex(), FXSingleEventThread::signal(), FXEX::FXThreadEvent::signal(), MSAbstractLaneChangeModel::sublaneChangeCompleted(), toString(), toString< FringeType >(), toString< LaneChangeAction >(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LateralAlignment >(), toString< LinkDirection >(), toString< LinkState >(), toString< PersonMode >(), toString< RightOfWay >(), toString< SUMOVehicleClass >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightType >(), NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler(), NBNode::turnFoes(), MSAbstractLaneChangeModel::updateExpectedSublaneSpeeds(), MSAbstractLaneChangeModel::updateSafeLatDist(), MSLCM_DK2008::wantsChange(), MSAbstractLaneChangeModel::wantsChange(), MSAbstractLaneChangeModel::wantsChangeSublane(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSBaseVehicle::wasRemoteControlled(), and MSInstantInductLoop::writeXMLOutput().
|
inline |
Definition at line 115 of file StdDefs.h.
References gDebugFlag1, gDebugFlag2, gDebugFlag3, gDebugFlag4, gHumanReadableTime, gPrecision, gPrecisionGeo, gSimulation, gWeightsRandomFactor, roundBits(), and truncate().
Referenced by PositionVector::bezier(), GawronCalculator< R, E, V >::calculateProbabilities(), and MSCFModel::maximumSafeFollowSpeed().
|
inline |
Definition at line 80 of file StdDefs.h.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_SL2015::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_ACC::_v(), MSCFModel_CACC::_v(), MSCFModel_IDM::_v(), MSCFModel_CC::_v(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSPModel_Striping::addCrossingVehs(), GUIParkingArea::addLotEntry(), PublicTransportEdge< E, L, N, V >::addSchedule(), MSRouteHandler::addStop(), GNERouteHandler::addStop(), MSE2Collector::aggregateOutputValues(), libsumo::Helper::applySubscriptionFilters(), AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >::AStarRouter(), IDSupplier::avoid(), MSVehicle::basePos(), NBNode::bezierControlPoints(), NIVisumTL::build(), GNEViewNet::buildColorRainbow(), GUIViewTraffic::buildColorRainbow(), RODFNet::buildEdgeFlowMap(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), GUIViewTraffic::buildViewToolBars(), GNEViewNet::buildViewToolBars(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), MSE2Collector::calculateTimeLossAndTimeOnDetector(), RGBColor::changedBrightness(), MSLCM_SL2015::checkBlocking(), MSLCM_SL2015::checkBlockingVehicles(), MELoop::checkCar(), MSLaneChanger::checkChange(), NBOwnTLDef::checkCustomCrossingIndices(), GUIPolygon::checkDraw(), MSDevice_ToC::checkDynamicToC(), NBEdgeCont::checkGrade(), MSVehicle::checkLinkLeader(), MSE2Collector::checkPositioning(), MSLCM_SL2015::checkStrategicChange(), MSVehicle::collisionStopTime(), MSLCM_SL2015::commitManoeuvre(), NBNodeShapeComputer::compute(), Bresenham::compute(), HelpersHBEFA::compute(), HelpersHBEFA3::compute(), HelpersPHEMlight::compute(), NBNetBuilder::compute(), NBTrafficLightDefinition::computeBrakingTime(), MSVehicleType::computeChosenSpeedDeviation(), 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(), CState::computeTranshipTime(), MSPModel_NonInteracting::PState::computeWalkingTime(), libsumo::Helper::convertCartesianToRoadMap(), MSSOTLTrafficLightLogic::countVehicles(), NGRandomNetBuilder::createNewNode(), MSCFModel_KraussOrig1::dawdle(), MSCFModel_Daniel1::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_Krauss::dawdle2(), MSCFModel_KraussX::dawdleX(), MSDevice_SSM::determineTTCandDRAC(), MSCFModel::distAfterTime(), GUIVehicle::drawAction_drawCarriageClass(), GUIVehicle::drawAction_drawVehicleBlinker(), GUIVehicle::drawBestLanes(), GUILane::drawDirectionIndicators(), GNELane::drawDirectionIndicators(), GNETAZ::drawGL(), GUIBusStop::drawGL(), GUILane::drawGL(), GNEVehicle::drawGL(), GUILane::drawLinkRule(), GUIBaseVehicle::drawOnPos(), GUITLLogicPhasesTrackerWindow::drawValues(), MSCFModel::estimateSpeedAfterDistance(), METriggeredCalibrator::execute(), MSCalibrator::execute(), MSVehicle::executeMove(), NBEdge::expandableBy(), NBEdge::extendGeometryAtNode(), MSCFModel_Daniel1::finalizeSpeed(), MSCFModel::finalizeSpeed(), MSCFModel_CC::finalizeSpeed(), MSRailSignal::DriveWay::findFlankProtection(), MSCFModel_Rail::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_W99::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_Krauss::followSpeed(), MSCFModel_Rail::freeSpeed(), MSCFModel::freeSpeed(), libsumo::Helper::fuseLaneCoverage(), MSVehicle::Influencer::gapControlSpeed(), MSCFModel::gapExtrapolation(), NBEdgeCont::generateStreetSigns(), NBNode::geometryLike(), GUIMessageWindow::getActiveStringObject(), MSLCM_LC2013::getAssumedDecelForLaneChangeDuration(), GUIPerson::getCenteringBoundary(), MSLaneChanger::getColumnleader(), MEVehicle::getConservativeSpeed(), MSLane::getCriticalLeader(), MSInductLoop::getCurrentOccupancy(), MSEdge::getCurrentTravelTime(), SUMOVTypeParameter::getDefaultEmergencyDecel(), NBNodeShapeComputer::getDefaultRadius(), MSVehicle::getDeltaPos(), ROVehicle::getDepartureTime(), MSDevice_ToC::getDynamicMRMProbability(), MSRoutingEngine::getEffort(), GUIVisualizationSizeSettings::getExaggeration(), NBEdge::getFinalLength(), MSLane::getFollowersOnConsecutive(), GUISUMOAbstractView::getFPS(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), MSParkingArea::getLastFreePosWithReservation(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), MSLink::getLeaveTime(), GNELane::getLengthGeometryFactor(), PositionVector::getMaxGrade(), NBLoadedSUMOTLDef::getMaxIndex(), MESegment::getMaxPenaltySeconds(), MSCFModel::getMinimalArrivalTime(), NIImporter_OpenStreetMap::getNeighboringNodes(), MESegment::getNextInsertionTime(), MSLane::getOppositePos(), PositionVector::getOverlapWith(), MSStoppingPlace::getPersonsAbreast(), GUIVehicle::getRightSublaneOnEdge(), MSLCM_LC2013::getRoundaboutDistBonus(), MSVehicle::getSafeFollowSpeed(), MSCFModel_W99::getSecureGap(), MSCFModel_Wiedemann::getSecureGap(), MSCFModel_IDM::getSecureGap(), MSCFModel::getSecureGap(), NBNodeShapeComputer::getSmoothCorner(), MSCFModel::getSpeedAfterMaxDecel(), MSLeaderInfo::getSubLanes(), MSLane::getSurroundingVehicles(), PedestrianEdge< E, L, N, V >::getTravelTime(), ROEdge::getTravelTime(), MSPModel_Striping::getVehicleObstacles(), GUISUMOAbstractView::getViewportEditor(), MEVehicle::getWaitingTime(), MSLink::getZipperSpeed(), NBLoadedSUMOTLDef::guessMinMaxDuration(), GUIBusStop::GUIBusStop(), GUIJunctionWrapper::GUIJunctionWrapper(), MSLane::handleCollisionBetween(), MSVehicle::Influencer::implicitSpeedRemote(), MSVehicle::Influencer::influenceSpeed(), MSLCM_DK2008::informBlocker(), MSLCM_LC2013::informFollower(), MSLCM_SL2015::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MSActuatedTrafficLightLogic::init(), MSLCM_SL2015::initDerivedParameters(), MSLCM_LC2013::initDerivedParameters(), MSTrafficLightLogic::initMesoTLSPenalties(), GNETLSEditorFrame::TLSPhases::initPhaseTable(), NIImporter_OpenStreetMap::insertEdge(), MSCFModel_IDM::insertionFollowSpeed(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSLane::isInsertionSuccess(), NBLoadedSUMOTLDef::joinLogic(), NBEdgeCont::joinSameNodeConnectingEdges(), MSLCM_SL2015::keepLatGap(), LandmarkLookupTable< E, V >::LandmarkLookupTable(), 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_CC::minNextSpeed(), MSCFModel::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(), MSMeanData::MeanDataValues::notifyMove(), 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_SL2015::prepareStep(), SUMOVehicleParserHelper::processActionStepLength(), MSE2Collector::processJams(), MSVehicle::processNextStop(), NBEdgeCont::processSplits(), MSVehicle::processTraCISpeedControl(), MSDelayBasedTrafficLightLogic::proposeProlongation(), GUIDialog_ViewSettings::rebuildList(), MSEdge::recalcCache(), MESegment::receive(), MESegment::recomputeJamThreshold(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenStreetMap::reconstructLayerElevation(), MSCalibrator::remainingVehicleCapacity(), MESegment::removeCar(), NBEdge::replaceInConnections(), NIImporter_DlrNavteq::TimeRestrictionsHandler::report(), NBEdgeCont::retrievePossiblySplit(), NIImporter_OpenDrive::sanitizeWidths(), MSLCM_LC2013::saveBlockerLength(), MSLCM_SL2015::saveBlockerLength(), MSE2Collector::selectLanes(), MESegment::send(), MSSimpleDriverState::setAwareness(), MSDevice_ToC::setAwareness(), NIImporter_OpenDrive::setLaneAttributes(), GNELane::setMultiColor(), GUILane::setMultiColor(), MSParkingArea::setNumAlternatives(), MSLCM_SL2015::setOwnState(), MSLink::setRequestInformation(), MESegment::setSpeedForQueue(), GUIMainWindow::setWindowSizeAndPos(), GNEEdge::smoothShape(), NBEdgeCont::splitAt(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSPModel_Striping::PState::stripe(), MELoop::teleportVehicle(), NGNet::toNB(), 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(), MSInductLoop::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inline |
Definition at line 94 of file StdDefs.h.
References MAX2().
Referenced by MELoop::checkCar(), MSActuatedTrafficLightLogic::duration(), NBRampsComputer::fulfillsRampConstraints(), MSCFModel::getMinimalArrivalTime(), MESegment::getNextInsertionTime(), MSCFModel_CACC::getSecureGap(), MSLink::getZipperSpeed(), MSTransportable::Stage_Waiting::proceed(), MSDelayBasedTrafficLightLogic::trySwitch(), and MSLCM_SL2015::updateGaps().
|
inline |
|
inline |
Definition at line 74 of file StdDefs.h.
Referenced by 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(), GNENet::addRestrictedLane(), MSVehicle::addStop(), NBEdge::addStraightConnections(), MSMeanData_Net::MSLaneMeanDataValues::addTo(), MSDevice_ToC::awarenessRecoveryStep(), MSVehicle::basePos(), NBNode::bezierControlPoints(), GNEViewNet::buildColorRainbow(), GUIViewTraffic::buildColorRainbow(), GNETLSEditorFrame::buildIinternalLanes(), NBEdge::buildInnerEdges(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), 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(), NBNetBuilder::compute(), AStarRouter< MSEdge, SUMOVehicle, SUMOAbstractRouterPermissions< MSEdge, SUMOVehicle > >::compute(), NBEdge::computeAngle(), MSDevice_SSM::computeDRAC(), NBEdge::computeEdgeShape(), NBPTStop::computeExtent(), NBNode::computeLanes2Lanes(), MSParkingArea::computeLastFreePos(), NBOwnTLDef::computeLogicAndConts(), computeRoutes(), MSLCM_SL2015::computeSpeedGain(), MSLCM_LC2013::computeSpeedLat(), MSLCM_SL2015::computeSpeedLat(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), MSDevice_SSM::determineTTCandDRAC(), GUILane::drawDirectionIndicators(), GNELane::drawDirectionIndicators(), GNEEdge::drawGeometryPoints(), GUIChargingStation::drawGL(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIParkingArea::drawGL(), GNEPoly::drawGL(), GNEVehicle::drawGL(), GUILane::drawMarkings(), GNELane::drawMarkings(), GUIBaseVehicle::drawOnPos(), GNEEdge::drawPartialPersonPlan(), GNELane::drawStartEndShapePoints(), MSActuatedTrafficLightLogic::duration(), MSDevice_SSM::estimateConflictTimes(), MEVehicle::estimateLeaveSpeed(), MSVehicle::estimateLeaveSpeed(), MSCFModel::estimateSpeedAfterDistance(), NBEdge::extendGeometryAtNode(), MSCFModel_Daniel1::finalizeSpeed(), MSCFModel::finalizeSpeed(), NBEdge::firstIntersection(), MSCFModel_Rail::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_Kerner::followSpeed(), MSCFModel_W99::followSpeed(), MSCFModel_Daniel1::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_ACC::followSpeed(), MSCFModel_CACC::followSpeed(), MSCFModel_Krauss::followSpeed(), MSLane::freeInsertion(), MSCFModel_Wiedemann::fullspeed(), libsumo::Helper::fuseLaneCoverage(), MSActuatedTrafficLightLogic::gapControl(), MSVehicle::Influencer::gapControlSpeed(), MSCFModel::gapExtrapolation(), MSLane::getBruttoOccupancy(), MSInductLoop::getCurrentOccupancy(), NBNodeShapeComputer::getDefaultRadius(), MSEdge::getDepartLane(), MSEdge::getDepartPosBound(), MSDevice_ToC::getDynamicMRMProbability(), MSTransportable::Stage_Driving::getEdgePos(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), MSE2Collector::getEstimateQueueLength(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), MSParkingArea::getLastFreePosWithReservation(), MSLane::getLeadersOnConsecutive(), libsumo::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(), CState::getPosition(), GUIBaseVehicle::getSeatPosition(), NBEdge::getShapeEndAngle(), NBEdge::getShapeStartAngle(), MSLeaderInfo::getSublaneBorders(), MSLeaderInfo::getSubLanes(), MSLane::getSurroundingVehicles(), PublicTransportEdge< E, L, N, V >::getTravelTime(), ROEdge::getTravelTime(), MSLane::getVehicleMaxSpeed(), MSPModel_Striping::getVehicleObstacles(), GUISUMOAbstractView::getViewportEditor(), MSLink::getZipperSpeed(), NBNodeCont::guessTLs(), MSLane::handleCollisionBetween(), libsumo::POI::highlight(), libsumo::Vehicle::highlight(), MSVehicle::Influencer::implicitSpeedRemote(), MSVehicle::Influencer::influenceSpeed(), MSLCM_LC2013::informFollower(), MSLCM_LC2013::informLeader(), MSLCM_SL2015::informLeader(), MSLCM_SL2015::informLeaders(), MSActuatedTrafficLightLogic::init(), MSPModel_Striping::initWalkingAreaPaths(), MSCFModel_CACC::insertionFollowSpeed(), MSCFModel::insertionStopSpeed(), MSCFModel::interactionGap(), MSLCM_SL2015::keepLatGap(), MSLane::lastInsertion(), SUMORouteLoaderControl::loadNext(), MESegment::loadState(), GUIDialog_ViewSettings::loadWindowSize(), MSE2Collector::makeMoveNotification(), MSCFModel::maximumSafeFollowSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MIN3(), MIN4(), libsumo::Person::moveToXY(), libsumo::Vehicle::moveToXY(), libsumo::Helper::moveToXYMap(), libsumo::Helper::moveToXYMap_matchingRoutePosition(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NBEdge::NBEdge(), MESegment::newArrival(), TraCIServer::nextTargetTime(), MSMeanData::MeanDataValues::notifyMove(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), operator>>(), MSPModel_Striping::PState::otherStripe(), MSCFModel::passingTime(), NBRampsComputer::patchRampGeometry(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), 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(), MSDevice_ToC::setAwareness(), NIImporter_OpenDrive::setLaneAttributes(), MSLCM_SL2015::setOwnState(), MSLink::setRequestInformation(), MSDevice_ToC::setState(), GUIMainWindow::setWindowSizeAndPos(), NBEdge::shiftPositionAtNode(), NBEdge::shortenGeometryAtNode(), PositionVector::smoothedZFront(), GNEEdge::smoothShape(), NBEdgeCont::splitAt(), NBEdge::startShapeAt(), MSCFModel_Krauss::stopSpeed(), MSCFModel_KraussOrig1::stopSpeed(), MSCFModel_Kerner::stopSpeed(), MSCFModel_Daniel1::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_Rail::stopSpeed(), MSCFModel_ACC::stopSpeed(), MSCFModel_CACC::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), MSPModel_Striping::PState::stripe(), 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(), MSInductLoop::writeXMLOutput(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
|
inline |
Definition at line 87 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), NBNodeShapeComputer::badIntersection(), MSLCM_SL2015::commitManoeuvre(), MSCFModel_Daniel1::finalizeSpeed(), MSCFModel::finalizeSpeed(), MSLink::getZipperSpeed(), MSTrafficLightLogic::init(), MSLink::setRequestInformation(), MSCFModel_W99::stopSpeed(), MSLCM_SL2015::updateGaps(), and MSPModel_Striping::PState::walk().
|
inline |
Definition at line 101 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 42 of file StdDefs.cpp.
Referenced by ISNAN().
double truncate | ( | double | x, |
int | fractionBits | ||
) |
discrds mantissa bits beyond the given number
Definition at line 38 of file StdDefs.cpp.
Referenced by ISNAN().
bool gDebugFlag1 |
global utility flags for debugging
Definition at line 33 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(), ISNAN(), MSPModel_Striping::PState::mergeObstacles(), MSPModel_Striping::moveInDirectionOnLane(), MSLink::opened(), MSVehicle::processLinkApproaches(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenDrive::revisitLaneSections(), NIImporter_OpenDrive::sanitizeWidths(), GUIVehicle::selectBlockingFoes(), NBEdge::setNodeBorder(), and NIImporter_OpenDrive::splitMinWidths().
bool gDebugFlag2 |
Definition at line 34 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(), ISNAN(), MSLCM_SL2015::keepLatGap(), MSLCM_SL2015::patchSpeed(), MSLCM_SL2015::saveBlockerLength(), MSLCM_SL2015::slowDownForBlocked(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateGaps(), and MSLCM_SL2015::wantsChangeSublane().
bool gDebugFlag3 |
Definition at line 35 of file StdDefs.cpp.
Referenced by MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::getUpstreamVehicles(), MSDevice_SSM::getVehiclesOnJunction(), and ISNAN().
bool gDebugFlag4 |
Definition at line 36 of file StdDefs.cpp.
Referenced by MSRailSignal::DriveWay::conflictLaneOccupied(), MSRailSignal::DriveWay::findProtection(), MSRailSignal::DriveWay::hasLinkConflict(), ISNAN(), MSRailSignal::DriveWay::reserve(), and MSRailSignal::updateCurrentPhase().
bool gHumanReadableTime |
Definition at line 29 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), ISNAN(), and time2string().
int gPrecision |
the precision for floating point outputs
Definition at line 27 of file StdDefs.cpp.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::canReverse(), SystemFrame::checkOptions(), MSCFModel::finalizeSpeed(), MSLane::getLeader(), ISNAN(), libsumo::Helper::moveToXYMap(), NIImporter_OpenDrive::myStartElement(), RORouteHandler::parseGeoEdges(), MSVehicle::planMove(), MSNet::postSimStepOutput(), MSDevice_Tripinfo::printStatistics(), ROVehicle::saveAsXML(), ROPerson::PersonTrip::saveAsXML(), time2string(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSEmissionExport::write(), MSXMLRawOut::write(), NWWriter_OpenDrive::writeInternalEdge(), NWWriter_OpenDrive::writeNormalEdge(), MSDevice_SSM::writeOutConflict(), and NWWriter_OpenDrive::writeRoadObjects().
int gPrecisionGeo |
Definition at line 28 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), MSVTypeProbe::execute(), GNEPoly::getAttribute(), GNEPOI::getAttribute(), ISNAN(), GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), RORouteHandler::parseGeoEdges(), PCPolyContainer::save(), ROVehicle::saveAsXML(), ROPerson::PersonTrip::saveAsXML(), GUISUMOAbstractView::updatePositionInformation(), MSFCDExport::write(), NWWriter_XML::writeEdgesAndConnections(), GeoConvHelper::writeLocation(), NWWriter_XML::writeNodes(), MSDevice_SSM::writeOutConflict(), MSFCDExport::writeTransportable(), PointOfInterest::writeXML(), and SUMOPolygon::writeXML().
bool gSimulation |
Definition at line 30 of file StdDefs.cpp.
Referenced by ISNAN(), main(), and SUMOVehicleParserHelper::parseVTypeEmbedded().
double gWeightsRandomFactor |
Definition at line 31 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), computeRoutes(), IntermodalRouter< E, L, N, V >::createNet(), MSRoutingEngine::getEffortExtra(), MSRoutingEngine::getRouterTT(), IntermodalEdge< E, L, N, V >::getTravelTimeStaticRandomized(), ROEdge::getTravelTimeStaticRandomized(), ISNAN(), PedestrianRouter< E, L, N, V >::PedestrianRouter(), and MSRoutingEngine::reroute().
const double INVALID_DOUBLE = std::numeric_limits<double>::max() |
Definition at line 63 of file StdDefs.h.
Referenced by MSMeanData_Net::MSLaneMeanDataValues::addTo(), PositionVector::angleAt2D(), PositionVector::beginEndAngle(), MSCFModel::estimateArrivalTime(), MSLink::getLengthBeforeCrossing(), MSLink::getLengthsBeforeCrossing(), PositionVector::nearest_offset_to_point25D(), PositionVector::nearest_offset_to_point2D(), MSMeanData_Net::MSLaneMeanDataValues::notifyMoveInternal(), MSMeanData_Net::MSLaneMeanDataValues::reset(), PositionVector::rotationAtOffset(), and PositionVector::slopeDegreeAtOffset().
const double NETWORK_VERSION = 1.3 |
version for written networks and default version for loading
Definition at line 66 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 55 of file StdDefs.h.
Referenced by NBEdgeCont::processSplits().
const double SUMO_const_halfLaneWidth = SUMO_const_laneWidth / 2 |
Definition at line 52 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 61 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(), libsumo::Edge::getLastStepHaltingNumber(), libsumo::Lane::getLastStepHaltingNumber(), MSCFModel::getMinimalArrivalTime(), MSVehicle::getSpaceTillLastStanding(), MSVehicle::hasInfluencer(), 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 56 of file StdDefs.h.
Referenced by GNELane::drawGL(), GUILane::drawGL(), GUILane::drawMarkings(), and GNELane::drawMarkings().
const double SUMO_const_laneOffset = (double) 0 |
Definition at line 51 of file StdDefs.h.
Referenced by NBEdge::computeLaneShapes(), NIImporter_SUMO::reconstructEdgeShape(), and NBEdge::shiftPositionAtNode().
const double SUMO_const_laneWidth = (double) 3.2 |
Definition at line 50 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(), GUILane::drawArrows(), GNELane::drawGL(), GUILane::drawGL(), NBNodeCont::generateNodeClusters(), GUIBusStop::getCenteringBoundary(), NBEdge::getLaneWidth(), GUISUMOAbstractView::getObjectsInBoundary(), MSVehicle::getPosition(), GUISUMOAbstractView::makeSnapshot(), NBRampsComputer::moveRampRight(), libsumo::Helper::moveToXYMap(), MSParkingArea::MSParkingArea(), NBNodeCont::pruneClusterFringe(), NIImporter_SUMO::reconstructEdgeShape(), and NIImporter_OpenStreetMap::usableType().
const double SUMO_const_laneWidthAndOffset = SUMO_const_laneWidth + SUMO_const_laneOffset |
Definition at line 54 of file StdDefs.h.
Referenced by NBEdge::getMaxLaneOffset(), and NBEdgeCont::processSplits().
const double SUMO_const_quarterLaneWidth = SUMO_const_laneWidth / 4 |
const double SUMO_const_waitingPersonDepth = 0.67 |
Definition at line 58 of file StdDefs.h.
Referenced by MSStoppingPlace::getWaitPosition(), and GUIBusStop::GUIBusStop().
const double SUMO_const_waitingPersonWidth = 0.8 |
Definition at line 57 of file StdDefs.h.
Referenced by GUIBaseVehicle::computeSeats(), MSStoppingPlace::getPersonsAbreast(), and MSStoppingPlace::getWaitingPositionOnLane().