void replaceOutgoing(const EdgeVector &which, NBEdge *const by)
Replaces outgoing edges from the vector (source) by the given edge.
WeightsCont mySinkWeights
The weights of the sinks.
const Position & getPosition() const
Returns the position of this district's center.
bool addSource(NBEdge *const source, SUMOReal weight)
Adds a source.
The representation of a single edge during network building.
const std::vector< NBEdge * > & getSinkEdges() const
Returns the sinks.
void mirrorX()
mirror coordinates along the x-axis
void addShape(const PositionVector &p)
Sets the shape of this district.
NBDistrict(const std::string &id, const Position &pos)
Constructor with id, and position.
NBDistrict & operator=(const NBDistrict &s)
EdgeVector mySources
The sources (connection from district to network)
void setCenter(const Position &pos)
Sets the center coordinates.
A class representing a single district.
const std::vector< NBEdge * > & getSourceEdges() const
Returns the sources.
Position myPosition
The position of the district.
A point in 2D or 3D with translation and scaling methods.
void removeFromSinksAndSources(NBEdge *const e)
Removes the given edge from the lists of sources and sinks.
const PositionVector & getShape() const
Returns the shape.
Base class for objects which have an id.
EdgeVector mySinks
The sinks (connection from network to district)
WeightsCont mySourceWeights
The weights of the sources.
std::vector< SUMOReal > WeightsCont
Definition of a vector of connection weights.
bool addSink(NBEdge *const sink, SUMOReal weight)
Adds a sink.
std::vector< NBEdge * > EdgeVector
PositionVector myShape
The shape of the dsitrict.
void reshiftPosition(SUMOReal xoff, SUMOReal yoff)
Applies an offset to the district.
Static storage of an output device and its base (abstract) implementation.
const std::vector< SUMOReal > & getSourceWeights() const
Returns the weights of the sources.
const std::vector< SUMOReal > & getSinkWeights() const
Returns the weights of the sinks.
void replaceIncoming(const EdgeVector &which, NBEdge *const by)
Replaces incoming edges from the vector (sinks) by the given edge.