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

A container for RODFDetectors. More...

#include <RODFDetector.h>

Collaboration diagram for RODFDetectorCon:
Collaboration graph

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
 
RODFDetectorgetModifiableDetector (const std::string &id) 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 setSpeedFactorAndDev (SUMOVTypeParameter &type, SUMOReal maxFactor, SUMOReal avgFactor, SUMOReal dev, bool forceDev)
 
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, 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< SUMOTime, RandomDistributor< int > * > &dists) const
 Clears the given distributions map, deleting the timed distributions. More...
 

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. More...
 
 RODFDetectorCon (const RODFDetectorCon &src)
 Invalidated copy constructor. More...
 

Detailed Description

A container for RODFDetectors.

Definition at line 228 of file RODFDetector.h.

Constructor & Destructor Documentation

RODFDetectorCon::RODFDetectorCon ( )

Definition at line 467 of file RODFDetector.cpp.

RODFDetectorCon::~RODFDetectorCon ( )

Definition at line 470 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< SUMOTime, RandomDistributor< int > * > &  dists) const
protected

Clears the given distributions map, deleting the timed distributions.

Parameters
[in]distsThe distribution map to clear

Definition at line 946 of file RODFDetector.cpp.

Referenced by writeEmitters().

bool RODFDetectorCon::detectorsHaveCompleteTypes ( ) const

Definition at line 494 of file RODFDetector.cpp.

References myDetectors, and TYPE_NOT_DEFINED.

Referenced by startComputation().

bool RODFDetectorCon::detectorsHaveRoutes ( ) const

Definition at line 505 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 935 of file RODFDetector.cpp.

References Named::getID(), and myDetectors.

Referenced by RODFDetector::buildDestinationDistribution().

RODFDetector & RODFDetectorCon::getModifiableDetector ( const std::string &  id) const

Definition at line 606 of file RODFDetector.cpp.

References myDetectorMap.

Referenced by RODFNet::buildDetectorDependencies().

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

Definition at line 612 of file RODFDetector.cpp.

References myDetectorMap.

Referenced by RODFDetFlowLoader::read().

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

Definition at line 954 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 863 of file RODFDetector.cpp.

References myDetectorEdgeMap, myDetectorMap, and myDetectors.

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

void RODFDetectorCon::saveRoutes ( const std::string &  file) const
void RODFDetectorCon::setSpeedFactorAndDev ( SUMOVTypeParameter type,
SUMOReal  maxFactor,
SUMOReal  avgFactor,
SUMOReal  dev,
bool  forceDev 
)

Field Documentation

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

Definition at line 284 of file RODFDetector.h.

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

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

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