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