Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
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
 
double getFlowSumSecure (const std::string &id) const
 
double 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
 
double 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 65 of file RODFDetectorFlow.h.

Constructor & Destructor Documentation

◆ RODFDetectorFlows() [1/2]

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

Definition at line 33 of file RODFDetectorFlow.cpp.

◆ ~RODFDetectorFlows()

RODFDetectorFlows::~RODFDetectorFlows ( )

Definition at line 39 of file RODFDetectorFlow.cpp.

◆ RODFDetectorFlows() [2/2]

RODFDetectorFlows::RODFDetectorFlows ( const RODFDetectorFlows src)
private

Invalidated copy constructor.

Member Function Documentation

◆ addFlow()

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

!! mean value?

!! mean value?

Definition at line 43 of file RODFDetectorFlow.cpp.

References fd, FlowDef::firstSet, FlowDef::fLKW, FlowDef::isLKW, myBeginTime, myEndTime, myFastAccessFlows, myStepOffset, FlowDef::qLKW, FlowDef::qPKW, FlowDef::vLKW, and FlowDef::vPKW.

Referenced by mesoJoin(), and RODFDetFlowLoader::read().

Here is the caller graph for this function:

◆ getFlowDefs()

const std::vector< FlowDef > & RODFDetectorFlows::getFlowDefs ( const std::string &  id) const

Definition at line 108 of file RODFDetectorFlow.cpp.

References myFastAccessFlows.

Referenced by RODFNet::buildEdgeFlowMap(), getFlowSumSecure(), RODFNet::revalidateFlows(), RODFDetector::writeEmitterDefinition(), and RODFDetector::writeSingleSpeedTrigger().

Here is the caller graph for this function:

◆ getFlowSumSecure()

double RODFDetectorFlows::getFlowSumSecure ( const std::string &  id) const

Definition at line 116 of file RODFDetectorFlow.cpp.

References getFlowDefs(), and knows().

Referenced by RODFDetectorCon::writeEmitterPOIs().

Here is the caller graph for this function:

◆ getMaxDetectorFlow()

double RODFDetectorFlows::getMaxDetectorFlow ( ) const

Definition at line 130 of file RODFDetectorFlow.cpp.

References myFastAccessFlows, and myMaxDetectorFlow.

Referenced by RODFDetectorCon::writeEmitterPOIs().

Here is the caller graph for this function:

◆ knows()

bool RODFDetectorFlows::knows ( const std::string &  det_id) const

Definition at line 102 of file RODFDetectorFlow.cpp.

References myFastAccessFlows.

Referenced by RODFNet::buildEdgeFlowMap(), getFlowSumSecure(), RODFDetectorCon::guessEmptyFlows(), mesoJoin(), RODFNet::removeEmptyDetectors(), RODFNet::reportEmptyDetectors(), RODFNet::revalidateFlows(), RODFDetector::writeEmitterDefinition(), RODFDetectorCon::writeEmitters(), and RODFDetectorCon::writeSpeedTrigger().

Here is the caller graph for this function:

◆ mesoJoin()

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

Definition at line 152 of file RODFDetectorFlow.cpp.

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

Referenced by RODFNet::mesoJoin().

Here is the caller graph for this function:

◆ operator=()

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

Invalidated assignment operator.

◆ printAbsolute()

void RODFDetectorFlows::printAbsolute ( ) const

Definition at line 169 of file RODFDetectorFlow.cpp.

References myFastAccessFlows.

Referenced by startComputation().

Here is the caller graph for this function:

◆ removeFlow()

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

Definition at line 96 of file RODFDetectorFlow.cpp.

References myFastAccessFlows.

Referenced by RODFNet::removeEmptyDetectors().

Here is the caller graph for this function:

◆ setFlows()

void RODFDetectorFlows::setFlows ( const std::string &  detector_id,
std::vector< FlowDef > &  flows 
)

Definition at line 81 of file RODFDetectorFlow.cpp.

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

Referenced by RODFNet::revalidateFlows().

Here is the caller graph for this function:

Field Documentation

◆ myBeginTime

SUMOTime RODFDetectorFlows::myBeginTime
protected

Definition at line 85 of file RODFDetectorFlow.h.

Referenced by addFlow(), and mesoJoin().

◆ myEndTime

SUMOTime RODFDetectorFlows::myEndTime
protected

Definition at line 85 of file RODFDetectorFlow.h.

Referenced by addFlow(), and mesoJoin().

◆ myFastAccessFlows

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

◆ myMaxDetectorFlow

double RODFDetectorFlows::myMaxDetectorFlow
mutableprotected

Definition at line 86 of file RODFDetectorFlow.h.

Referenced by getMaxDetectorFlow().

◆ myStepOffset

SUMOTime RODFDetectorFlows::myStepOffset
protected

Definition at line 85 of file RODFDetectorFlow.h.

Referenced by addFlow(), and mesoJoin().


The documentation for this class was generated from the following files: