SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StdDefs.h File Reference
#include <config.h>

Go to the source code of this file.

Macros

#define UNUSED_PARAMETER(x)   ((void)(x))
 

Functions

template<typename T >
ISNAN (T a)
 
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
 

Detailed Description

Author
Daniel Krajzewicz
Laura Bieker
Michael Behrisch
Date
Fri, 29.04.2005
Version
Id:
StdDefs.h 13811 2013-05-01 20:31:43Z behrisch

Definition in file StdDefs.h.

Macro Definition Documentation

#define UNUSED_PARAMETER (   x)    ((void)(x))

Definition at line 36 of file StdDefs.h.

Referenced by MSOffTrafficLightLogic::changeStepAndDuration(), MSVehicle::checkRewindLinkLanes(), SUMOVehicleParserHelper::closeVTypeParsing(), combineCallback(), NBNodeShapeComputer::compute(), MSDetectorFileOutput::detectorUpdate(), NIVissimDisturbance::dictionary(), GUITriggeredRerouter::drawGL(), GUIGlObject::drawGLAdditional(), MSCFModel::freeSpeed(), AGBusLine::generateBuses(), NIImporter_OpenDrive::geomFromArc(), NIImporter_OpenDrive::geomFromLine(), NIImporter_OpenDrive::geomFromPoly(), RODFDetectorCon::getAggFlowFor(), MSJunctionLogic::getFoesFor(), MSJunctionLogic::getInternalFoesFor(), MSJunctionLogic::getIsCont(), GUIEdge::getParameterWindow(), MSEdge::insertVehicle(), MSCFModel_Wiedemann::interactionGap(), 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(), MSCFModel::setImperfection(), FXSingleEventThread::signal(), FXEX::FXThreadEvent::signal(), toString(), toString< LaneSpreadFunction >(), toString< LinkDirection >(), toString< LinkState >(), toString< SUMOVehicleClass >(), toString< SumoXMLAttr >(), toString< SumoXMLEdgeFunc >(), toString< SumoXMLNodeType >(), toString< SumoXMLTag >(), toString< TrafficLightType >(), NIImporter_DlrNavteq::TrafficlightsHandler::TrafficlightsHandler(), NILoader::transformCoordinates(), MSOffTrafficLightLogic::trySwitch(), and MSInstantInductLoop::writeXMLOutput().

Function Documentation

template<typename T >
T ISNAN ( a)
inline

Definition at line 95 of file StdDefs.h.

Referenced by ROGawronCalculator::calculateProbabilities().

template<typename T >
T MAX2 ( a,
b 
)
inline

Definition at line 60 of file StdDefs.h.

Referenced by MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_IDM::_v(), MSRouteHandler::addStop(), IDSupplier::avoid(), NIVisumTL::build(), MSBaseVehicle::calculateArrivalPos(), ROGawronCalculator::calculateProbabilities(), RGBColor::changedBrightness(), MSVehicle::checkRewindLinkLanes(), NBNodeShapeComputer::compute(), Bresenham::compute(), NBNetBuilder::compute(), HelpersHBEFA::compute(), MSVehicleType::computeChosenSpeedDeviation(), NBNode::computeInternalLaneShape(), NBNodeTypeComputer::computeNodeTypes(), MSPerson::MSPersonStage_Walking::computeWalkingTime(), MSCFModel_Krauss::dawdle(), MSCFModel_SmartSK::dawdle(), MSCFModel_Daniel1::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(), GeomHelper::getMaxAngleDiff(), NIImporter_OpenDrive::OpenDriveEdge::getMaxLaneNumber(), MSLane::getMissingRearGap(), MSLaneChanger::getRealThisLeader(), MSCFModel::getSecureGap(), MSCFModel::getSpeedAfterMaxDecel(), ROEdge::getTravelTime(), GUIJunctionWrapper::GUIJunctionWrapper(), MSVehicle::Influencer::influenceSpeed(), MSLCM_DK2004::informBlocker(), NIImporter_OpenStreetMap::insertEdge(), MSCFModel_IDM::interactionGap(), MSCFModel::interactionGap(), NBEdgeCont::joinSameNodeConnectingEdges(), MSCFModel::leftVehicleVsafe(), MAX3(), MAX4(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel_Daniel1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), NIXMLEdgesHandler::myEndElement(), NIImporter_SUMO::myEndElement(), NIImporter_OpenDrive::myStartElement(), MSLCM_DK2004::patchSpeed(), MSVehicle::planMove(), MSVehicle::processNextStop(), MSCalibrator::remainingVehicleCapacity(), NBEdgeCont::retrievePossiblySplit(), MSCFModel_SmartSK::stopSpeed(), MSCFModel_PWag2009::stopSpeed(), MSCFModel_Wiedemann::stopSpeed(), AGFreeTime::typeFromHomeDay(), AGFreeTime::typeFromHomeEvening(), AGFreeTime::typeFromHomeNight(), TraCIServerAPI_Vehicle::vtdMap_matchingEdgeLane(), TraCIServerAPI_Vehicle::vtdMap_matchingRoutePosition(), MSLCM_DK2004::wantsChangeToLeft(), MSLCM_DK2004::wantsChangeToRight(), ODMatrix::write(), NWWriter_SUMO::writeInternalEdge(), RODFDetector::writeSingleSpeedTrigger(), MSInductLoop::writeTypedXMLOutput(), and MSE2Collector::writeXMLOutput().

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

