|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Separates the station tracks of an instance, see GeneralPerformanceOptimizationInstance::discretize_stops, as long as it exists. More...
#include <GeneralPerformanceOptimizationInstance.hpp>
Public Member Functions | |
| StopDiscretization (GeneralPerformanceOptimizationInstance &instance) | |
Separates the station tracks of instance. | |
| ~StopDiscretization () | |
| Restores the original instance. | |
| StopDiscretization (const StopDiscretization &)=delete | |
| StopDiscretization & | operator= (const StopDiscretization &)=delete |
| StopDiscretization (StopDiscretization &&)=delete | |
| StopDiscretization & | operator= (StopDiscretization &&)=delete |
| const GeneralPerformanceOptimizationInstance & | original () const |
| The instance as it was before its station tracks were separated. | |
Separates the station tracks of an instance, see GeneralPerformanceOptimizationInstance::discretize_stops, as long as it exists.
On the separated tracks, a train can also stop within a long platform, e.g., behind another train. The moving block solvers solve on the separated instance and build their solution on original(), mapping their routes back by Network::get_old_path, which only undoes this separation, also if the original instance was transformed before. Positions along a route, as well as stop and exit times, are the same in both instances. The original instance is restored on every exit path, also if an exception is thrown.
|
explicit |
Separates the station tracks of instance.
| cda_rail::instances::StopDiscretization::~StopDiscretization | ( | ) |
Restores the original instance.
|
delete |
|
delete |
|
delete |
|
delete |
|
inlinenodiscard |
The instance as it was before its station tracks were separated.