|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Represents a directed edge in the railway network graph. More...
#include <RailwayNetwork.hpp>
Public Member Functions | |
| Edge (size_t const source, size_t const target, double const length, double const maxSpeed, bool const breakable=BREAKABLE_DEFAULT, double const minBlockLength=MIN_BLOCK_LENGTH_DEFAULT, double const minStopBlockLength=MIN_STOP_BLOCK_LENGTH_DEFAULT) | |
| Constructs an Edge with explicit attribute values. | |
| Edge (size_t const source, size_t const target, double const length, double const maxSpeed, std::optional< bool > const &breakable, std::optional< double > const &min_block_length, std::optional< double > const &min_stop_block_length) | |
| Constructs an Edge with optional attribute values falling back to their defaults when not provided. | |
| bool | operator== (const Edge &other) const |
| Compares two edges for equality. | |
Public Attributes | |
| size_t | source |
| size_t | target |
| double | length |
| double | max_speed |
| bool | breakable {BREAKABLE_DEFAULT} |
| double | min_block_length {MIN_BLOCK_LENGTH_DEFAULT} |
| double | min_stop_block_length {MIN_STOP_BLOCK_LENGTH_DEFAULT} |
Static Public Attributes | |
| static constexpr bool | BREAKABLE_DEFAULT = true |
| static constexpr double | MIN_BLOCK_LENGTH_DEFAULT = 1.0 |
| static constexpr double | MIN_STOP_BLOCK_LENGTH_DEFAULT = 100.0 |
Represents a directed edge in the railway network graph.
An edge models a physical track segment between two vertices. The breakable flag controls whether a Virtual Sub-Section (VSS) border may be placed anywhere on the segment.
|
inline |
Constructs an Edge with explicit attribute values.
| source | Index of the source vertex. |
| target | Index of the target vertex. |
| length | Length of the edge in metres. |
| maxSpeed | Maximum permitted speed on this edge in m/s. |
| breakable | true if a VSS border may be placed on this edge; defaults to BREAKABLE_DEFAULT (true). |
| minBlockLength | Minimum block length in metres; defaults to MIN_BLOCK_LENGTH_DEFAULT (1.0 m). |
| minStopBlockLength | Minimum block length inside a station stop zone in metres; defaults to MIN_STOP_BLOCK_LENGTH_DEFAULT (100.0 m). |
|
inline |
Constructs an Edge with optional attribute values falling back to their defaults when not provided.
| source | Index of the source vertex. |
| target | Index of the target vertex. |
| length | Length of the edge in metres. |
| maxSpeed | Maximum permitted speed in m/s. |
| breakable | Optional breakable flag; std::nullopt uses BREAKABLE_DEFAULT. |
| min_block_length | Optional minimum block length; std::nullopt uses MIN_BLOCK_LENGTH_DEFAULT. |
| min_stop_block_length | Optional minimum stop-block length; std::nullopt uses MIN_STOP_BLOCK_LENGTH_DEFAULT. |
|
inline |
Compares two edges for equality.
| other | Edge to compare against. |
| bool cda_rail::Edge::breakable {BREAKABLE_DEFAULT} |
|
staticconstexpr |
| double cda_rail::Edge::length |
| double cda_rail::Edge::max_speed |
| double cda_rail::Edge::min_block_length {MIN_BLOCK_LENGTH_DEFAULT} |
|
staticconstexpr |
| double cda_rail::Edge::min_stop_block_length {MIN_STOP_BLOCK_LENGTH_DEFAULT} |
|
staticconstexpr |
| size_t cda_rail::Edge::source |
| size_t cda_rail::Edge::target |