|
| | Station (Id id, Delay managementTime) |
| | Construct a new Station object.
|
| | Station (Id id, geometry::Point point, Delay managementTime) |
| | Construct a new Station object.
|
| | Station (RoadJunction const &node, Delay managementTime) |
| | Construct a new Station object.
|
| | Station (Station const &other) |
| | Construct a new Station object by copying another Station object.
|
| void | enqueue (Id trainId, train_t trainType) |
| | Enqueue a train in the station.
|
| Id | dequeue () |
| | Dequeue a train from the station.
|
| Delay | managementTime () const |
| | Get the time it takes between two train departures/arrivals.
|
| double | density () const |
| | Get the train density of the station.
|
| bool | isFull () const |
| | Check if the station is full.
|
| constexpr bool | isStation () const noexcept |
| | Check if the node is a station.
|
|
| RoadJunction (Id id) |
|
| RoadJunction (Id id, geometry::Point coords) |
|
| RoadJunction (RoadJunction const &other) |
|
RoadJunction & | operator= (RoadJunction const &other) |
| virtual void | setCapacity (std::size_t const capacity) |
| | Set the junction's capacity.
|
| void | setTransportCapacity (double capacity) |
| | Set the junction's transport capacity.
|
| std::size_t | capacity () const |
| | Get the junction's capacity.
|
| double | transportCapacity () const |
| | Get the junction's transport capacity.
|
|
virtual constexpr bool | isIntersection () const noexcept |
|
virtual constexpr bool | isTrafficLight () const noexcept |
| virtual constexpr bool | isRoundabout () const noexcept |
| | Node (Id id) |
| | Construct a new Node object with capacity 1.
|
| | Node (Id id, geometry::Point point) |
| | 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 | setGeometry (geometry::Point point) noexcept |
| | Set the node's geometry.
|
| void | setName (const std::string &name) noexcept |
| | Set the node's name.
|
| void | addIngoingEdge (Id edgeId) |
| | Add an ingoing edge to the node.
|
| void | addOutgoingEdge (Id edgeId) |
| | Add an outgoing edge to the node.
|
| void | setAttribute (std::string const &name, std::variant< std::monostate, bool, std::int64_t, double, std::string > const &value) |
| | Set an attribute for the node.
|
| auto | id () const |
| | Get the node's id.
|
| auto const & | geometry () const noexcept |
| | Get the node's geometry.
|
| auto const & | name () const noexcept |
| | Get the node's name.
|
| auto const & | ingoingEdges () const noexcept |
| | Get the node's ingoing edges.
|
| auto const & | outgoingEdges () const noexcept |
| | Get the node's outgoing edges.
|
| auto const & | attributes () const noexcept |
| | Get the node's attributes.
|
| template<typename T> |
| std::optional< T > | getAttribute (std::string const &name) const |
| | Get a specific attribute of the node.
|