SUMO - Simulation of Urban MObility
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RODFDetectorCon Class Reference

A container for RODFDetectors. More...

#include <RODFDetector.h>

Public Member Functions

bool addDetector (RODFDetector *dfd)
bool detectorsHaveCompleteTypes () const
bool detectorsHaveRoutes () const
int getAggFlowFor (const ROEdge *edge, SUMOTime time, SUMOTime period, const RODFDetectorFlows &flows) const
const RODFDetectorgetAnyDetectorForEdge (const RODFEdge *const edge) const
const RODFDetectorgetDetector (const std::string &id) const
const std::vector
< RODFDetector * > & 
getDetectors () const
void guessEmptyFlows (RODFDetectorFlows &flows)
bool knows (const std::string &id) const
void mesoJoin (const std::string &nid, const std::vector< std::string > &oldids)
void removeDetector (const std::string &id)
 RODFDetectorCon ()
void save (const std::string &file) const
void saveAsPOIs (const std::string &file) const
void saveRoutes (const std::string &file) const
void writeEmitterPOIs (const std::string &file, const RODFDetectorFlows &flows)
void writeEmitters (const std::string &file, const RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset, const RODFNet &net, bool writeCalibrators, bool includeUnusedRoutes, SUMOReal scale, int maxFollower, bool insertionsOnly)
void writeEndRerouterDetectors (const std::string &file)
void writeSpeedTrigger (const RODFNet *const net, const std::string &file, const RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)
void writeValidationDetectors (const std::string &file, bool includeSources, bool singleFile, bool friendly)
 ~RODFDetectorCon ()

Protected Member Functions

void clearDists (std::map< size_t, RandomDistributor< size_t > * > &dists) const
 Clears the given distributions map, deleting the timed distributions.

Protected Attributes

std::map< std::string,
std::vector< RODFDetector * > > 
myDetectorEdgeMap
std::map< std::string,
RODFDetector * > 
myDetectorMap
std::vector< RODFDetector * > myDetectors

Private Member Functions

RODFDetectorConoperator= (const RODFDetectorCon &src)
 Invalidated assignment operator.
 RODFDetectorCon (const RODFDetectorCon &src)
 Invalidated copy constructor.

Detailed Description

A container for RODFDetectors.

Definition at line 237 of file RODFDetector.h.


Constructor & Destructor Documentation

RODFDetectorCon::RODFDetectorCon ( )

Definition at line 400 of file RODFDetector.cpp.

RODFDetectorCon::~RODFDetectorCon ( )

Definition at line 403 of file RODFDetector.cpp.

References myDetectors.

RODFDetectorCon::RODFDetectorCon ( const RODFDetectorCon src)
private

Invalidated copy constructor.


Member Function Documentation

bool RODFDetectorCon::addDetector ( RODFDetector dfd)
void RODFDetectorCon::clearDists ( std::map< size_t, RandomDistributor< size_t > * > &  dists) const
protected

Clears the given distributions map, deleting the timed distributions.

Parameters:
[in]distsThe distribution map to clear

Definition at line 840 of file RODFDetector.cpp.

Referenced by writeEmitters().

bool RODFDetectorCon::detectorsHaveCompleteTypes ( ) const

Definition at line 427 of file RODFDetector.cpp.

References myDetectors, and TYPE_NOT_DEFINED.

Referenced by startComputation().

bool RODFDetectorCon::detectorsHaveRoutes ( ) const

Definition at line 438 of file RODFDetector.cpp.

References myDetectors.

Referenced by startComputation().

int RODFDetectorCon::getAggFlowFor ( const ROEdge edge,
SUMOTime  time,
SUMOTime  period,
const RODFDetectorFlows flows 
) const
const RODFDetector & RODFDetectorCon::getAnyDetectorForEdge ( const RODFEdge *const  edge) const

Definition at line 829 of file RODFDetector.cpp.

References ROEdge::getID(), and myDetectors.

Referenced by RODFDetector::buildDestinationDistribution().

void RODFDetectorCon::guessEmptyFlows ( RODFDetectorFlows flows)
bool RODFDetectorCon::knows ( const std::string &  id) const

Definition at line 542 of file RODFDetector.cpp.

References myDetectorMap.

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

Definition at line 848 of file RODFDetector.cpp.

References addDetector(), getDetector(), and removeDetector().

Referenced by RODFNet::mesoJoin().

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

Invalidated assignment operator.

void RODFDetectorCon::removeDetector ( const std::string &  id)

Definition at line 758 of file RODFDetector.cpp.

References myDetectorEdgeMap, myDetectorMap, and myDetectors.

Referenced by mesoJoin(), and RODFNet::removeEmptyDetectors().

void RODFDetectorCon::saveAsPOIs ( const std::string &  file) const
void RODFDetectorCon::saveRoutes ( const std::string &  file) const
void RODFDetectorCon::writeEndRerouterDetectors ( const std::string &  file)
void RODFDetectorCon::writeValidationDetectors ( const std::string &  file,
bool  includeSources,
bool  singleFile,
bool  friendly 
)

Field Documentation

std::map<std::string, std::vector<RODFDetector*> > RODFDetectorCon::myDetectorEdgeMap
protected

Definition at line 291 of file RODFDetector.h.

Referenced by addDetector(), getAggFlowFor(), and removeDetector().

std::map<std::string, RODFDetector*> RODFDetectorCon::myDetectorMap
protected

Definition at line 290 of file RODFDetector.h.

Referenced by addDetector(), getDetector(), knows(), and removeDetector().


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