![]() |
SUMO - Simulation of Urban MObility
|
#include <config.h>#include <xercesc/sax/SAXException.hpp>#include <xercesc/sax/SAXParseException.hpp>#include <utils/common/TplConvert.h>#include <iostream>#include <string>#include <limits.h>#include <ctime>#include <router/ROLoader.h>#include <router/RONet.h>#include <router/ROEdge.h>#include <utils/vehicle/DijkstraRouter.h>#include <utils/vehicle/AStarRouter.h>#include <utils/vehicle/CHRouter.h>#include <utils/vehicle/CHRouterWrapper.h>#include "RODUAEdgeBuilder.h"#include <router/ROFrame.h>#include <utils/common/MsgHandler.h>#include <utils/options/Option.h>#include <utils/options/OptionsCont.h>#include <utils/options/OptionsIO.h>#include <utils/common/UtilExceptions.h>#include <utils/common/SystemFrame.h>#include <utils/common/RandHelper.h>#include <utils/common/ToString.h>#include <utils/xml/XMLSubSys.h>#include "RODUAFrame.h"#include <utils/iodevices/OutputDevice.h>
Go to the source code of this file.
Functions | |
| void | computeRoutes (RONet &net, ROLoader &loader, OptionsCont &oc) |
| void | initNet (RONet &net, ROLoader &loader, OptionsCont &oc) |
| int | main (int argc, char **argv) |
| void computeRoutes | ( | RONet & | net, |
| ROLoader & | loader, | ||
| OptionsCont & | oc | ||
| ) |
Computes the routes saving them
Definition at line 98 of file duarouter_main.cpp.
References RONet::adaptIntermodalRouter(), IntermodalRouter< E, L, N, V, INTERNALROUTER >::ALL_JUNCTIONS, RONet::cleanup(), DEFAULT_VTYPE_ID, ROEdge::getAllEdges(), OptionsCont::getBool(), OptionsCont::getInt(), RouterProvider< E, L, N, V >::getIntermodalRouter(), ROEdge::getNoiseEffort(), OptionsCont::getString(), OptionsCont::getStringVector(), ROEdge::getTravelTimeStatic(), RONet::getVehicleTypeSecure(), RONet::hasPermissions(), OptionsCont::isSet(), RONet::openOutput(), ROLoader::openRoutes(), IntermodalRouter< E, L, N, V, INTERNALROUTER >::PARKING_AREAS, ROLoader::processRoutes(), IntermodalRouter< E, L, N, V, INTERNALROUTER >::PT_STOPS, string2time(), SVC_IGNORING, and RONet::writeIntermodal().
Referenced by main().
| 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 78 of file duarouter_main.cpp.
References OptionsCont::getBool(), OptionsCont::getString(), OptionsCont::isSet(), ROLoader::loadNet(), ROLoader::loadWeights(), and ROEdge::setGlobalOptions().
Referenced by main().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 226 of file duarouter_main.cpp.
References TplConvert::_2str(), RODUAFrame::checkOptions(), SystemFrame::close(), computeRoutes(), RODUAFrame::fillOptions(), OptionsCont::getBool(), MsgHandler::getErrorInstance(), OptionsIO::getOptions(), OptionsCont::getOptions(), OptionsCont::getString(), MsgHandler::inform(), XMLSubSys::init(), initNet(), MsgHandler::initOutputOptions(), RandHelper::initRandGlobal(), OptionsCont::processMetaOptions(), OptionsCont::setApplicationDescription(), OptionsCont::setApplicationName(), OptionsIO::setArgs(), XMLSubSys::setValidation(), toString(), VERSION_STRING, and WRITE_ERROR.