SUMO - Simulation of Urban MObility
StdDefs.h File Reference
Include dependency graph for StdDefs.h:

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 RGBColorgetLinkColor (const LinkState &ls)
 
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

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
 

Detailed Description

Author
Daniel Krajzewicz
Laura Bieker
Michael Behrisch
Jakob Erdmann
Date
Fri, 29.04.2005
Version
Id
StdDefs.h 19395 2015-11-20 12:22:20Z namdre

Definition in file StdDefs.h.

Macro Definition Documentation

#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().

Function Documentation

const std::string getBuildName ( const std::string &  version)
template<typename T >
T ISNAN ( a)
inline
template<typename T >
T MAX2 ( a,
b 
)
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().

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

Definition at line 107 of file StdDefs.h.

References MAX2().

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

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

Definition at line 100 of file StdDefs.h.

References MIN2().

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

Variable Documentation

const SUMOReal SUMO_const_halfLaneAndOffset = (SUMOReal)(3.2 / 2. + .1)

Definition at line 54 of file StdDefs.h.

Referenced by NIXMLEdgesHandler::myEndElement().

const SUMOReal SUMO_const_halfLaneWidth = (SUMOReal) 1.6

Definition at line 50 of file StdDefs.h.

const SUMOReal SUMO_const_laneWidthAndOffset = (SUMOReal) 3.3

Definition at line 53 of file StdDefs.h.

Referenced by NBEdge::getMaxLaneOffset(), and NIXMLEdgesHandler::myEndElement().

const SUMOReal SUMO_const_quarterLaneWidth = (SUMOReal) 0.8

Definition at line 51 of file StdDefs.h.