|
MTCT
Design Automation and Optimization for ETCS Railway Networks
|
Scheduling information for a stop within a timetable. More...
#include <Timetable.hpp>
Public Member Functions | |
| ScheduledStop (double const serviceTime, double const serviceDuration, std::shared_ptr< Station > station) | |
| Constructs a scheduled stop for a concrete station. | |
| double | get_service_time () const |
| Retrieves the earliest service start time. | |
| double | get_earliest_departure () const |
| Computes the earliest departure time from this stop. | |
| double | get_service_duration () const |
| Accesses the minimum service duration. | |
| Station const & | get_station () const |
| Accesses the station associated with this stop. | |
| void | set_service_time (double new_service_time) |
| Sets the earliest service start time. | |
| void | set_service_duration (double new_service_duration) |
| Sets the minimum service duration. | |
| void | set_station (std::shared_ptr< Station > new_station) |
| Sets the station for this scheduled stop. | |
Friends | |
| class | Timetable |
Scheduling information for a stop within a timetable.
Stores the earliest service start time, the minimum service duration, and the associated station.
|
inline |
Constructs a scheduled stop for a concrete station.
| serviceTime | Earliest service start time. |
| serviceDuration | Minimum required service duration. |
| station | Station at which the stop is scheduled. |
| cda_rail::exceptions::InvalidInputException | If preconditions are violated. |
|
inlinenodiscard |
Computes the earliest departure time from this stop.
|
inlinenodiscard |
Accesses the minimum service duration.
|
inlinenodiscard |
Retrieves the earliest service start time.
|
inlinenodiscard |
Accesses the station associated with this stop.
|
inline |
Sets the minimum service duration.
| new_service_duration | New minimum service duration. |
| cda_rail::exceptions::InvalidInputException | If the duration is negative. |
|
inline |
Sets the earliest service start time.
| new_service_time | New earliest service start time. |
| cda_rail::exceptions::InvalidInputException | If new_service_time is negative. |
|
inline |
Sets the station for this scheduled stop.
| new_station | New station pointer. |
| cda_rail::exceptions::InvalidInputException | If new_station is null. |
|
friend |