public class DeJRMTimetable
extends java.lang.Object
| Constructor and Description |
|---|
DeJRMTimetable(java.lang.String timetableName)
Construct the timetable with the specified name.
|
DeJRMTimetable(java.lang.String timetableName,
DeJRMTimetable copy)
Copy constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyLatenessToTrain(java.lang.String trainId,
int lateness)
Apply the number of seconds of lateness to the specified train.
|
DeJRMTDSection.DeJRMTDSectionDirection |
getDirectionForServiceAcrossTDS(java.lang.String serviceId,
java.lang.String tdSection)
Gets the direction across the TDSection the the specified service will travel on this timetable.
|
java.util.Date |
getFirstTime(java.lang.String trainId)
Gets the first timetabled time for the specified train.
|
int |
getRunningTimeForServiceAcrossTDS(java.lang.String serviceId,
java.lang.String tdSection)
Gets the direction across the TDSection the the specified service will travel on this timetable.
|
java.util.List<java.lang.String> |
getServicesInTimetable()
Gets all of the services operating in this timetable.
|
DeJRMServiceTimetable |
getServiceTimetable(java.lang.String serviceId)
Gets the service timetable object for the service with the specified ID.
|
java.util.Date |
getTimetabledTime(java.lang.String trainId,
java.lang.String tdSection)
Gets the timetabled time for the specified train to enter the specified TDSection.
|
void |
rescheduleTrain(java.lang.String trainId,
int lateness,
java.lang.String tdSectionId)
Reschedule the specified train at and after the specified TDSection.
|
public DeJRMTimetable(java.lang.String timetableName)
timetableName - public DeJRMTimetable(java.lang.String timetableName,
DeJRMTimetable copy)
copy - public java.util.Date getTimetabledTime(java.lang.String trainId,
java.lang.String tdSection)
trainId - tdSection - public java.util.Date getFirstTime(java.lang.String trainId)
trainId - public java.util.List<java.lang.String> getServicesInTimetable()
public DeJRMServiceTimetable getServiceTimetable(java.lang.String serviceId)
serviceId - public DeJRMTDSection.DeJRMTDSectionDirection getDirectionForServiceAcrossTDS(java.lang.String serviceId, java.lang.String tdSection)
serviceId - tdSection - public int getRunningTimeForServiceAcrossTDS(java.lang.String serviceId,
java.lang.String tdSection)
serviceId - tdSection - public void applyLatenessToTrain(java.lang.String trainId,
int lateness)
trainId - lateness - public void rescheduleTrain(java.lang.String trainId,
int lateness,
java.lang.String tdSectionId)
lateness - tdSectionId -