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 | 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 | gPrecisionGeo = 6 |
int | gPrecisionRandom = 4 |
bool | gSimulation = false |
int | GUIDesignHeight = 23 |
the default size 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 61 of file StdDefs.cpp.
Referenced by MSVehicleControl::getQuota(), and ROMARouteHandler::myEndElement().
double roundBits | ( | double | x, |
int | fractionBits | ||
) |
round to the given number of mantissa bits beyond the given number
Definition at line 48 of file StdDefs.cpp.
double roundDecimal | ( | double | x, |
int | precision | ||
) |
round to the given number of decimal digits
Definition at line 54 of file StdDefs.cpp.
Referenced by MSVehicleType::computeChosenSpeedDeviation(), MSLane::getDepartPosLat(), MSLane::getDepartSpeed(), and MSLane::insertVehicle().
double truncate | ( | double | x, |
int | fractionBits | ||
) |
discrds mantissa bits beyond the given number
Definition at line 44 of file StdDefs.cpp.
bool gDebugFlag1 = false |
global utility flags for debugging
Definition at line 37 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(), GUIVehicle::selectBlockingFoes(), NBEdge::setNodeBorder(), and NIImporter_OpenDrive::splitMinWidths().
bool gDebugFlag2 = false |
Definition at line 38 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 39 of file StdDefs.cpp.
Referenced by MSDevice_SSM::findSurroundingVehicles(), MSDevice_SSM::getUpstreamVehicles(), and MSDevice_SSM::getVehiclesOnJunction().
bool gDebugFlag4 = false |
Definition at line 40 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 41 of file StdDefs.cpp.
Referenced by MSLaneChanger::changeOpposite(), MSLaneChanger::getOncomingOppositeVehicle(), and MSLaneChanger::getOncomingVehicle().
bool gDebugFlag6 = false |
Definition at line 42 of file StdDefs.cpp.
Referenced by MSLink::blockedByFoe(), and MSLink::computeFoeArrivalTimeBraking().
bool gHumanReadableTime = false |
Definition at line 29 of file StdDefs.cpp.
Referenced by GNEViewNetHelper::TimeFormat::buildTimeFormatButtons(), SystemFrame::checkOptions(), elapsedMs2string(), GNEViewNetHelper::TimeFormat::switchTimeFormat(), time2string(), and GNEViewNetHelper::TimeFormat::updateButtonLabel().
bool gIgnoreUnknownVClass = false |
Definition at line 31 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), and parseVehicleClasses().
std::string gLanguage = "C" |
the language for GUI elements and messages
Definition at line 34 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(), NBNodeCont::joinSameJunctions(), MSDevice_SSM::makeStringWithNAs(), MSDevice_SSM::makeStringWithNAs(), libsumo::Helper::moveToXYMap(), NIImporter_OpenDrive::myStartElement(), MapMatcher< E, L, N >::parseGeoEdges(), MSVehicle::planMove(), MSNet::postSimStepOutput(), MSDevice_Tripinfo::printStatistics(), ROPerson::PersonTrip::saveAsXML(), ROVehicle::saveAsXML(), MSTransportable::saveState(), time2string(), MSLCM_LC2013::wantsChange(), MSLCM_SL2015::wantsChangeSublane(), MSXMLRawOut::write(), MSFCDExport::write(), MSEmissionExport::write(), NWWriter_OpenDrive::writeInternalEdge(), NWWriter_OpenDrive::writeNormalEdge(), MSDevice_SSM::writeOutConflict(), NWWriter_OpenDrive::writeRoadObjects(), and MSDevice_Tripinfo::writeStatistics().
int gPrecisionGeo = 6 |
Definition at line 27 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 28 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 30 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), LIBSUMO_NAMESPACE::Simulation::load(), main(), and GUIMessageWindow::setCursorPos().
int GUIDesignHeight = 23 |
the default size for GUI elements
Definition at line 35 of file StdDefs.cpp.
Referenced by GNEFixAdditionalElements::AdditionalList::AdditionalList(), GNEFixElementsDialog::AdditionalList::AdditionalList(), MFXDecalsTable::Column::adjustColumnWidth(), GUIDesigns::buildFXMenuCheckbox(), GUIDesigns::buildFXMenuCheckboxIcon(), GUIDesigns::buildFXMenuCommand(), GUIDesigns::buildFXMenuCommand(), GUIDesigns::buildFXMenuCommandRecentFile(), GUIDesigns::buildFXMenuCommandShortcut(), GUIDesigns::buildFXMenuTitle(), GNEDistributionFrame::DistributionValuesEditor::DistributionValuesEditor(), MFXDecalsTable::fillTable(), GNETLSTable::Column::getColumnMinimumWidth(), GNEOptionsDialog::GNEOptionsDialog(), GUIDialog_AppSettings::GUIDialog_AppSettings(), GUIIconSubSys::GUIIconSubSys(), GUIMainWindow::GUIMainWindow(), GNEPythonToolDialog::openDialog(), GUIDialog_Breakpoints::rebuildList(), GNEFixDemandElements::FixOptions::setInvalidElements(), GNEFixNetworkElements::FixOptions::setInvalidElements(), GNERerouterIntervalDialog::updateClosingLaneReroutesTable(), GNERerouterIntervalDialog::updateClosingReroutesTable(), GNERerouterIntervalDialog::updateDestProbReroutesTable(), GNECalibratorDialog::updateFlowTable(), GNERerouterDialog::updateIntervalTable(), GNERerouterIntervalDialog::updateParkingAreaReroutesTable(), GNERerouterIntervalDialog::updateRouteProbReroutesTable(), GNECalibratorDialog::updateRouteTable(), GNEVariableSpeedSignDialog::updateTableSteps(), and GNECalibratorDialog::updateVehicleTypeTable().
double gWeightsRandomFactor = 1 |
Definition at line 32 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 33 of file StdDefs.cpp.
Referenced by SystemFrame::checkOptions(), and PedestrianEdge< E, L, N, V >::getTravelTime().