 |
Eclipse SUMO - Simulation of Urban MObility
|
Go to the documentation of this file.
70 void addSource(
const std::string&
id,
double weight);
86 void addSink(
const std::string&
id,
double weight);
ODDistrict & operator=(const ODDistrict &s)
invalidated assignment operator
Base class for objects which have an id.
RandomDistributor< std::string > mySources
Container of weighted sources.
int sinkNumber() const
Returns the number of sinks.
void addSink(const std::string &id, double weight)
Adds a sink connection.
A district (origin/destination)
void addSource(const std::string &id, double weight)
Adds a source connection.
int sourceNumber() const
Returns the number of sources.
RandomDistributor< std::string > mySinks
Container of weighted sinks.
std::string getRandomSink() const
Returns the id of a sink to use.
ODDistrict(const std::string &id)
Constructor.
std::string getRandomSource() const
Returns the id of a source to use.