35 : myBeginTime(startTime), myEndTime(endTime), myStepOffset(stepOffset),
36 myMaxDetectorFlow(-1) {}
49 for (std::vector<FlowDef>::iterator i = cflows.begin(); i < cflows.end(); ++i) {
82 std::vector<FlowDef>& flows) {
83 for (std::vector<FlowDef>::iterator i = flows.begin(); i < flows.end(); ++i) {
85 if (ofd.
qLKW != 0 && ofd.
qPKW != 0) {
107const std::vector<FlowDef>&
119 const std::vector<FlowDef>& flows =
getFlowDefs(
id);
120 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
133 std::map<std::string, std::vector<FlowDef> >::const_iterator j;
136 const std::vector<FlowDef>& flows = (*j).second;
137 for (std::vector<FlowDef>::const_iterator i = flows.begin(); i != flows.end(); ++i) {
153 const std::vector<std::string>& oldids) {
154 for (std::vector<std::string>::const_iterator i = oldids.begin(); i != oldids.end(); ++i) {
161 addFlow(nid, t, flows[index++]);
171 std::cout << (*i).first <<
":";
172 const std::vector<FlowDef>& flows = (*i).second;
175 for (std::vector<FlowDef>::const_iterator j = flows.begin(); j != flows.end(); ++j) {
179 std::cout << qPKW <<
"/" << qLKW << std::endl;
double getFlowSumSecure(const std::string &id) const
void setFlows(const std::string &detector_id, std::vector< FlowDef > &)
RODFDetectorFlows(SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)
std::map< std::string, std::vector< FlowDef > > myFastAccessFlows
void addFlow(const std::string &detector_id, SUMOTime timestamp, const FlowDef &fd)
void mesoJoin(const std::string &nid, const std::vector< std::string > &oldids)
const std::vector< FlowDef > & getFlowDefs(const std::string &id) const
void removeFlow(const std::string &detector_id)
double getMaxDetectorFlow() const
void printAbsolute() const
bool knows(const std::string &det_id) const
Definition of the traffic during a certain time containing the flows and speeds.