Eclipse SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <iostream>
#include <string>
#include <limits.h>
#include <ctime>
#include <memory>
#include <xercesc/sax/SAXException.hpp>
#include <xercesc/sax/SAXParseException.hpp>
#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/iodevices/OutputDevice.h>
#include <utils/options/Option.h>
#include <utils/options/OptionsCont.h>
#include <utils/options/OptionsIO.h>
#include <utils/router/DijkstraRouter.h>
#include <utils/router/AStarRouter.h>
#include <utils/router/CHRouter.h>
#include <utils/router/CHRouterWrapper.h>
#include <utils/vehicle/SUMOVehicleParserHelper.h>
#include <utils/xml/XMLSubSys.h>
#include <router/ROFrame.h>
#include <router/ROLoader.h>
#include <router/RONet.h>
#include <router/ROEdge.h>
#include "RODUAEdgeBuilder.h"
#include "RODUAFrame.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) |
Definition in file duarouter_main.cpp.
void computeRoutes | ( | RONet & | net, |
ROLoader & | loader, | ||
OptionsCont & | oc | ||
) |
Computes the routes saving them
Definition at line 93 of file duarouter_main.cpp.
References RONet::adaptIntermodalRouter(), RONet::cleanup(), DEFAULT_VTYPE_ID, ROEdge::getAllEdges(), OptionsCont::getBool(), OptionsCont::getFloat(), OptionsCont::getInt(), RouterProvider< E, L, N, V >::getIntermodalRouter(), ROEdge::getNoiseEffort(), OptionsCont::getOptions(), ROEdge::getStoredEffort(), OptionsCont::getString(), ROEdge::getTravelTimeStatic(), ROEdge::getTravelTimeStaticPriorityFactor(), ROEdge::getTravelTimeStaticRandomized(), RONet::getVehicleTypeSecure(), gWeightsRandomFactor, RONet::hasBidiEdges(), RONet::hasLoadedEffort(), RONet::hasPermissions(), ROEdge::initPriorityFactor(), OptionsCont::isDefault(), OptionsCont::isSet(), RONet::openOutput(), ROLoader::openRoutes(), SUMOVehicleParserHelper::parseCarWalkTransfer(), ROLoader::processRoutes(), STEPS2TIME, string2time(), SUMOTime_MAX, SVC_IGNORING, TL, TLF, WRITE_WARNINGF, 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 74 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 214 of file duarouter_main.cpp.
References RODUAFrame::checkOptions(), SystemFrame::checkOptions(), SystemFrame::close(), computeRoutes(), MsgHandlerSynchronized::create(), RODUAFrame::fillOptions(), OptionsCont::getBool(), MsgHandler::getErrorInstance(), OptionsCont::getInt(), OptionsCont::getOptions(), OptionsIO::getOptions(), OptionsCont::getString(), MsgHandler::inform(), XMLSubSys::init(), initNet(), MsgHandler::initOutputOptions(), RandHelper::initRandGlobal(), OptionsCont::processMetaOptions(), OptionsCont::setApplicationDescription(), OptionsCont::setApplicationName(), OptionsIO::setArgs(), MsgHandler::setFactory(), XMLSubSys::setValidation(), TL, toString(), StringUtils::transcode(), and WRITE_ERROR.