![]() |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the source code of this file.
Functions | |
int | getScalingQuota (double frac, int loaded) |
Returns the number of instances of the current object that shall be emitted given the number of loaded objects considering that "frac" of all objects shall be emitted overall. | |
double | roundBits (double x, int fractionBits) |
round to the given number of mantissa bits beyond the given number | |
double | roundDecimal (double x, int precision) |
round to the given number of decimal digits | |
double | roundDecimalToEven (double x, int precision) |
round to the given number of decimal digits (bankers rounding) | |
double | truncate (double x, int fractionBits) |
discrds mantissa bits beyond the given number | |
Variables | |
bool | gDebugFlag1 = false |
global utility flags for debugging | |
bool | gDebugFlag2 = false |
bool | gDebugFlag3 = false |
bool | gDebugFlag4 = false |
bool | gDebugFlag5 = false |
bool | gDebugFlag6 = false |
bool | gHumanReadableTime = false |
bool | gIgnoreUnknownVClass = false |
std::string | gLanguage = "C" |
the language for GUI elements and messages | |
int | gPrecision = 2 |
the precision for floating point outputs | |
int | gPrecisionEmissions = 2 |
int | gPrecisionGeo = 6 |
int | gPrecisionRandom = 4 |
bool | gSimulation = false |
int | GUIDesignDialogButtonsHeight = 32 |
the default height for dialog buttons | |
int | GUIDesignHeight = 23 |
the default height for GUI elements | |
double | gWeightsRandomFactor = 1 |
double | gWeightsWalkOppositeFactor = 1 |
Definition in file StdDefs.cpp.
int getScalingQuota | ( | double | frac, |
int | loaded | ||
) |
Returns the number of instances of the current object that shall be emitted given the number of loaded objects considering that "frac" of all objects shall be emitted overall.
Definition at line 69 of file StdDefs.cpp.
Referenced by MSVehicleControl::getQuota(), ROMARouteHandler::myEndElement(), and RONet::saveAndRemoveRoutesUntil().
double roundBits | ( | double | x, |
int | fractionBits | ||
) |
round to the given number of mantissa bits beyond the given number
Definition at line 51 of file StdDefs.cpp.
double roundDecimal | ( | double | x, |
int | precision | ||
) |
round to the given number of decimal digits
Definition at line 57 of file StdDefs.cpp.
Referenced by MSVehicleType::computeChosenSpeedDeviation(), MSLane::getDepartPosLat(), MSLane::getDepartSpeed(), and MSLane::insertVehicle().
double roundDecimalToEven | ( | double | x, |
int | precision | ||
) |
round to the given number of decimal digits (bankers rounding)
Definition at line 63 of file StdDefs.cpp.
Referenced by Position::round(), and NBEdge::roundSpeed().
double truncate | ( | double | x, |
int | fractionBits | ||
) |
discrds mantissa bits beyond the given number
Definition at line 47 of file StdDefs.cpp.
bool gDebugFlag1 = false |
global utility flags for debugging
Definition at line 40 of file StdDefs.cpp.
Referenced by MSPModel_Striping::addCrossingVehs(), NBRailwayTopologyAnalyzer::allBroken(), MSLink::blockedAtTime(), MSLink::blockedByFoe(), NIImporter_OpenDrive::OpenDriveLaneSection::buildAttributeChanges(), NBNode::buildCrossings(), NBNode::buildWalkingAreas(), NBNode::checkCrossing(), MSVehicle::checkLinkLeader(), MSVehicle::executeMove(), NIImporter_OpenDrive::findWidthSplit(), MSLane::getCriticalLeader(), NBEdge::getCrossingAngle(), NBNode::getEdgesSortedByAngleAtNodeCenter(), MSLane::getFollowersOnConsecutive(), MSLane::getLastVehicleInformation(), MSLink::getLeaderInfo(), MSLane::getLeaderOnConsecutive(), MSLane::getLeadersOnConsecutive(), NBNode::guessCrossings(), NBEdgeCont::guessRoundabouts(), MSLane::isInsertionSuccess(), MESegment::isOpen(), NBNodeCont::joinJunctions(), NIImporter_OpenDrive::loadNetwork(), MSPModel_Striping::PState::mergeObstacles(), PositionVector::move2side(), MSPModel_Striping::moveInDirectionOnLane(), MSLink::opened(), MSVehicle::processLinkApproaches(), NBNodeCont::pruneClusterFringe(), NBNodeCont::pruneLongEdges(), NBNodeCont::pruneSlipLaneNodes(), RandHelper::rand(), NIImporter_OpenDrive::recomputeWidths(), NIImporter_OpenDrive::revisitLaneSections(), NIImporter_OpenDrive::sanitizeWidths(), NIImporter_OpenDrive::sanitizeWidths(), GUIVehicle::selectBlockingFoes(), NBEdge::setNodeBorder(), and NIImporter_OpenDrive::splitMinWidths().
bool gDebugFlag2 = false |
Definition at line 41 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::preventSliding(), MSLCM_SL2015::slowDownForBlocked(), MSLCM_SL2015::updateCFRelated(), MSLCM_SL2015::updateGaps(), and MSLCM_SL2015::wantsChangeSublane().
bool gDebugFlag3 = false |
Definition at line 42 of file StdDefs.cpp.
Referenced by MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::getUpstreamVehicles(), and MSDevice_SSM::getVehiclesOnJunction().
bool gDebugFlag4 = false |
Definition at line 43 of file StdDefs.cpp.
Referenced by MSDriveWay::buildRoute(), MSDriveWay::canUseSiding(), MSDriveWay::conflictLaneOccupied(), MSRailSignal::constraintsAllow(), MSDriveWay::foeDriveWayApproached(), MSDriveWay::foeDriveWayOccupied(), MSDriveWay::hasJoin(), MSDriveWay::hasLinkConflict(), MSDriveWay::reserve(), and MSRailSignal::updateCurrentPhase().
bool gDebugFlag5 = false |
Definition at line 44 of file StdDefs.cpp.
Referenced by MSLaneChanger::changeOpposite(), MSLaneChanger::getOncomingOppositeVehicle(), and MSLaneChanger::getOncomingVehicle().
bool gDebugFlag6 = false |
Definition at line 45 of file StdDefs.cpp.
Referenced by MSLink::blockedByFoe(), and MSLink::computeFoeArrivalTimeBraking().
bool gHumanReadableTime = false |
Definition at line 30 of file StdDefs.cpp.
Referenced by GNEViewNetHelper::TimeFormat::buildTimeFormatButtons(), SystemFrame::checkOptions(), elapsedMs2string(), GNEViewNetHelper::TimeFormat::switchTimeFormat(), time2string(), GNEViewNetHelper::TimeFormat::updateButtonLabel(), and ParquetFormatter::writeTime().
bool gIgnoreUnknownVClass = false |
Definition at line 32 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), and parseVehicleClasses().
std::string gLanguage = "C" |
the language for GUI elements and messages
Definition at line 35 of file StdDefs.cpp.
Referenced by SystemFrame::addReportOptions(), main(), GUIMainWindow::onCmdChangeLanguage(), and GUIMainWindow::onUpdChangeLanguage().
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(), NBEdge::assignInternalLaneLength(), SystemFrame::checkOptions(), MSVehicle::checkReversal(), MSCFModel::finalizeSpeed(), StringUtils::format(), MSDevice_Emissions::generateOutput(), SUMOVehicleParameter::getDepartPos(), SUMOVehicleParameter::getDepartPosLat(), SUMOVehicleParameter::getDepartSpeed(), MSLane::getLeader(), GUIVehicle::getTypeParameterWindow(), GUIMEVehicle::getTypeParameterWindow(), MSDevice_SSM::makeStringWithNAs(), MSDevice_SSM::makeStringWithNAs(), libsumo::Helper::moveToXYMap(), NIImporter_OpenDrive::myStartElement(), MapMatcher< E, L, N >::parseGeoEdges(), MSVehicle::planMove(), MSNet::postSimStepOutput(), MSDevice_Tripinfo::printStatistics(), NBEdge::roundGeometry(), NBNode::roundGeometry(), NBEdge::roundSpeed(), ROPerson::PersonTrip::saveAsXML(), ROVehicle::saveAsXML(), MSStateHandler::saveState(), MSTransportable::saveState(), NBEdge::shiftPositionAtNode(), time2string(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSXMLRawOut::write(), MSFCDExport::write(), MSEmissionExport::write(), MSEmissionExport::writeEmissions(), NWWriter_OpenDrive::writeInternalEdge(), NWWriter_OpenDrive::writeNormalEdge(), MSDevice_SSM::writeOutConflict(), NWWriter_OpenDrive::writeRoadObjects(), MSDevice_Tripinfo::writeStatistics(), and MSFCDExport::writeTransportable().
int gPrecisionEmissions = 2 |
Definition at line 27 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), MSDevice_Emissions::generateOutput(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), and MSEmissionExport::writeEmissions().
int gPrecisionGeo = 6 |
Definition at line 28 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), MSPModel_JuPedSim::dumpGeometry(), MSVTypeProbe::execute(), GNEPoly::getAttribute(), GNEGeometryPointDialog::GNEGeometryPointDialog(), MSDevice_SSM::makeStringWithNAs(), MSDevice_SSM::makeStringWithNAs(), GUIGLObjectPopupMenu::onCmdCopyCursorGeoPosition(), GUIGLObjectPopupMenu::onCmdCopyViewGeoBoundary(), GUIGLObjectPopupMenu::onCmdShowCursorGeoPositionOnline(), MapMatcher< E, L, N >::parseGeoEdges(), PCPolyContainer::save(), ROPerson::PersonTrip::saveAsXML(), ROVehicle::saveAsXML(), GUISUMOAbstractView::updatePositionInformationLabel(), MSFCDExport::write(), MSEmissionExport::write(), NWWriter_SUMO::writeConnection(), GeoConvHelper::writeLocation(), NWWriter_XML::writeNodes(), MSDevice_SSM::writeOutConflict(), NWWriter_XML::writeShape(), MSFCDExport::writeTransportable(), SUMOPolygon::writeXML(), and PointOfInterest::writeXML().
int gPrecisionRandom = 4 |
Definition at line 29 of file StdDefs.cpp.
Referenced by MSVehicleType::computeChosenSpeedDeviation(), SUMOVehicleParameter::getDepartPos(), SUMOVehicleParameter::getDepartPosLat(), MSLane::getDepartPosLat(), SUMOVehicleParameter::getDepartSpeed(), MSLane::getDepartSpeed(), MSLane::insertVehicle(), MSBaseVehicle::saveState(), MSTransportable::saveState(), and SUMOVehicleParameter::write().
bool gSimulation = false |
Definition at line 31 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), LIBSUMO_NAMESPACE::Simulation::load(), main(), and GUIMessageWindow::setCursorPos().
int GUIDesignDialogButtonsHeight = 32 |
the default height for dialog buttons
Definition at line 38 of file StdDefs.cpp.
int GUIDesignHeight = 23 |
the default height for GUI elements
Definition at line 37 of file StdDefs.cpp.
Referenced by MFXDecalsTable::Column::adjustColumnWidth(), GUIDesigns::buildFXMenuCheckbox(), GUIDesigns::buildFXMenuCheckboxIcon(), GUIDesigns::buildFXMenuCommand(), GUIDesigns::buildFXMenuCommand(), GUIDesigns::buildFXMenuCommandRecentFile(), GUIDesigns::buildFXMenuCommandShortcut(), GUIDesigns::buildFXMenuTitle(), GNEElementTable::ColumnHeader::ColumnHeader(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), MFXDecalsTable::fillTable(), GNETLSTable::Column::getColumnMinimumWidth(), GNEHelpAttributesDialog::GNEHelpAttributesDialog(), GNEOptionsEditor::GNEOptionsEditor(), GNEPythonToolDialog::GNEPythonToolDialog(), GUIDialog_AppSettings::GUIDialog_AppSettings(), GUIIconSubSys::GUIIconSubSys(), GUIMainWindow::GUIMainWindow(), GUIDialog_Breakpoints::rebuildList(), and GNEFixElementsDialog< T >::FixOptions::setInvalidElements().
double gWeightsRandomFactor = 1 |
Definition at line 33 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(), PedestrianRouter< E, L, N, V >::PedestrianRouter(), and PedestrianRouter< E, L, N, V >::PedestrianRouter().
double gWeightsWalkOppositeFactor = 1 |
Definition at line 34 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), and PedestrianEdge< E, L, N, V >::getTravelTime().