|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Represents a vertex (node) in the railway network graph. More...
#include <RailwayNetwork.hpp>
Public Member Functions | |
| Vertex (std::string_view const name, VertexType const type, double const headway=HEADWAY_DEFAULT) | |
| Constructs a Vertex with an explicit headway value. | |
| Vertex (std::string_view const name, VertexType const type, std::optional< double > const &headway) | |
| Constructs a Vertex with an optional headway value. | |
| bool | operator== (Vertex const &other) const |
| Compares two vertices for equality. | |
Public Attributes | |
| std::string | name |
| VertexType | type |
| double | headway {HEADWAY_DEFAULT} |
Static Public Attributes | |
| static constexpr double | HEADWAY_DEFAULT {0.0} |
Represents a vertex (node) in the railway network graph.
A vertex models a physical point on the rail topology, such as a signal, a track-detection boundary, or a plain interior node. The type field determines how the vertex is treated by algorithms.
|
inline |
Constructs a Vertex with an explicit headway value.
| name | Human-readable identifier for the vertex. |
| type | Topological/signal type (NoBorder, VSS, TTD, NoBorderVSS). |
| headway | Additional minimum headway (in seconds) imposed at this vertex; defaults to HEADWAY_DEFAULT (0.0). |
|
inline |
Constructs a Vertex with an optional headway value.
| name | Human-readable identifier for the vertex. |
| type | Topological/signal type. |
| headway | Optional headway in seconds; std::nullopt falls back to HEADWAY_DEFAULT. |
|
inline |
Compares two vertices for equality.
| other | Vertex to compare against. |
| double cda_rail::Vertex::headway {HEADWAY_DEFAULT} |
|
staticconstexpr |
| std::string cda_rail::Vertex::name |
| VertexType cda_rail::Vertex::type |