Eclipse SUMO - Simulation of Urban MObility
|
#include <config.h>
#include <iostream>
#include <string>
#include <limits.h>
#include <ctime>
#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/ToString.h>
#include <utils/common/FileHelpers.h>
#include <utils/options/Option.h>
#include <utils/options/OptionsCont.h>
#include <utils/options/OptionsIO.h>
#include <utils/iodevices/OutputDevice.h>
#include <utils/xml/XMLSubSys.h>
#include <router/ROLoader.h>
#include <router/RONet.h>
#include "RODFEdgeBuilder.h"
#include "RODFFrame.h"
#include "RODFNet.h"
#include "RODFEdge.h"
#include "RODFDetector.h"
#include "RODFDetectorHandler.h"
#include "RODFRouteCont.h"
#include "RODFDetectorFlow.h"
#include "RODFDetFlowLoader.h"
Go to the source code of this file.
Functions | |
int | main (int argc, char **argv) |
void | readDetectorFlows (RODFDetectorFlows &flows, OptionsCont &oc, RODFDetectorCon &dc) |
void | readDetectors (RODFDetectorCon &detectors, OptionsCont &oc, RODFNet *optNet) |
void | startComputation (RODFNet *optNet, RODFDetectorFlows &flows, RODFDetectorCon &detectors, OptionsCont &oc) |
Definition in file dfrouter_main.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 246 of file dfrouter_main.cpp.
References RODFNet::buildApproachList(), RODFFrame::checkOptions(), SystemFrame::checkOptions(), SystemFrame::close(), RODFFrame::fillOptions(), OptionsCont::getBool(), MsgHandler::getErrorInstance(), OptionsCont::getOptions(), OptionsIO::getOptions(), OptionsCont::getString(), MsgHandler::inform(), XMLSubSys::init(), MsgHandler::initOutputOptions(), RandHelper::initRandGlobal(), ROLoader::loadNet(), OptionsCont::processMetaOptions(), readDetectorFlows(), readDetectors(), OptionsCont::setApplicationDescription(), OptionsCont::setApplicationName(), OptionsIO::setArgs(), XMLSubSys::setValidation(), startComputation(), string2time(), TL, and WRITE_ERROR.
void readDetectorFlows | ( | RODFDetectorFlows & | flows, |
OptionsCont & | oc, | ||
RODFDetectorCon & | dc | ||
) |
Definition at line 94 of file dfrouter_main.cpp.
References OptionsCont::getString(), OptionsCont::getStringVector(), FileHelpers::isReadable(), OptionsCont::isSet(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, RODFDetFlowLoader::read(), string2time(), and TLF.
Referenced by main().
void readDetectors | ( | RODFDetectorCon & | detectors, |
OptionsCont & | oc, | ||
RODFNet * | optNet | ||
) |
Definition at line 68 of file dfrouter_main.cpp.
References OptionsCont::getBool(), RODFDetectorCon::getDetectors(), OptionsCont::getStringVector(), FileHelpers::isReadable(), OptionsCont::isSet(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, PROGRESS_FAILED_MESSAGE, XMLSubSys::runParser(), TL, and TLF.
Referenced by main().
void startComputation | ( | RODFNet * | optNet, |
RODFDetectorFlows & | flows, | ||
RODFDetectorCon & | detectors, | ||
OptionsCont & | oc | ||
) |
Definition at line 116 of file dfrouter_main.cpp.
References RODFNet::buildDetectorDependencies(), RODFNet::buildEdgeFlowMap(), RODFNet::buildRoutes(), RODFNet::computeTypes(), RODFDetectorCon::detectorsHaveCompleteTypes(), RODFDetectorCon::detectorsHaveRoutes(), OptionsCont::getBool(), RODFDetectorCon::getDetectors(), OptionsCont::getFloat(), OptionsCont::getInt(), OptionsCont::getString(), RODFDetectorCon::guessEmptyFlows(), OptionsCont::isSet(), RODFDetectorFlows::printAbsolute(), PROGRESS_BEGIN_MESSAGE, PROGRESS_DONE_MESSAGE, RODFNet::removeEmptyDetectors(), RODFNet::reportEmptyDetectors(), RODFNet::revalidateFlows(), RODFDetectorCon::save(), RODFDetectorCon::saveAsPOIs(), RODFDetectorCon::saveRoutes(), SOURCE_DETECTOR, string2time(), TL, RODFDetectorCon::writeEmitterPOIs(), RODFDetectorCon::writeEmitters(), RODFDetectorCon::writeEndRerouterDetectors(), RODFDetectorCon::writeSpeedTrigger(), and RODFDetectorCon::writeValidationDetectors().
Referenced by main().