|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
How a VSS generation solver models the VSS borders. More...
#include <VSSModel.hpp>
Public Member Functions | |
| Model ()=default | |
| The continuous model without separation functions. | |
| Model (ModelType model_type_input) | |
| A model type used without separation functions. | |
| Model (ModelType model_type_input, std::vector< SeparationFunction > separation_functions_input) | |
| A model type together with the separation functions it uses. | |
| Model (ModelType model_type_input, std::vector< SeparationFunction > separation_functions_input, bool only_stop_at_vss_input) | |
| The same, restricting where trains are allowed to stop. | |
| const ModelType & | get_model_type () const |
| Retrieves the model type. | |
| bool | get_only_stop_at_vss () const |
| Whether trains may only stop at VSS borders. | |
| const std::vector< SeparationFunction > & | get_separation_functions () const |
| Retrieves the separation functions. | |
| std::string | get_separation_function_names () const |
| Retrieves the names of the separation functions, comma separated. | |
| bool | check_consistency () const |
| Validates that the model type and separation functions are consistently configured. | |
How a VSS generation solver models the VSS borders.
Which separation functions are needed depends on the model type, see ModelType and check_consistency. They are ignored by the continuous model, which is why they are optional.
|
explicitdefault |
The continuous model without separation functions.
|
inlineexplicit |
A model type used without separation functions.
|
inlineexplicit |
A model type together with the separation functions it uses.
|
inlineexplicit |
The same, restricting where trains are allowed to stop.
| only_stop_at_vss_input | If set, trains may only stop at VSS borders, not anywhere on an edge. |
|
inlinenodiscard |
Validates that the model type and separation functions are consistently configured.
Checks that the model_type and separation_functions match one of these valid configurations:
|
inlinenodiscard |
Retrieves the model type.
|
inlinenodiscard |
Whether trains may only stop at VSS borders.
|
inlinenodiscard |
Retrieves the names of the separation functions, comma separated.
In contrast to get_separation_functions this does not throw if the model has no separation functions, because a model without them, namely a continuous one, is perfectly valid.
|
inlinenodiscard |
Retrieves the separation functions.
| std::logic_error | If the model has none. |