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