|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Classes | |
| class | CustomException |
| Base class for project-specific exceptions. More... | |
| class | ModelCreationException |
| Thrown when model creation fails. More... | |
| class | ExportException |
| Thrown when export fails. More... | |
| class | ConsistencyException |
| Thrown when a consistency check fails. More... | |
| class | InvalidInputException |
| Thrown when input values do not satisfy expected constraints. More... | |
| class | ImportException |
| Thrown when importing data fails. More... | |
| class | VertexNotExistentException |
| Thrown when a referenced vertex does not exist. More... | |
| class | EdgeNotExistentException |
| Thrown when a referenced edge does not exist. More... | |
| class | TrainNotExistentException |
| Thrown when a referenced train does not exist. More... | |
| class | StationNotExistentException |
| Thrown when a referenced station does not exist. More... | |
| class | ScheduleNotExistentException |
| Thrown when a referenced schedule does not exist. More... | |
Functions | |
| void | throw_if_less (double const value, double const threshold, std::string_view const name, bool inclusive) |
| Validates that a value meets a minimum threshold constraint. | |
| void | throw_if_less_than (double const value, double const threshold, std::string_view const name) |
| Throws if a value is less than a threshold. | |
| void | throw_if_less_than_or_equal (double const value, double const threshold, std::string_view const name) |
| Validates that a value is greater than a threshold. | |
| void | throw_if_negative (double const value, std::string_view const name) |
| Validates that a value is non-negative. | |
| void | throw_if_non_positive (double const value, double tolerance, std::string_view const name) |
| Ensures a value is strictly greater than a tolerance. | |
| void | throw_if_non_positive (double const value, std::string_view const name) |
| Validates that a value is strictly positive. | |
| void | throw_if_non_positive (int const value, std::string_view const name) |
| Throws if an integer value is not strictly positive. | |
| void | throw_if_invalid_folder_name (std::string_view const folderName) |
| Validates that a folder name is portable across Linux, Windows, and macOS. | |
|
inline |
Validates that a folder name is portable across Linux, Windows, and macOS.
This function uses a conservative allowlist to ensure portability. A folder name is accepted only if:
| folderName | The folder name to validate. |
| InvalidInputException | if the folder name violates any of the above constraints. |
|
inline |
Validates that a value meets a minimum threshold constraint.
| value | Value to validate. |
| threshold | Lower bound to enforce. |
| name | Human-readable parameter name for the error message. |
| inclusive | If true, requires value > threshold; if false, requires value >= threshold. |
| InvalidInputException | If the constraint is violated. |
|
inline |
Throws if a value is less than a threshold.
| value | Value to validate. |
| threshold | Inclusive lower bound. |
| name | Human-readable parameter name used in the error message. |
| InvalidInputException | If value < threshold. |
|
inline |
Validates that a value is greater than a threshold.
| value | Value to validate. |
| threshold | Strict lower bound (exclusive). |
| name | Parameter name for the error message. |
| InvalidInputException | If value is less than or equal to threshold. |
|
inline |
Validates that a value is non-negative.
| name | Human-readable parameter name used in the error message. |
| InvalidInputException | If the value is negative. |
|
inline |
Ensures a value is strictly greater than a tolerance.
| value | Value to validate. |
| tolerance | Strict lower bound. |
| name | Human-readable parameter name used in the error message. |
| InvalidInputException | If value <= tolerance. |
|
inline |
Validates that a value is strictly positive.
| value | Value to validate. |
| name | Parameter name used in the error message. |
| InvalidInputException | If value is less than or equal to zero. |
|
inline |
Throws if an integer value is not strictly positive.
| value | Value to validate. |
| name | Human-readable parameter name used in the error message. |
| InvalidInputException | If value <= 0. |