Class TimetableStop
- Namespace
- DotBahn.Timetables.Models
- Assembly
- DotBahn.Timetables.dll
A stop in a timetable, representing a train's arrival and/or departure at a station.
public class TimetableStop
- Inheritance
-
TimetableStop
- Inherited Members
Constructors
TimetableStop()
public TimetableStop()
Properties
Arrival
Arrival event, if the train arrives at this station.
public TrainEvent? Arrival { get; init; }
Property Value
Departure
Departure event, if the train departs from this station.
public TrainEvent? Departure { get; init; }
Property Value
Id
Unique stop identifier consisting of:
- A daily trip ID that uniquely identifies a trip within one day (maybe negative)
- A 6-digit date specifier (YYMMdd) indicating the planned departure date from the start station
- An index indicating the position of the stop within the trip
public required string Id { get; init; }
Property Value
Examples
-7874571842864554321-140331-11
IsArrivalOnly
Whether this is an arrival-only stop (train terminates here).
public bool IsArrivalOnly { get; }
Property Value
IsDepartureOnly
Whether this is a departure-only stop (train originates here).
public bool IsDepartureOnly { get; }
Property Value
IsThrough
Whether this is a through stop (train both arrives and departs).
public bool IsThrough { get; }
Property Value
Messages
Messages associated with this stop.
public IEnumerable<TimetableMessage> Messages { get; init; }
Property Value
Train
Train identification information.
public required TrainLabel Train { get; init; }