41 #ifdef CHECK_MEMORY_LEAKS
43 #endif // CHECK_MEMORY_LEAKS
82 return (
unsigned int)
mySinks.getVals().size();
88 return (
unsigned int)
mySources.getVals().size();
std::string getRandomSource() const
Returns the id of a source to use.
ODDistrict(const std::string &id)
Constructor.
void addSink(const std::string &id, SUMOReal weight)
Adds a sink connection.
unsigned int sinkNumber() const
Returns the number of sinks.
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.
std::string getRandomSink() const
Returns the id of a sink to use.
unsigned int sourceNumber() const
Returns the number of sources.
Base class for objects which have an id.