Eclipse SUMO - Simulation of Urban MObility
marouter_main.cpp File Reference
#include <config.h>
#include <iostream>
#include <string>
#include <limits.h>
#include <ctime>
#include <vector>
#include <xercesc/sax/SAXException.hpp>
#include <xercesc/sax/SAXParseException.hpp>
#include <utils/common/FileHelpers.h>
#include <utils/common/StringUtils.h>
#include <utils/common/MsgHandler.h>
#include <utils/common/UtilExceptions.h>
#include <utils/common/SystemFrame.h>
#include <utils/common/RandHelper.h>
#include <utils/common/ToString.h>
#include <utils/distribution/Distribution_Points.h>
#include <utils/iodevices/OutputDevice.h>
#include <utils/iodevices/OutputDevice_String.h>
#include <utils/options/Option.h>
#include <utils/options/OptionsCont.h>
#include <utils/options/OptionsIO.h>
#include <utils/router/RouteCostCalculator.h>
#include <utils/router/DijkstraRouter.h>
#include <utils/router/AStarRouter.h>
#include <utils/router/CHRouter.h>
#include <utils/router/CHRouterWrapper.h>
#include <utils/xml/XMLSubSys.h>
#include <od/ODCell.h>
#include <od/ODDistrict.h>
#include <od/ODDistrictCont.h>
#include <od/ODDistrictHandler.h>
#include <od/ODMatrix.h>
#include <router/ROEdge.h>
#include <router/ROLoader.h>
#include <router/RONet.h>
#include <router/RORoute.h>
#include <router/RORoutable.h>
#include "ROMAFrame.h"
#include "ROMAAssignments.h"
#include "ROMAEdgeBuilder.h"
#include "ROMARouteHandler.h"
#include "ROMAEdge.h"
Include dependency graph for marouter_main.cpp:

Go to the source code of this file.

Functions

void computeAllPairs (RONet &net, OptionsCont &oc)
 
void computeRoutes (RONet &net, OptionsCont &oc, ODMatrix &matrix)
 
double getTravelTime (const ROEdge *const edge, const ROVehicle *const, double)
 
void initNet (RONet &net, ROLoader &loader, OptionsCont &oc)
 
int main (int argc, char **argv)
 

Detailed Description

Author
Daniel Krajzewicz
Jakob Erdmann
Laura Bieker
Michael Behrisch
Date
Thu, 06 Jun 2002

Definition in file marouter_main.cpp.

Function Documentation

◆ computeAllPairs()

void computeAllPairs ( RONet net,
OptionsCont oc 
)

Computes all pair shortest paths, saving them

Definition at line 110 of file marouter_main.cpp.

References OutputDevice::createDeviceByOption(), ROEdge::getAllEdges(), OptionsCont::getBool(), OutputDevice::getDeviceByOption(), RONet::getEdgeNumber(), RONet::getInternalEdgeNumber(), and getTravelTime().

Referenced by main().

Here is the caller graph for this function:

◆ computeRoutes()

void computeRoutes ( RONet net,
OptionsCont oc,
ODMatrix matrix 
)

Computes the routes saving them

Definition at line 146 of file marouter_main.cpp.

References ODMatrix::applyCurve(), RONet::cleanup(), OutputDevice::closeTag(), OutputDevice::createDeviceByOption(), DEFAULT_VTYPE_ID, ROEdge::getAllEdges(), ODMatrix::getBegin(), OptionsCont::getBool(), ODMatrix::getCells(), OutputDevice::getDeviceByOption(), RORoute::getEdgeVector(), ODMatrix::getEnd(), OptionsCont::getFloat(), OptionsCont::getInt(), ROEdge::getNoiseEffort(), ROMAAssignments::getPenalizedTT(), RONet::getRouteOutput(), ROEdge::getStoredEffort(), OutputDevice_String::getString(), OptionsCont::getString(), OptionsCont::getStringVector(), ROEdge::getTravelTimeStatic(), ROEdge::getTravelTimeStaticPriorityFactor(), RONet::getVehicleTypeSecure(), RONet::hasLoadedEffort(), RONet::hasPermissions(), ROMAAssignments::incremental(), ROEdge::initPriorityFactor(), OptionsCont::isDefault(), OptionsCont::isSet(), MAX2(), MIN2(), RONet::openOutput(), OutputDevice::openTag(), ODMatrix::parseTimeLine(), SUMOAbstractRouter< E, V >::recomputeCosts(), SUMOAbstractRouter< E, V >::reset(), ROMAAssignments::resetFlows(), RORoute::setCosts(), ODMatrix::sortByBeginTime(), string2time(), ROMAAssignments::sue(), SUMO_ATTR_BEGIN, SUMO_ATTR_DEPART, SUMO_ATTR_END, SUMO_ATTR_ID, SUMO_ATTR_KEY, SUMO_ATTR_NUMBER, SUMO_ATTR_VALUE, SUMO_TAG_FLOW, SUMO_TAG_PARAM, SUMO_TAG_ROUTE_DISTRIBUTION, SUMO_TAG_VEHICLE, SUMOTime_MAX, SVC_IGNORING, time2string(), TL, TLF, toString(), WRITE_WARNING, WRITE_WARNINGF, OutputDevice::writeAttr(), ODMatrix::writeDefaultAttrs(), OutputDevice::writePreformattedTag(), and RORoute::writeXMLDefinition().

Referenced by main().

Here is the caller graph for this function:

◆ getTravelTime()

double getTravelTime ( const ROEdge *const  edge,
const ROVehicle * const  ,
double   
)

Definition at line 101 of file marouter_main.cpp.

References ROEdge::getLength(), and ROEdge::getSpeedLimit().

Referenced by computeAllPairs().

Here is the caller graph for this function:

◆ initNet()

void initNet ( RONet net,
ROLoader loader,
OptionsCont oc 
)

loads the net The net is in this meaning made up by the net itself and the dynamic weights which may be supplied in a separate file

Definition at line 85 of file marouter_main.cpp.

References OptionsCont::getBool(), OptionsCont::getString(), OptionsCont::isSet(), ROLoader::loadNet(), ROLoader::loadWeights(), and ROEdge::setGlobalOptions().

Referenced by main().

Here is the caller graph for this function:

◆ main()