Eclipse SUMO - Simulation of Urban MObility
|
A container for flows. More...
#include <RODFDetectorFlow.h>
Public Member Functions | |
void | addFlow (const std::string &detector_id, SUMOTime timestamp, const FlowDef &fd) |
const std::vector< FlowDef > & | getFlowDefs (const std::string &id) const |
double | getFlowSumSecure (const std::string &id) const |
double | getMaxDetectorFlow () const |
bool | knows (const std::string &det_id) const |
void | mesoJoin (const std::string &nid, const std::vector< std::string > &oldids) |
void | printAbsolute () const |
void | removeFlow (const std::string &detector_id) |
RODFDetectorFlows (SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset) | |
void | setFlows (const std::string &detector_id, std::vector< FlowDef > &) |
~RODFDetectorFlows () | |
Protected Attributes | |
SUMOTime | myBeginTime |
SUMOTime | myEndTime |
std::map< std::string, std::vector< FlowDef > > | myFastAccessFlows |
double | myMaxDetectorFlow |
SUMOTime | myStepOffset |
Private Member Functions | |
RODFDetectorFlows & | operator= (const RODFDetectorFlows &src) |
Invalidated assignment operator. | |
RODFDetectorFlows (const RODFDetectorFlows &src) | |
Invalidated copy constructor. | |
A container for flows.
Definition at line 65 of file RODFDetectorFlow.h.
Definition at line 33 of file RODFDetectorFlow.cpp.
RODFDetectorFlows::~RODFDetectorFlows | ( | ) |
Definition at line 39 of file RODFDetectorFlow.cpp.
|
private |
Invalidated copy constructor.
void RODFDetectorFlows::addFlow | ( | const std::string & | detector_id, |
SUMOTime | timestamp, | ||
const FlowDef & | fd | ||
) |
!! mean value?
!! mean value?
Definition at line 43 of file RODFDetectorFlow.cpp.
References fd, FlowDef::firstSet, FlowDef::fLKW, FlowDef::isLKW, myBeginTime, myEndTime, myFastAccessFlows, myStepOffset, FlowDef::qLKW, FlowDef::qPKW, FlowDef::vLKW, and FlowDef::vPKW.
Referenced by mesoJoin(), and RODFDetFlowLoader::read().
const std::vector< FlowDef > & RODFDetectorFlows::getFlowDefs | ( | const std::string & | id | ) | const |
Definition at line 108 of file RODFDetectorFlow.cpp.
References myFastAccessFlows.
Referenced by RODFNet::buildEdgeFlowMap(), getFlowSumSecure(), RODFNet::revalidateFlows(), RODFDetector::writeEmitterDefinition(), and RODFDetector::writeSingleSpeedTrigger().
double RODFDetectorFlows::getFlowSumSecure | ( | const std::string & | id | ) | const |
Definition at line 116 of file RODFDetectorFlow.cpp.
References getFlowDefs(), and knows().
Referenced by RODFDetectorCon::writeEmitterPOIs().
double RODFDetectorFlows::getMaxDetectorFlow | ( | ) | const |
Definition at line 130 of file RODFDetectorFlow.cpp.
References myFastAccessFlows, and myMaxDetectorFlow.
Referenced by RODFDetectorCon::writeEmitterPOIs().
bool RODFDetectorFlows::knows | ( | const std::string & | det_id | ) | const |
Definition at line 102 of file RODFDetectorFlow.cpp.
References myFastAccessFlows.
Referenced by RODFNet::buildEdgeFlowMap(), getFlowSumSecure(), RODFDetectorCon::guessEmptyFlows(), mesoJoin(), RODFNet::removeEmptyDetectors(), RODFNet::reportEmptyDetectors(), RODFNet::revalidateFlows(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitters(), and RODFDetectorCon::writeSpeedTrigger().
void RODFDetectorFlows::mesoJoin | ( | const std::string & | nid, |
const std::vector< std::string > & | oldids | ||
) |
Definition at line 152 of file RODFDetectorFlow.cpp.
References addFlow(), knows(), myBeginTime, myEndTime, myFastAccessFlows, and myStepOffset.
Referenced by RODFNet::mesoJoin().
|
private |
Invalidated assignment operator.
void RODFDetectorFlows::printAbsolute | ( | ) | const |
Definition at line 169 of file RODFDetectorFlow.cpp.
References myFastAccessFlows.
Referenced by startComputation().
void RODFDetectorFlows::removeFlow | ( | const std::string & | detector_id | ) |
Definition at line 96 of file RODFDetectorFlow.cpp.
References myFastAccessFlows.
Referenced by RODFNet::removeEmptyDetectors().
void RODFDetectorFlows::setFlows | ( | const std::string & | detector_id, |
std::vector< FlowDef > & | flows | ||
) |
Definition at line 81 of file RODFDetectorFlow.cpp.
References FlowDef::fLKW, myFastAccessFlows, FlowDef::qLKW, and FlowDef::qPKW.
Referenced by RODFNet::revalidateFlows().
|
protected |
Definition at line 85 of file RODFDetectorFlow.h.
Referenced by addFlow(), and mesoJoin().
|
protected |
Definition at line 85 of file RODFDetectorFlow.h.
Referenced by addFlow(), and mesoJoin().
|
protected |
Definition at line 84 of file RODFDetectorFlow.h.
Referenced by addFlow(), getFlowDefs(), getMaxDetectorFlow(), knows(), mesoJoin(), printAbsolute(), removeFlow(), and setFlows().
|
mutableprotected |
Definition at line 86 of file RODFDetectorFlow.h.
Referenced by getMaxDetectorFlow().
|
protected |
Definition at line 85 of file RODFDetectorFlow.h.
Referenced by addFlow(), and mesoJoin().