![]() |
Eclipse SUMO - Simulation of Urban MObility
|
#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"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) |
Definition in file marouter_main.cpp.
| 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().
| 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(), ODMatrix::getEnd(), OptionsCont::getFloat(), OptionsCont::getInt(), ROEdge::getNoiseEffort(), OptionsCont::getOptions(), ROMAAssignments::getPenalizedTT(), RONet::getRouteOutput(), ROEdge::getStoredEffort(), OutputDevice_String::getString(), OptionsCont::getString(), OptionsCont::getStringVector(), ROEdge::getTravelTimeStatic(), ROEdge::getTravelTimeStaticPriorityFactor(), RONet::getVehicleTypeSecure(), RONet::hasLoadedEffort(), RONet::hasPermissions(), ROEdge::initPriorityFactor(), OptionsCont::isDefault(), OptionsCont::isSet(), MAX2(), MIN2(), RONet::openOutput(), OutputDevice::openTag(), ODMatrix::parseTimeLine(), SUMOAbstractRouter< E, V >::recomputeCosts(), SUMOAbstractRouter< E, V >::reset(), ROMAAssignments::resetFlows(), ODMatrix::sortByBeginTime(), string2time(), SUMO_ATTR_BEGIN, 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(), and OutputDevice::writePreformattedTag().
Referenced by main().
Definition at line 101 of file marouter_main.cpp.
References ROEdge::getLength(), and ROEdge::getSpeedLimit().
Referenced by computeAllPairs().
| 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().
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 339 of file marouter_main.cpp.
References ROMAFrame::checkOptions(), SystemFrame::checkOptions(), MsgHandler::clear(), SystemFrame::close(), computeAllPairs(), computeRoutes(), ROMAFrame::fillOptions(), OptionsCont::getBool(), RONet::getDistricts(), MsgHandler::getErrorInstance(), OptionsCont::getFloat(), ODMatrix::getNumDiscarded(), ODMatrix::getNumLoaded(), OptionsCont::getOptions(), OptionsIO::getOptions(), OptionsCont::getString(), MsgHandler::inform(), XMLSubSys::init(), initNet(), MsgHandler::initOutputOptions(), RandHelper::initRandGlobal(), OptionsCont::isSet(), ODMatrix::loadMatrix(), ODMatrix::loadRoutes(), ODDistrictCont::makeDistricts(), OptionsCont::processMetaOptions(), OptionsCont::setApplicationDescription(), OptionsCont::setApplicationName(), OptionsIO::setArgs(), XMLSubSys::setValidation(), TL, toString(), StringUtils::transcode(), WRITE_ERROR, WRITE_MESSAGE, and WRITE_WARNING.