StdDefs.h File Reference


Detailed Description

Author:
Daniel Krajzewicz
Date:
Fri, 29.04.2005
Version:
Id
StdDefs.h 8236 2010-02-10 11:16:41Z behrisch

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>
MAX2 (T a, T b)
template<typename T>
MAX3 (T a, T b, T c)
template<typename T>
MAX4 (T a, T b, T c, T d)
template<typename T>
MIN2 (T a, T b)
template<typename T>
MIN3 (T a, T b, T c)
template<typename 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


Define Documentation

#define mBYs2kmBYh (  )     ((SUMOReal) (x/3.6))

Definition at line 47 of file StdDefs.h.


Function Documentation

template<typename T>
T MAX2 ( a,
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().

00061                {
00062     return a>b?a:b;
00063 }

template<typename T>
T MAX3 ( a,
b,
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 }

template<typename T>
T MAX4 ( a,
b,
c,
d 
) [inline]

Definition at line 89 of file StdDefs.h.

References MAX2().

00089                          {
00090     return MAX2(MAX2(a,b),MAX2(c,d));
00091 }

template<typename T>
T MIN2 ( a,
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().

00055                {
00056     return a<b?a:b;
00057 }

template<typename T>
T MIN3 ( a,
b,
c 
) [inline]

template<typename T>
T MIN4 ( a,
b,
c,
d 
) [inline]


Variable Documentation

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

Definition at line 39 of file StdDefs.h.

Referenced by NBEdge::width().

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 at line 38 of file StdDefs.h.

Referenced by GUILaneWrapper::drawGL().


Generated on Wed May 5 00:06:39 2010 for Sumo - Simulation of Urban MObility by  doxygen 1.5.6