SUMO - Simulation of Urban MObility
RODFDetectorFlows Class Reference

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
SUMOReal getFlowSumSecure (const std::string &id) const
SUMOReal 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
SUMOReal myMaxDetectorFlow
SUMOTime myStepOffset

Private Member Functions

RODFDetectorFlowsoperator= (const RODFDetectorFlows &src)
 Invalidated assignment operator.
 RODFDetectorFlows (const RODFDetectorFlows &src)
 Invalidated copy constructor.

Detailed Description

A container for flows.

Definition at line 75 of file RODFDetectorFlow.h.


Constructor & Destructor Documentation

RODFDetectorFlows::RODFDetectorFlows ( SUMOTime  startTime,
SUMOTime  endTime,
SUMOTime  stepOffset 
)

Definition at line 45 of file RODFDetectorFlow.cpp.

Invalidated copy constructor.


Member Function Documentation

void RODFDetectorFlows::addFlow ( const std::string &  detector_id,
SUMOTime  timestamp,
const FlowDef fd 
)
SUMOReal RODFDetectorFlows::getFlowSumSecure ( const std::string &  id) const

Definition at line 131 of file RODFDetectorFlow.cpp.

References getFlowDefs(), knows(), and SUMOReal.

Referenced by RODFDetectorCon::writeEmitterPOIs().

void RODFDetectorFlows::mesoJoin ( const std::string &  nid,
const std::vector< std::string > &  oldids 
)

Definition at line 167 of file RODFDetectorFlow.cpp.

References addFlow(), knows(), myBeginTime, myEndTime, myFastAccessFlows, and myStepOffset.

Referenced by RODFNet::mesoJoin().

RODFDetectorFlows& RODFDetectorFlows::operator= ( const RODFDetectorFlows src) [private]

Invalidated assignment operator.

Definition at line 184 of file RODFDetectorFlow.cpp.

References myFastAccessFlows, and SUMOReal.

Referenced by startComputation().

void RODFDetectorFlows::removeFlow ( const std::string &  detector_id)

Definition at line 111 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 96 of file RODFDetectorFlow.cpp.

References FlowDef::fLKW, myFastAccessFlows, FlowDef::qLKW, and FlowDef::qPKW.

Referenced by RODFNet::revalidateFlows().


Field Documentation

Definition at line 95 of file RODFDetectorFlow.h.

Referenced by addFlow(), and mesoJoin().

Definition at line 95 of file RODFDetectorFlow.h.

Referenced by addFlow(), and mesoJoin().

std::map<std::string, std::vector<FlowDef> > RODFDetectorFlows::myFastAccessFlows [protected]

Definition at line 96 of file RODFDetectorFlow.h.

Referenced by getMaxDetectorFlow().

Definition at line 95 of file RODFDetectorFlow.h.

Referenced by addFlow(), and mesoJoin().


The documentation for this class was generated from the following files:
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines