91 RODFDetector(
const std::string&
id,
const std::string& laneID,
163 bool includeUnusedRoutes,
double scale,
164 bool insertionsOnly,
double defaultSpeed)
const;
170 double defaultSpeed);
225 void save(
const std::string& file)
const;
226 void saveAsPOIs(
const std::string& file)
const;
227 void saveRoutes(
const std::string& file)
const;
233 bool knows(
const std::string&
id)
const;
238 bool writeCalibrators,
bool includeUnusedRoutes,
240 bool insertionsOnly);
250 bool includeSources,
bool singleFile,
bool friendly);
258 void mesoJoin(
const std::string& nid,
const std::vector<std::string>& oldids);
RODFDetectorType
Numerical representation of different detector types.
@ BETWEEN_DETECTOR
An in-between detector.
@ SOURCE_DETECTOR
A source detector.
@ DISCARDED_DETECTOR
A detector which had to be discarded (!!!)
@ TYPE_NOT_DEFINED
A not yet defined detector.
Base class for objects which have an id.
Static storage of an output device and its base (abstract) implementation.
A container for RODFDetectors.
bool detectorsHaveRoutes() const
const RODFDetector & getAnyDetectorForEdge(const RODFEdge *const edge) const
void clearDists(std::map< SUMOTime, RandomDistributor< int > * > &dists) const
Clears the given distributions map, deleting the timed distributions.
std::map< std::string, std::vector< RODFDetector * > > myDetectorEdgeMap
void save(const std::string &file) const
void writeEmitterPOIs(const std::string &file, const 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)
bool addDetector(RODFDetector *dfd)
void writeValidationDetectors(const std::string &file, bool includeSources, bool singleFile, bool friendly)
const RODFDetector & getDetector(const std::string &id) const
std::map< std::string, RODFDetector * > myDetectorMap
void guessEmptyFlows(RODFDetectorFlows &flows)
bool detectorsHaveCompleteTypes() const
void saveRoutes(const std::string &file) const
std::vector< RODFDetector * > myDetectors
void writeSpeedTrigger(const RODFNet *const net, const std::string &file, const RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)
void setSpeedFactorAndDev(SUMOVTypeParameter &type, double maxFactor, double avgFactor, double dev, bool forceDev)
RODFDetectorCon(const RODFDetectorCon &src)
Invalidated copy constructor.
void writeEmitters(const std::string &file, const RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset, const RODFNet &net, bool writeCalibrators, bool includeUnusedRoutes, double scale, bool insertionsOnly)
void saveAsPOIs(const std::string &file) const
RODFDetector & getModifiableDetector(const std::string &id) const
const std::vector< RODFDetector * > & getDetectors() const
RODFDetectorCon & operator=(const RODFDetectorCon &src)
Invalidated assignment operator.
void writeEndRerouterDetectors(const std::string &file)
int getAggFlowFor(const ROEdge *edge, SUMOTime time, SUMOTime period, const RODFDetectorFlows &flows) const
Class representing a detector within the DFROUTER.
void computeSplitProbabilities(const RODFNet *net, const RODFDetectorCon &detectors, const RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset)
double getPos() const
Returns the position at which the detector lies.
void setType(RODFDetectorType type)
RODFDetector(const RODFDetector &src)
Invalidated copy constructor.
void addPriorDetector(const RODFDetector *det)
RODFDetector & operator=(const RODFDetector &src)
Invalidated assignment operator.
int getFlowFor(const ROEdge *edge, SUMOTime time) const
const std::vector< RODFRouteDesc > & getRouteVector() const
void addRoute(RODFRouteDesc &nrd)
bool writeRoutes(std::vector< std::string > &saved, OutputDevice &out)
double computeDistanceFactor(const RODFRouteDesc &rd) const
void buildDestinationDistribution(const RODFDetectorCon &detectors, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset, const RODFNet &net, std::map< SUMOTime, RandomDistributor< int > * > &into) const
const std::set< const RODFDetector * > & getPriorDetectors() const
void addRoutes(RODFRouteCont *routes)
const std::vector< std::map< RODFEdge *, double > > & getSplitProbabilities() const
RODFDetectorType getType() const
Returns the type of the detector.
std::vector< std::map< RODFEdge *, double > > mySplitProbabilities
void writeSingleSpeedTrigger(const std::string &file, const RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset, double defaultSpeed)
std::map< std::string, RODFEdge * > myRoute2Edge
std::string getEdgeID() const
Returns the id of the edge this detector is placed on.
~RODFDetector()
Destructor.
void writeEndRerouterDetectors(const std::string &file)
bool writeEmitterDefinition(const std::string &file, const std::map< SUMOTime, RandomDistributor< int > * > &dists, const RODFDetectorFlows &flows, SUMOTime startTime, SUMOTime endTime, SUMOTime stepOffset, bool includeUnusedRoutes, double scale, bool insertionsOnly, double defaultSpeed) const
const std::string & getLaneID() const
Returns the id of the lane this detector is placed on.
std::set< const RODFDetector * > myPriorDetectors
void addFollowingDetector(const RODFDetector *det)
const std::set< const RODFDetector * > & getFollowerDetectors() const
std::set< const RODFDetector * > myFollowingDetectors
A container for DFROUTER-routes.
A basic edge for routing applications.
Represents a generic random distribution.
Structure representing possible vehicle parameter.
A route within the DFROUTER.