SUMO - Simulation of Urban MObility
|
Go to the source code of this file.
Macros | |
#define | UNUSED_PARAMETER(x) ((void)(x)) |
Functions | |
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 |
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 UNUSED_PARAMETER | ( | x | ) | ((void)(x)) |
Definition at line 38 of file StdDefs.h.
Referenced by MSOffTrafficLightLogic::changeStepAndDuration(), MSVehicle::checkRewindLinkLanes(), SUMOVehicleParserHelper::closeVTypeParsing(), combCallback(), combineCallback(), NBNodeShapeComputer::compute(), RODFNet::computeRoutesFor(), MSDetectorFileOutput::detectorUpdate(), NIVissimDisturbance::dictionary(), GUITriggeredRerouter::drawGL(), GUIVehicle::drawGLAdditional(), GUIGlObject::drawGLAdditional(), FXSingleEventThread::FXSingleEventThread(), FXEX::FXThreadEvent::FXThreadEvent(), NIImporter_OpenDrive::geomFromArc(), NIImporter_OpenDrive::geomFromLine(), NIImporter_OpenDrive::geomFromPoly(), NIImporter_OpenDrive::geomFromSpiral(), RODFDetectorCon::getAggFlowFor(), MSJunctionLogic::getFoesFor(), MSJunctionLogic::getInternalFoesFor(), MSJunctionLogic::getIsCont(), PHEMCEP::GetMaxAccel(), GUIEdge::getParameterWindow(), MSEdge::insertVehicle(), MSCFModel_Wiedemann::interactionGap(), NIImporter_ArcView::load(), NBEdge::moveOutgoingConnectionsFrom(), 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(), RGBColor::parseColorReporting(), MSLaneSpeedTrigger::processCommand(), NBNodeCont::removeIsolatedRoads(), NBEdge::replaceInConnections(), MSMeanData::resetOnly(), MSAbstractLaneChangeModel::saveBlockerLength(), MSCFModel::setImperfection(), MSLink::setRequestInformation(), GUIDialog_EditViewport::setValues(), 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(), NBNetBuilder::transformCoordinates(), MSOffTrafficLightLogic::trySwitch(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingNearest(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSLCM_DK2008::wantsChange(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), and MSInstantInductLoop::writeXMLOutput().
Definition at line 49 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_YELLOW_MAJOR, LINKSTATE_TL_YELLOW_MINOR, 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_YELLOW_MAJOR, and SUMO_color_TL_YELLOW_MINOR.
Referenced by GUILane::drawLinkRules(), and GUITLLogicPhasesTrackerWindow::drawValues().
|
inline |
Definition at line 106 of file StdDefs.h.
Referenced by MSCFModel_Krauss::_vsafe(), and ROGawronCalculator::calculateProbabilities().
|
inline |
Definition at line 71 of file StdDefs.h.
Referenced by MSLCM_JE2013::_patchSpeed(), MSLCM_LC2013::_patchSpeed(), MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_IDM::_v(), MSCFModel_Krauss::_vsafe(), MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSVehicle::adaptToLeader(), MSRouteHandler::addStop(), IDSupplier::avoid(), NIVisumTL::build(), MSBaseVehicle::calculateArrivalPos(), ROGawronCalculator::calculateProbabilities(), RGBColor::changedBrightness(), MSVehicle::checkRewindLinkLanes(), NBNodeShapeComputer::compute(), Bresenham::compute(), HelpersHBEFA::compute(), NBNetBuilder::compute(), MSVehicleType::computeChosenSpeedDeviation(), NBNode::computeInternalLaneShape(), NBNodeTypeComputer::computeNodeTypes(), MSPerson::MSPersonStage_Walking::computeWalkingTime(), MSCFModel_Krauss::dawdle(), MSCFModel_Daniel1::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_KraussOrig1::dawdle(), MSE2Collector::detectorUpdate(), drawAction_drawVehicleBlinker(), GUIVehicle::drawBestLanes(), GUIPolygon::drawGL(), MSCalibrator::execute(), MSVehicle::executeMove(), MSCFModel_SmartSK::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel::freeSpeed(), NBNode::geometryLike(), Distribution_Points::getAreaPerc(), MSInductLoop::getCurrentOccupancy(), MSEdge::getCurrentTravelTime(), MSDevice_Routing::getEffort(), MSBaseVehicle::getImpatience(), GeomHelper::getMaxAngleDiff(), MSLane::getMissingRearGap(), MSLaneChanger::getRealThisLeader(), MSCFModel::getSecureGap(), MSCFModel::getSpeedAfterMaxDecel(), ROEdge::getTravelTime(), 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(), NBEdgeCont::joinSameNodeConnectingEdges(), MAX3(), MAX4(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel_Daniel1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIImporter_OpenDrive::myStartElement(), NBContHelper::relative_outgoing_edge_sorter::operator()(), NBContHelper::relative_incoming_edge_sorter::operator()(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), GeomHelper::pointOnLine(), MSVehicle::processNextStop(), MSCalibrator::remainingVehicleCapacity(), NBEdgeCont::retrievePossiblySplit(), MSLCM_JE2013::saveBlockerLength(), MSLCM_LC2013::saveBlockerLength(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), AGFreeTime::typeFromHomeDay(), AGFreeTime::typeFromHomeEvening(), AGFreeTime::typeFromHomeNight(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSLCM_DK2008::wantsChangeToLeft(), MSLCM_DK2008::wantsChangeToRight(), ODMatrix::write(), NWWriter_SUMO::writeInternalEdges(), MSQueueExport::writeLane(), RODFDetector::writeSingleSpeedTrigger(), MSInductLoop::writeTypedXMLOutput(), and MSE2Collector::writeXMLOutput().
|
inline |
Definition at line 85 of file StdDefs.h.
References MAX2().
Referenced by NBRampsComputer::fulfillsRampConstraints(), and MSPerson::MSPersonStage_Waiting::proceed().
|
inline |
|
inline |
Definition at line 65 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(), NBEdge::buildInnerEdges(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSBaseVehicle::calculateArrivalPos(), ROGawronCalculator::calculateProbabilities(), RGBColor::changedBrightness(), MSLane::checkFailure(), MSVehicleTransfer::checkInsertions(), Bresenham::compute(), NBNetBuilder::compute(), EulerSpiral::compute_es_params(), NBEdge::computeAngle(), MSVehicleType::computeChosenSpeedDeviation(), NBNodeShapeComputer::computeContinuationNodeShape(), NBNode::computeInternalLaneShape(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), MSCFModel_IDM::desiredSpeed(), PositionVector::distance(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), MSVehicle::estimateLeaveSpeed(), MSVehicle::estimateSpeedAfterDistance(), MSVehicle::executeMove(), MSCFModel_Krauss::followSpeed(), MSCFModel_Kerner::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_Daniel1::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSLane::freeInsertion(), MSCFModel_Wiedemann::fullspeed(), Distribution_Points::getAreaPerc(), MSVehicle::getBestLanes(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), GUIVehicle::getColorValue(), MSInductLoop::getCurrentOccupancy(), MSPerson::MSPersonStage_Driving::getEdgePos(), ROEdge::getEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), MSBaseVehicle::getImpatience(), GeomHelper::getMinAngleDiff(), MSEdge::getMinimumTravelTime(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), ROEdge::getPMxEffort(), MSLaneChanger::getRealFollower(), GUIVehicle::getSeatPosition(), MSCFModel::getSecureGap(), MSVehicle::Influencer::influenceSpeed(), MSLCM_JE2013::informLeader(), MSLCM_LC2013::informLeader(), MSTrafficLightLogic::init(), MSLane::insertVehicle(), MSCFModel::interactionGap(), MSLane::isInsertionSuccess(), SUMORouteLoaderControl::loadNext(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MSLane::maxSpeedGapInsertion(), MIN3(), MIN4(), MSCFModel_SmartSK::moveHelper(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel::moveHelper(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), operator>>(), MSLCM_DK2008::patchSpeed(), MSVehicle::planMoveInternal(), GeomHelper::pointOnLine(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Junction::processGet(), TraCIServerAPI_Lane::processGet(), RONet::saveAndRemoveRoutesUntil(), MSCFModel_Krauss::stopSpeed(), MSCFModel_Kerner::stopSpeed(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_Daniel1::stopSpeed(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_KraussOrig1::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), AGFreeTime::typeFromHomeNight(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), 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 78 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSCFModel_SmartSK::moveHelper(), MSCFModel_Daniel1::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), and MSCFModel::moveHelper().
|
inline |
Definition at line 92 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), and GLHelper::drawBoxLines().
bool gDebugFlag1 |
global utility flags for debugging
Definition at line 82 of file StdDefs.cpp.
Referenced by MSLCM_JE2013::_patchSpeed(), and MSLCM_JE2013::patchSpeed().
bool gDebugFlag2 |
Definition at line 83 of file StdDefs.cpp.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSLCM_JE2013::inform(), MSLCM_JE2013::informFollower(), MSLCM_JE2013::informLeader(), MSLCM_JE2013::saveBlockerLength(), MSLCM_JE2013::slowDownForBlocked(), and MSLCM_JE2013::wantsChange().
Definition at line 50 of file StdDefs.h.
Referenced by NBRampsComputer::moveRampRight(), NIXMLEdgesHandler::myEndElement(), NBNodeShapeComputer::replaceFirstChecking(), and NBNodeShapeComputer::replaceLastChecking().
Definition at line 46 of file StdDefs.h.
Referenced by NBNodeShapeComputer::computeContinuationNodeShape(), NBNodeShapeComputer::computeNodeShapeByCrosses(), and NBNodeShapeComputer::joinSameDirectionEdges().
the speed threshold at which vehicles are considered as halting
Definition at line 53 of file StdDefs.h.
Referenced by MSLCM_JE2013::_wantsChange(), MSLCM_LC2013::_wantsChange(), MSVehicle::executeMove(), MSVehicle::getSpaceTillLastStanding(), MSDevice_Tripinfo::notifyMove(), TraCIServerAPI_Edge::processGet(), TraCIServerAPI_Lane::processGet(), MSLCM_JE2013::slowDownForBlocked(), MSLCM_LC2013::slowDownForBlocked(), MSLCM_DK2008::wantsChangeToLeft(), and MSLCM_DK2008::wantsChangeToRight().
Definition at line 48 of file StdDefs.h.
Referenced by NBEdge::computeLaneShapes(), GUILane::drawMarkings(), NIImporter_SUMO::reconstructEdgeShape(), and NBEdge::width().
Definition at line 45 of file StdDefs.h.
Referenced by NLHandler::addLane(), NBEdge::computeLaneShapes(), GUIViewTraffic::doPaintGL(), NBEdge::getLaneWidth(), MSVehicle::getPosition(), GUISUMOAbstractView::makeSnapshot(), NIImporter_SUMO::reconstructEdgeShape(), NBNodeShapeComputer::replaceFirstChecking(), NBNodeShapeComputer::replaceLastChecking(), NBEdge::width(), and NWWriter_OpenDrive::writeNetwork().
Definition at line 49 of file StdDefs.h.
Referenced by NBEdge::getMaxLaneOffset(), NBRampsComputer::moveRampRight(), NIXMLEdgesHandler::myEndElement(), NBNodeShapeComputer::replaceFirstChecking(), and NBNodeShapeComputer::replaceLastChecking().