Definition in file StdDefs.h.
#include <config.h>
Go to the source code of this file.
Defines | |
| #define | mBYs2kmBYh(x) ((SUMOReal) (x/3.6)) |
Functions | |
| 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 | |
| const SUMOReal | SUMO_const_halfLaneAndOffset = (SUMOReal)(3.2/2.+.1) |
| const SUMOReal | SUMO_const_halfLaneWidth = (SUMOReal) 1.6 |
| 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 |
| T MAX2 | ( | T | a, | |
| T | b | |||
| ) | [inline] |
Definition at line 61 of file StdDefs.h.
Referenced by MSCFModel_IDM::_updateSpeed(), MSCFModel_PWag2009::_v(), MSCFModel_Kerner::_v(), ShapeContainer::add(), RORouteDef_Alternatives::addAlternative(), RODFNet::buildEdgeFlowMap(), MSVehicle::checkRewindLinkLanes(), traci::TraCIServer::commandSlowDown(), NBNodeShapeComputer::compute(), NBNode::computeInternalLaneShape(), HelpersHBEFA::computeUsing(), MSCFModel_PWag2009::dawdle(), MSCFModel_KraussOrig1::dawdle(), MSCFModel_Krauss::dawdle(), GUIViewTraffic::drawBestLanes(), Distribution_Points::getAreaPerc(), MSInductLoop::getCurrentOccupancy(), MSDevice_Routing::getEffort(), RODFDetectorCon::getFlowFor(), MSLane::getLastVehicleInformation(), GeomHelper::getMaxAngleDiff(), NIImporter_OpenDrive::OpenDriveEdge::getMaxLaneNumber(), ShapeContainer::getPOICont(), ShapeContainer::getPolygonCont(), MSLaneChanger::getRealThisLeader(), MSCFModel::getSpeedAfterMaxDecel(), GUIJunctionWrapper::GUIJunctionWrapper(), MSLCM_DK2004::informBlocker(), MSCFModel_PWag2009::interactionGap(), MSCFModel_KraussOrig1::interactionGap(), MSCFModel_Krauss::interactionGap(), MSCFModel_Kerner::interactionGap(), MSCFModel_IDM::interactionGap(), MSCFModel::leftVehicleVsafe(), MAX3(), MAX4(), MSVehicle::moveFirstChecked(), MSCFModel_PWag2009::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_Krauss::moveHelper(), MSCFModel_Kerner::moveHelper(), MSCFModel_IDM::moveHelper(), MSVehicle::moveRegardingCritical(), MSPerson::MSPersonStage_Walking::MSPersonStage_Walking(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NLTriggerBuilder::parseAndBuildBusStop(), MSLCM_DK2004::patchSpeed(), MSPerson::MSPersonStage_Walking::proceed(), MSVehicle::processNextStop(), TraCIServerAPI_Vehicle::processSet(), NBEdgeCont::retrievePossiblySplitted(), MSVehicle::startSpeedAdaption(), MSE2Collector::update(), MSVehicleControl::vehicleEmitted(), MSVehicle::vsafeCriticalCont(), MSLCM_DK2004::wantsChangeToLeft(), MSLCM_DK2004::wantsChangeToRight(), ODMatrix::write(), RODFDetector::writeSingleSpeedTrigger(), NBNode::writeXMLInternalLinks(), MSInductLoop::writeXMLOutput(), and MSE2Collector::writeXMLOutput().
| T MAX3 | ( | T | a, | |
| T | b, | |||
| T | c | |||
| ) | [inline] |
Definition at line 75 of file StdDefs.h.
References MAX2().
Referenced by MSVehicleType::getMaxSpeedWithDeviation(), and MSPerson::MSPersonStage_Waiting::proceed().
00075 { 00076 return MAX2(c, a>b?a:b); 00077 }
| T MAX4 | ( | T | a, | |
| T | b, | |||
| T | c, | |||
| T | d | |||
| ) | [inline] |
| T MIN2 | ( | T | a, | |
| T | b | |||
| ) | [inline] |
Definition at line 55 of file StdDefs.h.
Referenced by MSCFModel_Kerner::_v(), MSVehicle::adaptMaxSpeed(), ShapeContainer::add(), RORouteDef_Alternatives::addAlternative(), NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), MSVehicleTransfer::checkEmissions(), MSEmitter::childCheckEmit(), MSCalibrator::childCheckEmit(), traci::TraCIServer::commandAddVehicle(), EulerSpiral::compute_es_params(), NBNodeShapeComputer::computeContinuationNodeShape(), NBNode::computeInternalLaneShape(), MSCFModel_IDM::desiredSpeed(), MSLane::emit(), MSCFModel_KraussOrig1::ffeS(), MSCFModel_Krauss::ffeS(), MSCFModel_Kerner::ffeS(), MSCFModel_KraussOrig1::ffeV(), MSCFModel_Krauss::ffeV(), MSCFModel_Kerner::ffeV(), MSLane::freeEmit(), Distribution_Points::getAreaPerc(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), MSInductLoop::getCurrentOccupancy(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), getMaxSpeedRegardingNextLanes(), GeomHelper::getMinAngleDiff(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), ROEdge::getPMxEffort(), ShapeContainer::getPOICont(), ShapeContainer::getPolygonCont(), MSLaneChanger::getRealFollower(), traci::TraCIServer::handlePolygonDomain(), traci::TraCIServer::handleRoadMapDomain(), MSCFModel_KraussOrig1::hasSafeGap(), MSCFModel_Krauss::hasSafeGap(), MSCFModel_Kerner::hasSafeGap(), MSLCM_DK2004::inform(), MSCFModel_PWag2009::interactionGap(), MSCFModel_KraussOrig1::interactionGap(), MSCFModel_Krauss::interactionGap(), MSCFModel_Kerner::interactionGap(), MSLane::isEmissionSuccess(), MSCFModel::leftVehicleVsafe(), MSCFModel::maxNextSpeed(), MIN3(), MIN4(), MSVehicle::moveFirstChecked(), MSCFModel_PWag2009::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_Krauss::moveHelper(), MSCFModel_Kerner::moveHelper(), MSCFModel_IDM::moveHelper(), MSVehicle::moveRegardingCritical(), MSLCM_DK2004::patchSpeed(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Lane::processGet(), MSVehicle::vsafeCriticalCont(), MSLCM_DK2004::wantsChangeToLeft(), MSLCM_DK2004::wantsChangeToRight(), MSMeanData_Net::MSLaneMeanDataValues::write(), MSMeanData_HBEFA::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), NBNode::writeXMLInternalLinks(), MSMeanData::writeXMLOutput(), MSInductLoop::writeXMLOutput(), and MSE3Collector::writeXMLOutput().
| T MIN3 | ( | T | a, | |
| T | b, | |||
| T | c | |||
| ) | [inline] |
Definition at line 68 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), MSEmitter::childCheckEmit(), traci::TraCIServer::commandAddVehicle(), MSVehicleType::getMaxSpeedWithDeviation(), MSCFModel_PWag2009::hasSafeGap(), MSCFModel_KraussOrig1::hasSafeGap(), MSCFModel_Krauss::hasSafeGap(), MSCFModel_Kerner::hasSafeGap(), MSCFModel_IDM::hasSafeGap(), MSCFModel_PWag2009::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_Krauss::moveHelper(), MSCFModel_Kerner::moveHelper(), MSCFModel_IDM::moveHelper(), MSVehicle::vsafeCriticalCont(), MSLCM_DK2004::wantsChangeToLeft(), and MSLCM_DK2004::wantsChangeToRight().
00068 { 00069 return MIN2(c, a<b?a:b); 00070 }
| T MIN4 | ( | T | a, | |
| T | b, | |||
| T | c, | |||
| T | d | |||
| ) | [inline] |
Definition at line 82 of file StdDefs.h.
References MIN2().
Referenced by MSCFModel_Kerner::_v(), GLHelper::drawBoxLines(), MSCFModel_PWag2009::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel_Krauss::moveHelper(), and MSCFModel_Kerner::moveHelper().
| const SUMOReal SUMO_const_halfLaneAndOffset = (SUMOReal)(3.2/2.+.1) |
Definition at line 41 of file StdDefs.h.
Referenced by NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), GUIEdge::drawGL(), NBEdge::getMaxLaneOffsetPositionAt(), NBEdge::getMinLaneOffsetPositionAt(), NBNodeShapeComputer::replaceFirstChecking(), and NBNodeShapeComputer::replaceLastChecking().
| const SUMOReal SUMO_const_halfLaneWidth = (SUMOReal) 1.6 |
Definition at line 37 of file StdDefs.h.
Referenced by NBNodeShapeComputer::computeContinuationNodeShape(), NBNodeShapeComputer::computeNodeShapeByCrosses(), GUILaneWrapper::drawGL(), NBNodeShapeComputer::joinSameDirectionEdges(), and ROWdrawAction_drawLinkRules().
| const SUMOReal SUMO_const_laneOffset = (SUMOReal) .1 |
| const SUMOReal SUMO_const_laneWidth = (SUMOReal) 3.2 |
Definition at line 36 of file StdDefs.h.
Referenced by NBNodeShapeComputer::replaceFirstChecking(), NBNodeShapeComputer::replaceLastChecking(), ROWdrawAction_drawLinkNo(), ROWdrawAction_drawLinkRules(), ROWdrawAction_drawTLSLinkNo(), and NBEdge::width().
| const SUMOReal SUMO_const_laneWidthAndOffset = (SUMOReal) 3.3 |
Definition at line 40 of file StdDefs.h.
Referenced by NBNodeCont::buildOffRamp(), NBNodeCont::buildOnRamp(), NBEdge::computeLaneShape(), NBEdge::getMaxLaneOffset(), NIXMLEdgesHandler::myEndElement(), NBNodeShapeComputer::replaceFirstChecking(), and NBNodeShapeComputer::replaceLastChecking().
| const SUMOReal SUMO_const_quarterLaneWidth = (SUMOReal) 0.8 |
1.5.6