Package jmri.jmrit.timetable
Class Stop
java.lang.Object
jmri.jmrit.timetable.Stop
Define the content of a Stop record.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCopy(int trainId, int stationId, int seq) Make a copy of the stop.intintintintgetSeq()intintintintvoidsetArriveTime(int newArriveTime) voidsetDepartTime(int newDepartTime) voidsetDuration(int newDuration) voidsetNextSpeed(int newNextSpeed) voidsetSeq(int newSeq) voidsetStagingTrack(int newStagingTrack) voidsetStationId(int newStationId) voidsetStopNotes(String newNotes) toString()
-
Field Details
-
_dm
-
-
Constructor Details
-
Stop
Create a new stop with default values.- Parameters:
trainId- The parent train id.seq- The next stop sequence number.- Throws:
IllegalArgumentException- STOP_ADD_FAIL
-
Stop
-
-
Method Details
-
getCopy
Make a copy of the stop.- Parameters:
trainId- The new train id, if zero use the current train id.stationId- The new station id. If zero use the current station id.seq- The sequence for the new stop.- Returns:
- a new Stop instance.
-
getStopId
-
getTrainId
-
getStationId
-
setStationId
-
getSeq
-
setSeq
-
getDuration
-
setDuration
-
getNextSpeed
-
setNextSpeed
-
getArriveTime
-
setArriveTime
-
getDepartTime
-
setDepartTime
-
getStagingTrack
-
setStagingTrack
-
getStopNotes
-
setStopNotes
-
toString
-