37 #ifdef CHECK_MEMORY_LEAKS
39 #endif // CHECK_MEMORY_LEAKS
47 : myBeginTime(startTime), myEndTime(endTime), myStepOffset(stepOffset),
48 myMaxDetectorFlow(-1) {}
61 for (std::vector<FlowDef>::iterator i = cflows.begin(); i < cflows.end(); ++i) {
95 std::vector<FlowDef>& flows) {
96 for (std::vector<FlowDef>::iterator i = flows.begin(); i < flows.end(); ++i) {
98 if (ofd.
qLKW != 0 && ofd.
qPKW != 0) {
120 const std::vector<FlowDef>&
132 const std::vector<FlowDef>& flows =
getFlowDefs(
id);
133 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
146 std::map<std::string, std::vector<FlowDef> >::const_iterator j;
149 const std::vector<FlowDef>& flows = (*j).second;
150 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
166 const std::vector<std::string>& oldids) {
167 for (std::vector<std::string>::const_iterator i = oldids.begin(); i != oldids.end(); ++i) {
174 addFlow(nid, t, flows[index++]);
184 std::cout << (*i).first <<
":";
185 const std::vector<FlowDef>& flows = (*i).second;
188 for (std::vector<FlowDef>::const_iterator j = flows.begin(); j != flows.end(); ++j) {
192 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)