![]() |
SUMO - Simulation of Urban MObility
|
Go to the source code of this file.
Macros | |
#define | SUMO_MAX_CONNECTIONS 256 |
the maximum number of connections across an intersection More... | |
#define | UNUSED_PARAMETER(x) ((void)(x)) |
Functions | |
const std::string | getBuildName (const std::string &version) |
attach some build flags to the version string More... | |
const RGBColor & | getLinkColor (const LinkState &ls) |
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) |
Variables | |
bool | gDebugFlag1 |
global utility flags for debugging More... | |
bool | gDebugFlag2 |
std::string | gDebugSelectedVehicle |
const SUMOReal | SUMO_const_halfLaneAndOffset = (SUMOReal)(3.2 / 2. + .1) |
const SUMOReal | SUMO_const_halfLaneWidth = (SUMOReal) 1.6 |
const SUMOReal | SUMO_const_haltingSpeed = (SUMOReal) 0.1 |
the speed threshold at which vehicles are considered as halting More... | |
const SUMOReal | SUMO_const_laneOffset = (SUMOReal) .1 |
const SUMOReal | SUMO_const_laneWidth = (SUMOReal) 3.2 |
const SUMOReal | SUMO_const_laneWidthAndOffset = (SUMOReal) 3.3 |
const SUMOReal | SUMO_const_quarterLaneWidth = (SUMOReal) 0.8 |
Definition in file StdDefs.h.
#define SUMO_MAX_CONNECTIONS 256 |
the maximum number of connections across an intersection
Definition at line 42 of file StdDefs.h.
Referenced by NBNode::computeLogic().
#define UNUSED_PARAMETER | ( | x | ) | ((void)(x)) |
Definition at line 39 of file StdDefs.h.
Referenced by MSOffTrafficLightLogic::changeStepAndDuration(), MSRailSignal::changeStepAndDuration(), MSVehicle::checkRewindLinkLanes(), SUMOVehicleParserHelper::closeVTypeParsing(), combCallback(), combineCallback(), HelpersHBEFA::compute(), HelpersHBEFA3::compute(), RODFNet::computeRoutesFor(), GNEReferenceCounter::decRef(), MSDetectorFileOutput::detectorUpdate(), GUIVehicle::drawAction_drawLinkItems(), GUITriggeredRerouter::drawGL(), GUIGlObject::drawGLAdditional(), FXSingleEventThread::FXSingleEventThread(), FXEX::FXThreadEvent::FXThreadEvent(), NIImporter_OpenDrive::geomFromArc(), NIImporter_OpenDrive::geomFromLine(), NIImporter_OpenDrive::geomFromPoly(), NIImporter_OpenDrive::geomFromSpiral(), RODFDetectorCon::getAggFlowFor(), PollutantsInterface::Helper::getAmitranVehicleClass(), PollutantsInterface::Helper::getClass(), PollutantsInterface::Helper::getClassByName(), MSRoute::getDistanceBetween(), PollutantsInterface::Helper::getEuroClass(), MSJunctionLogic::getFoesFor(), PollutantsInterface::Helper::getFuel(), MSJunctionLogic::getIsCont(), PHEMCEP::GetMaxAccel(), PollutantsInterface::Helper::getMaxAccel(), GNEEdge::getParameterWindow(), GUIEdge::getParameterWindow(), MSJunctionLogic::getResponseFor(), PollutantsInterface::Helper::getWeight(), NBHeightMapper::getZ(), GNEReferenceCounter::incRef(), MSEdge::insertVehicle(), MSCFModel_Wiedemann::interactionGap(), GNEAttributeCarrier::isValid(), NIImporter_ArcView::load(), NBEdge::moveOutgoingConnectionsFrom(), MSPModel_NonInteracting::MSPModel_NonInteracting(), NBLoadedSUMOTLDef::myCompute(), NIImporter_DlrNavteq::NamesHandler::NamesHandler(), NIImporter_ArcView::NIImporter_ArcView(), NIImporter_Vissim::NIImporter_Vissim(), NIImporter_DlrNavteq::NodesHandler::NodesHandler(), MSMeanData::MeanDataValues::notifyEnter(), MSMoveReminder::notifyEnter(), MSMoveReminder::notifyLeave(), MSMoveReminder::notifyMove(), MSMoveReminder::notifyMoveInternal(), NLJunctionControlBuilder::openJunction(), NBNode::edge_by_direction_sorter::operator()(), RGBColor::parseColorReporting(), MSLaneSpeedTrigger::processCommand(), GNEJunction::removeFromCrossings(), NBNodeCont::removeIsolatedRoads(), MSMeanData::resetOnly(), MSAbstractLaneChangeModel::saveBlockerLength(), GUIMainWindow::sendBlockingEvent(), MSCFModel::setImperfection(), MSLink::setRequestInformation(), GUIDialog_EditViewport::setValues(), NBTrafficLightDefinition::shiftTLConnectionLaneIndex(), FXSingleEventThread::signal(), FXEX::FXThreadEvent::signal(), toString(), toString< LaneChangeModel >(), toString< LaneSpreadFunction >(), toString< LinkDirection >(), toString< LinkState >(), toString< SUMOVehicleClass >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightType >(), NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler(), MSLCM_DK2008::wantsChange(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSInstantInductLoop::writeXMLOutput().
const std::string getBuildName | ( | const std::string & | version | ) |
attach some build flags to the version string
Definition at line 91 of file StdDefs.cpp.
Referenced by GUIApplicationWindow::closeAllWindows(), GUIApplicationWindow::dependentBuild(), GNEDialog_About::GNEDialog_About(), GUIDialog_AboutSUMO::GUIDialog_AboutSUMO(), GUIApplicationWindow::handleEvent_SimulationLoaded(), and main().
Definition at line 53 of file StdDefs.cpp.
References LINKSTATE_ALLWAY_STOP, LINKSTATE_DEADEND, LINKSTATE_EQUAL, LINKSTATE_MAJOR, LINKSTATE_MINOR, LINKSTATE_STOP, LINKSTATE_TL_GREEN_MAJOR, LINKSTATE_TL_GREEN_MINOR, LINKSTATE_TL_OFF_BLINKING, LINKSTATE_TL_OFF_NOSIGNAL, LINKSTATE_TL_RED, LINKSTATE_TL_REDYELLOW, LINKSTATE_TL_YELLOW_MAJOR, LINKSTATE_TL_YELLOW_MINOR, LINKSTATE_ZIPPER, SUMO_color_ALLWAY_STOP, SUMO_color_DEADEND, SUMO_color_EQUAL, SUMO_color_MAJOR, SUMO_color_MINOR, SUMO_color_STOP, SUMO_color_TL_GREEN_MAJOR, SUMO_color_TL_GREEN_MINOR, SUMO_color_TL_OFF_BLINKING, SUMO_color_TL_OFF_NOSIGNAL, SUMO_color_TL_RED, SUMO_color_TL_REDYELLOW, SUMO_color_TL_YELLOW_MAJOR, SUMO_color_TL_YELLOW_MINOR, and SUMO_color_ZIPPER.
Referenced by GNEInternalLane::colorForLinksState(), GUILane::drawLane2LaneConnections(), GUILane::drawLinkRule(), and GUITLLogicPhasesTrackerWindow::drawValues().
|
inline |
Definition at line 114 of file StdDefs.h.
References gDebugFlag1, gDebugFlag2, and gDebugSelectedVehicle.
Referenced by GawronCalculator< R, E, V >::calculateProbabilities(), NBNode::computeSmoothShape(), and MSCFModel::maximumSafeFollowSpeed().
|
inline |
Definition at line 79 of file StdDefs.h.
Referenced by MSLCM_JE2013::_patchSpeed(), MSLCM_LC2013::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_IDM::_v(), MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSRouteHandler::addStop(), IDSupplier::avoid(), NIVisumTL::build(), NBNode::buildWalkingAreas(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), RGBColor::changedBrightness(), MSLaneChanger::checkChange(), MSVehicle::checkRewindLinkLanes(), NBNodeShapeComputer::compute(), Bresenham::compute(), HelpersHBEFA::compute(), HelpersHBEFA3::compute(), HelpersPHEMlight::compute(), NBNetBuilder::compute(), MSVehicleType::computeChosenSpeedDeviation(), NBNode::computeLanes2Lanes(), NBNodeShapeComputer::computeNodeShapeDefault(), NBNodeTypeComputer::computeNodeTypes(), CState::computeTranshipTime(), MSPModel_NonInteracting::PState::computeWalkingTime(), MSCFModel_Krauss::dawdle(), MSCFModel_Daniel1::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_KraussOrig1::dawdle(), MSE2Collector::detectorUpdate(), GUIVehicle::drawAction_drawVehicleBlinker(), GUIVehicle::drawBestLanes(), GUIPolygon::drawGL(), GUILane::drawGL(), MSCalibrator::execute(), MSVehicle::executeMove(), MSCFModel_PWag2009::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel::freeSpeed(), NBEdgeCont::generateStreetSigns(), NBNode::geometryLike(), GUIMessageWindow::getActiveStringObject(), Distribution_Points::getAreaPerc(), MSLane::getCriticalLeader(), MSInductLoop::getCurrentOccupancy(), MSEdge::getCurrentTravelTime(), ROVehicle::getDepartureTime(), MSDevice_Routing::getEffort(), PedestrianEdge< E, L, N >::getEffort(), GUIVisualizationSizeSettings::getExaggeration(), MSLane::getFollowerOnConsecutive(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), MSLane::getLeaderOnConsecutive(), MSLink::getLeaveTime(), MSVehicle::getSafeFollowSpeed(), MSCFModel::getSecureGap(), MSCFModel::getSpeedAfterMaxDecel(), ROEdge::getTravelTime(), MSLink::getZipperSpeed(), GUIDialog_ViewSettings::GUIDialog_ViewSettings(), GUIJunctionWrapper::GUIJunctionWrapper(), MSVehicle::Influencer::influenceSpeed(), MSLCM_DK2008::informBlocker(), MSLCM_JE2013::informFollower(), MSLCM_LC2013::informFollower(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), NIImporter_OpenStreetMap::insertEdge(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), MSLane::isInsertionSuccess(), NBEdgeCont::joinSameNodeConnectingEdges(), SUMORouteLoaderControl::loadNext(), MAX3(), MAX4(), MSCFModel::maximumSafeFollowSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_SmartSK::moveHelper(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIImporter_OpenDrive::myStartElement(), GNETLSEditor::onCmdPhaseCreate(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), MSPModel_Striping::PState::otherStripe(), SUMOVehicleParserHelper::parseFlowAttributes(), NBLoadedSUMOTLDef::patchIfCrossingsAdded(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSVehicle::processNextStop(), MSEdge::recalcCache(), MSCalibrator::remainingVehicleCapacity(), NBEdgeCont::retrievePossiblySplit(), MSLCM_JE2013::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), GNELane::setMultiColor(), GUILane::setMultiColor(), NBEdgeCont::splitAt(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), MSPModel_Striping::PState::stripe(), AGFreeTime::typeFromHomeDay(), AGFreeTime::typeFromHomeEvening(), AGFreeTime::typeFromHomeNight(), MSVehicle::updateBestLanes(), CHRouter< E, V, PF >::CHInfo::updateLevel(), MSVehicleControl::vehicleDeparted(), TraCIServerAPI_Vehicle::vtdMap(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSPModel_Striping::PState::walk(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), ODMatrix::write(), NWWriter_SUMO::writeInternalEdges(), MSQueueExport::writeLane(), RODFDetector::writeSingleSpeedTrigger(), MSInductLoop::writeTypedXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inline |
Definition at line 93 of file StdDefs.h.
References MAX2().
Referenced by MSActuatedTrafficLightLogic::duration(), NBRampsComputer::fulfillsRampConstraints(), MSVehicle::planMoveInternal(), MSContainer::MSContainerStage_Waiting::proceed(), and MSPerson::MSPersonStage_Waiting::proceed().
|
inline |
|
inline |
Definition at line 73 of file StdDefs.h.
Referenced by MSLCM_JE2013::_patchSpeed(), MSLCM_LC2013::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSVehicle::DriveProcessItem::adaptLeaveSpeed(), MSVehicle::adaptToLeader(), MSVehicle::addStop(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSBaseVehicle::calculateArrivalParams(), GawronCalculator< R, E, V >::calculateProbabilities(), RGBColor::changedBrightness(), MSLane::checkFailure(), GUIApplicationWindow::checkGamingEvents(), MSVehicleTransfer::checkInsertions(), Bresenham::compute(), NBNetBuilder::compute(), EulerSpiral::compute_es_params(), NBEdge::computeAngle(), MSVehicleType::computeChosenSpeedDeviation(), NBNode::computeLanes2Lanes(), NBNodeShapeComputer::computeNodeShapeDefault(), computeRoutes(), NBNode::computeSmoothShape(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), GLHelper::drawBoxLines(), GUIContainerStop::drawGL(), GUIBusStop::drawGL(), GUIChargingStation::drawGL(), GUIBaseVehicle::drawGL(), GNELane::drawMarkings(), GUILane::drawMarkings(), MSActuatedTrafficLightLogic::duration(), MSVehicle::estimateLeaveSpeed(), MSVehicle::estimateSpeedAfterDistance(), MSVehicle::executeMove(), NBEdge::firstIntersection(), MSCFModel_Kerner::followSpeed(), MSCFModel_Daniel1::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_Krauss::followSpeed(), MSLane::freeInsertion(), MSCFModel_Wiedemann::fullspeed(), MSActuatedTrafficLightLogic::gapControl(), Distribution_Points::getAreaPerc(), MSInductLoop::getCurrentOccupancy(), MSContainer::MSContainerStage_Driving::getEdgePos(), MSPerson::MSPersonStage_Driving::getEdgePos(), ROEdge::getEffort(), ROEdge::getEmissionEffort(), MSBaseVehicle::getImpatience(), MSPModel_Striping::PState::getImpatience(), GeomHelper::getMinAngleDiff(), ROEdge::getMinimumTravelTime(), NBNodesEdgesSorter::crossing_by_junction_angle_sorter::getMinRank(), ROEdge::getNoiseEffort(), CState::getPosition(), GUIBaseVehicle::getSeatPosition(), MSCFModel::getSecureGap(), ROEdge::getTravelTime(), MSLane::getVehicleMaxSpeed(), MSLink::getZipperSpeed(), GUIDialog_ViewSettings::GUIDialog_ViewSettings(), MSVehicle::Influencer::influenceSpeed(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), GNETLSEditor::initPhaseTable(), MSPModel_Striping::initWalkingAreaPaths(), MSLane::insertVehicle(), MSCFModel::interactionGap(), NBNodeCont::joinJunctions(), SUMORouteLoaderControl::loadNext(), MSCFModel_KraussAccelBound::maxNextSpeed(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MSLane::maxSpeedGapInsertion(), MIN3(), MIN4(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel::moveHelper(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), NBEdge::NBEdge(), MSDevice_Tripinfo::notifyMove(), operator>>(), MSPModel_Striping::PState::otherStripe(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), TraCIServerAPI_Junction::processGet(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Lane::processGet(), ROLoader::processRoutes(), NBEdge::reinit(), NBEdge::shiftPositionAtNode(), NBEdgeCont::splitAt(), NBEdge::startShapeAt(), MSCFModel_Krauss::stopSpeed(), MSCFModel_Kerner::stopSpeed(), MSCFModel_Daniel1::stopSpeed(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_KraussOrig1::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), MSPModel_Striping::PState::stripe(), AGFreeTime::typeFromHomeNight(), MSVehicle::updateBestLanes(), MSVehicleControl::vehicleDeparted(), TraCIServerAPI_Vehicle::vtdMap(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSPModel_Striping::PState::walk(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), MSMeanData_Emissions::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), MSInductLoop::writeTypedXMLOutput(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().
|
inline |
Definition at line 86 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), NBNodeShapeComputer::badIntersection(), MSTrafficLightLogic::init(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel::moveHelper(), RONet::saveAndRemoveRoutesUntil(), and MSPModel_Striping::PState::walk().
|
inline |
Definition at line 100 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), and GLHelper::drawBoxLines().
bool gDebugFlag1 |
global utility flags for debugging
Definition at line 102 of file StdDefs.cpp.
Referenced by MSLCM_JE2013::_patchSpeed(), NBNode::buildCrossings(), NBNode::buildWalkingAreas(), NBNode::checkCrossing(), NBEdge::getCrossingAngle(), NBNode::getEdgesSortedByAngleAtNodeCenter(), NBNode::guessCrossings(), ISNAN(), and MSLCM_JE2013::patchSpeed().
bool gDebugFlag2 |
Definition at line 103 of file StdDefs.cpp.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSLCM_JE2013::inform(), MSLCM_JE2013::informFollower(), MSLCM_JE2013::informLeader(), ISNAN(), MSLCM_JE2013::saveBlockerLength(), MSLCM_JE2013::slowDownForBlocked(), and MSLCM_JE2013::wantsChange().
std::string gDebugSelectedVehicle |
Definition at line 104 of file StdDefs.cpp.
Referenced by MSLaneChanger::change(), MSVehicle::checkRewindLinkLanes(), MSVehicle::executeMove(), ISNAN(), GUIGLObjectPopupMenu::onCmdAddSelected(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), MSVehicle::updateBestLanes(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
Definition at line 54 of file StdDefs.h.
Referenced by NIXMLEdgesHandler::myEndElement().
the speed threshold at which vehicles are considered as halting
Definition at line 57 of file StdDefs.h.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), GUIApplicationWindow::checkGamingEvents(), MSVehicle::executeMove(), MSVehicle::getSpaceTillLastStanding(), MSLane::isInsertionSuccess(), MSDevice_Tripinfo::notifyMove(), MSVehicle::planMoveInternal(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Lane::processGet(), MSLCM_JE2013::slowDownForBlocked(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
Definition at line 52 of file StdDefs.h.
Referenced by NBEdge::computeLaneShapes(), GUILane::drawBikeMarkings(), GNELane::drawMarkings(), GUILane::drawMarkings(), NIImporter_SUMO::reconstructEdgeShape(), and NBEdge::shiftPositionAtNode().
Definition at line 49 of file StdDefs.h.
Referenced by NLHandler::addLane(), NBNode::buildCrossings(), NBNode::buildWalkingAreas(), NBEdge::computeLaneShapes(), GUIViewTraffic::doPaintGL(), GNEViewNet::doPaintGL(), GUILane::drawArrows(), NBEdge::getLaneWidth(), MSVehicle::getPosition(), NIImporter_OpenStreetMap::insertEdge(), GUISUMOAbstractView::makeSnapshot(), NBRampsComputer::moveRampRight(), and NIImporter_SUMO::reconstructEdgeShape().
Definition at line 53 of file StdDefs.h.
Referenced by NBEdge::getMaxLaneOffset(), and NIXMLEdgesHandler::myEndElement().