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) {
96 std::vector<FlowDef>& flows) {
97 for (std::vector<FlowDef>::iterator i = flows.begin(); i < flows.end(); ++i) {
99 if (ofd.
qLKW != 0 && ofd.
qPKW != 0) {
121 const std::vector<FlowDef>&
133 const std::vector<FlowDef>& flows =
getFlowDefs(
id);
134 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
147 std::map<std::string, std::vector<FlowDef> >::const_iterator j;
150 const std::vector<FlowDef>& flows = (*j).second;
151 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
167 const std::vector<std::string>& oldids) {
168 for (std::vector<std::string>::const_iterator i = oldids.begin(); i != oldids.end(); ++i) {
175 addFlow(nid, t, flows[index++]);
185 std::cout << (*i).first <<
":";
186 const std::vector<FlowDef>& flows = (*i).second;
189 for (std::vector<FlowDef>::const_iterator j = flows.begin(); j != flows.end(); ++j) {
193 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)