Definition at line 88 of file StdDefs.h.

References MAX2().

template<typename T >
T MIN2 ( a,
b 
)
inline

Definition at line 54 of file StdDefs.h.

Referenced by MSCFModel_Kerner::_v(), MSCFModel_Wiedemann::_v(), MSCFModel_Krauss::_vsafe(), MSVehicle::DriveProcessItem::adaptLeaveSpeed(), MSVehicle::adaptToLeader(), NBEdge::buildInnerEdges(), NBRampsComputer::buildOffRamp(), NBRampsComputer::buildOnRamp(), MSBaseVehicle::calculateArrivalPos(), ROGawronCalculator::calculateProbabilities(), RGBColor::changedBrightness(), MSVehicleTransfer::checkInsertions(), traci::TraCIServer::commandAddVehicle(), Bresenham::compute(), NBNetBuilder::compute(), MSVehicleType::computeChosenSpeedDeviation(), NBNodeShapeComputer::computeContinuationNodeShape(), NBNode::computeInternalLaneShape(), MSTLLogicControl::WAUTSwitchProcedure_Stretch::cutLogic(), MSCFModel_IDM::desiredSpeed(), PositionVector::distance(), GUIVehicle::drawGL(), GUIBusStop::drawGL(), MSVehicle::estimateLeaveSpeed(), MSVehicle::estimateSpeedAfterDistance(), MSCFModel_Kerner::followSpeed(), MSCFModel_Krauss::followSpeed(), MSCFModel_Daniel1::followSpeed(), MSCFModel_SmartSK::followSpeed(), MSCFModel_PWag2009::followSpeed(), MSCFModel_KraussOrig1::followSpeed(), MSLane::freeInsertion(), MSCFModel_Wiedemann::fullspeed(), Distribution_Points::getAreaPerc(), MSVehicle::getBestLanes(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), MSInductLoop::getCurrentOccupancy(), MSPerson::MSPersonStage_Driving::getEdgePos(), ROEdge::getEffort(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), GeomHelper::getMinAngleDiff(), MSEdge::getMinimumTravelTime(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), ROEdge::getPMxEffort(), MSLaneChanger::getRealFollower(), GUIVehicle::getSeatPosition(), MSVehicle::Influencer::influenceSpeed(), MSLane::insertVehicle(), MSCFModel::interactionGap(), MSLane::isInsertionSuccess(), MSCFModel::leftVehicleVsafe(), SUMORouteLoaderControl::loadNext(), MSCFModel_KraussPS::maxNextSpeed(), MSCFModel::maxNextSpeed(), MSLane::maxSpeedGapInsertion(), MIN3(), MIN4(), MSCFModel_Daniel1::moveHelper(), MSCFModel_SmartSK::moveHelper(), MSCFModel_KraussOrig1::moveHelper(), MSCFModel::moveHelper(), NIImporter_OpenStreetMap::EdgesHandler::myStartElement(), operator>>(), MSLCM_DK2004::patchSpeed(), MSVehicle::planMove(), TraCIServerAPI_Polygon::processGet(), TraCIServerAPI_Lane::processGet(), RONet::saveAndRemoveRoutesUntil(), MSCFModel_Kerner::stopSpeed(), MSCFModel_Krauss::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_DK2004::wantsChangeToLeft(), MSLCM_DK2004::wantsChangeToRight(), MSMeanData_HBEFA::MSLaneMeanDataValues::write(), MSMeanData_Harmonoise::MSLaneMeanDataValues::write(), MSMeanData_Net::MSLaneMeanDataValues::write(), MSInductLoop::writeTypedXMLOutput(), MSE3Collector::writeXMLOutput(), and MSMeanData::writeXMLOutput().

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

Definition at line 81 of file StdDefs.h.

References MIN2().

Referenced by MSCFModel_Kerner::_v(), and GLHelper::drawBoxLines().

Variable Documentation

const SUMOReal SUMO_const_laneOffset = (SUMOReal) .1
const SUMOReal SUMO_const_quarterLaneWidth = (SUMOReal) 0.8

Definition at line 43 of file StdDefs.h.