|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Represents a station as a named set of network tracks (edge indices). More...
#include <Station.hpp>
Public Member Functions | |
| std::vector< std::pair< size_t, std::vector< cda_rail::index_vector > > > | get_stop_tracks (double tr_len, Network const &network, cda_rail::index_set const &edges_to_consider={}) const |
| Computes station tracks that can host a stop for a given train length. | |
| bool | is_fully_in_station (cda_rail::index_set const &edges) const |
| Checks whether all provided edges belong to this station. | |
| bool | operator== (const Station &other) const |
| Compares two stations for equality. | |
Public Attributes | |
| std::string | name {} |
| Station identifier. | |
| cda_rail::index_set | tracks {} |
| Set of track indices (network edges) that belong to this station. | |
Represents a station as a named set of network tracks (edge indices).
A station is identified by its name and contains all tracks on which trains are considered to be within that station.
|
nodiscard |
Computes station tracks that can host a stop for a given train length.
For each eligible stop edge, the method returns all valid in-station paths ending in that edge whose total length can accommodate tr_len.
| tr_len | Train length. |
| network | Network containing the station edges. |
| edges_to_consider | Optional candidate edges. If empty, all station edges are considered. |
|
nodiscard |
Checks whether all provided edges belong to this station.
| edges | Edges to validate. |
|
inline |
Compares two stations for equality.
| std::string cda_rail::Station::name {} |
Station identifier.
| cda_rail::index_set cda_rail::Station::tracks {} |
Set of track indices (network edges) that belong to this station.