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 <router/ROCostCalculator.h>
#include <utils/common/DijkstraRouterTT.h>
#include <utils/common/DijkstraRouterEffort.h>
#include <utils/common/AStarRouter.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) |
Definition in file duarouter_main.cpp.
void computeRoutes | ( | RONet & | net, |
ROLoader & | loader, | ||
OptionsCont & | oc | ||
) |
Computes the routes saving them
Definition at line 107 of file duarouter_main.cpp.
References ROCostCalculator::cleanup(), RONet::closeOutput(), DEFAULT_VTYPE_ID, OptionsCont::getBool(), ROEdge::getCO2Effort(), ROEdge::getCOEffort(), RONet::getEdgeNo(), ROEdge::getFuelEffort(), ROEdge::getHCEffort(), ROEdge::getMinimumTravelTime(), ROEdge::getNoiseEffort(), ROEdge::getNOxEffort(), ROEdge::getPMxEffort(), OptionsCont::getString(), ROEdge::getTravelTime(), RONet::getVehicleTypeSecure(), RONet::hasRestrictions(), OptionsCont::isSet(), max, RONet::openOutput(), ROLoader::openRoutes(), ROLoader::processRoutes(), and string2time().
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 88 of file duarouter_main.cpp.
References OptionsCont::getBool(), OptionsCont::getString(), OptionsCont::isSet(), ROLoader::loadNet(), and ROLoader::loadWeights().
Referenced by main().
Definition at line 236 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(), XMLSubSys::setValidation(), toString(), VERSION_STRING, and WRITE_ERROR.