![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#include "StdDefs.h"
Go to the source code of this file.
Functions | |
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 = false |
global utility flags for debugging More... | |
bool | gDebugFlag2 = false |
bool | gDebugFlag3 = false |
bool | gDebugFlag4 = false |
bool | gHumanReadableTime = false |
int | gPrecision = 2 |
the precision for floating point outputs More... | |
int | gPrecisionGeo = 6 |
bool | gSimulation = false |
double | gWeightsRandomFactor = 1 |
Definition in file StdDefs.cpp.
double roundBits | ( | double | x, |
int | fractionBits | ||
) |
round to the given number of mantissa bits beyond the given number
Definition at line 41 of file StdDefs.cpp.
double truncate | ( | double | x, |
int | fractionBits | ||
) |
discrds mantissa bits beyond the given number
Definition at line 37 of file StdDefs.cpp.
bool gDebugFlag1 = false |
global utility flags for debugging
Definition at line 32 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(), 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 = false |
Definition at line 33 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().
bool gDebugFlag3 = false |
Definition at line 34 of file StdDefs.cpp.
Referenced by MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::getUpstreamVehicles(), and MSDevice_SSM::getVehiclesOnJunction().
bool gDebugFlag4 = false |
Definition at line 35 of file StdDefs.cpp.
Referenced by MSRailSignal::DriveWay::conflictLaneOccupied(), MSRailSignal::DriveWay::findProtection(), MSRailSignal::DriveWay::hasLinkConflict(), MSRailSignal::DriveWay::reserve(), and MSRailSignal::updateCurrentPhase().
bool gHumanReadableTime = false |
Definition at line 28 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), GUITLLogicPhasesTrackerWindow::drawValues(), and time2string().
int gPrecision = 2 |
the precision for floating point outputs
Definition at line 26 of file StdDefs.cpp.
Referenced by MSLCM_LC2013::_patchSpeed(), MSLCM_LC2013::_wantsChange(), MSLCM_SL2015::_wantsChangeSublane(), MSVehicle::canReverse(), SystemFrame::checkOptions(), MSCFModel::finalizeSpeed(), MSLane::getLeader(), 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(), and NWWriter_OpenDrive::writeRoadObjects().
int gPrecisionGeo = 6 |
Definition at line 27 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().
bool gSimulation = false |
Definition at line 29 of file StdDefs.cpp.
Referenced by main(), and SUMOVehicleParserHelper::parseVTypeEmbedded().
double gWeightsRandomFactor = 1 |
Definition at line 30 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().