|
| RoadJunction (Id id) |
|
| RoadJunction (Id id, std::pair< double, double > coords) |
|
| RoadJunction (RoadJunction const &other) |
|
RoadJunction & | operator= (RoadJunction const &other) |
|
virtual void | setCapacity (Size capacity) |
| Set the junction's capacity.
|
|
void | setTransportCapacity (double capacity) |
| Set the junction's transport capacity.
|
|
Size | capacity () const |
| Get the junction's capacity.
|
|
double | transportCapacity () const |
| Get the junction's transport capacity.
|
|
virtual double | density () const |
|
virtual bool | isFull () const |
|
virtual bool | isIntersection () const noexcept |
|
virtual bool | isTrafficLight () const noexcept |
|
virtual bool | isRoundabout () const noexcept |
|
| Node (Id id) |
| Construct a new Node object with capacity 1.
|
|
| Node (Id id, std::pair< double, double > coords) |
| Construct a new Node object with capacity 1.
|
|
| Node (Node const &other) |
|
Node & | operator= (Node const &other) |
|
void | setId (Id id) noexcept |
| Set the node's id.
|
|
void | setCoords (std::pair< double, double > coords) noexcept |
| Set the node's coordinates.
|
|
void | setName (const std::string &name) noexcept |
| Set the node's name.
|
|
void | addIngoingEdge (Id edgeId) |
|
void | addOutgoingEdge (Id edgeId) |
|
Id | id () const |
| Get the node's id.
|
|
std::optional< std::pair< double, double > > const & | coords () const noexcept |
| Get the node's coordinates.
|
|
std::string const & | name () const noexcept |
| Get the node's name.
|
|
std::vector< Id > const & | ingoingEdges () const noexcept |
|
std::vector< Id > const & | outgoingEdges () const noexcept |
|
virtual bool | isStation () const noexcept |
|