38 #ifdef CHECK_MEMORY_LEAKS
40 #endif // CHECK_MEMORY_LEAKS
48 : myBeginTime(startTime), myEndTime(endTime), myStepOffset(stepOffset),
49 myMaxDetectorFlow(-1) {}
62 for (std::vector<FlowDef>::iterator i = cflows.begin(); i < cflows.end(); ++i) {
97 std::vector<FlowDef>& flows) {
98 for (std::vector<FlowDef>::iterator i = flows.begin(); i < flows.end(); ++i) {
100 if (ofd.
qLKW != 0 && ofd.
qPKW != 0) {
122 const std::vector<FlowDef>&
134 const std::vector<FlowDef>& flows =
getFlowDefs(
id);
135 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
148 std::map<std::string, std::vector<FlowDef> >::const_iterator j;
151 const std::vector<FlowDef>& flows = (*j).second;
152 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
168 const std::vector<std::string>& oldids) {
169 for (std::vector<std::string>::const_iterator i = oldids.begin(); i != oldids.end(); ++i) {
176 addFlow(nid, t, flows[index++]);
186 std::cout << (*i).first <<
":";
187 const std::vector<FlowDef>& flows = (*i).second;
190 for (std::vector<FlowDef>::const_iterator j = flows.begin(); j != flows.end(); ++j) {
194 std::cout << qPKW <<
"/" << qLKW << std::endl;
SUMOReal getFlowSumSecure(const std::string &id) const
std::map< std::string, std::vector< FlowDef > > myFastAccessFlows
void removeFlow(const std::string &detector_id)
SUMOReal getMaxDetectorFlow() const
void printAbsolute() const
void setFlows(const std::string &detector_id, std::vector< FlowDef > &)
bool knows(const std::string &det_id) const
Definition of the traffic during a certain time containing the flows and speeds.
void addFlow(const std::string &detector_id, SUMOTime timestamp, const FlowDef &fd)
const std::vector< FlowDef > & getFlowDefs(const std::string &id) const
void mesoJoin(const std::string &nid, const std::vector< std::string > &oldids)
SUMOReal myMaxDetectorFlow
RODFDetectorFlows(SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)