std::string getRandomSource() const
Returns the id of a source to use.
std::string getRandomSink() const
Returns the id of a sink to use.
int sourceNumber() const
Returns the number of sources.
ODDistrict(const std::string &id)
Constructor.
void addSink(const std::string &id, SUMOReal weight)
Adds a sink connection.
RandomDistributor< std::string > mySinks
Container of weighted sinks.
void addSource(const std::string &id, SUMOReal weight)
Adds a source connection.
RandomDistributor< std::string > mySources
Container of weighted sources.
Base class for objects which have an id.
ODDistrict & operator=(const ODDistrict &s)
invalidated assignment operator
A district (origin/destination)
int sinkNumber() const
Returns the number of sinks.