77 void addSource(
const std::string&
id,
double weight);
93 void addSink(
const std::string&
id,
double weight);
std::string getRandomSource() const
Returns the id of a source to use.
std::string getRandomSink() const
Returns the id of a sink to use.
void addSink(const std::string &id, double weight)
Adds a sink connection.
int sourceNumber() const
Returns the number of sources.
ODDistrict(const std::string &id)
Constructor.
RandomDistributor< std::string > mySinks
Container of weighted sinks.
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)
void addSource(const std::string &id, double weight)
Adds a source connection.
int sinkNumber() const
Returns the number of sinks.