Package jmri.jmrit.timetable
Class Stop
- java.lang.Object
-
- jmri.jmrit.timetable.Stop
-
public class Stop extends java.lang.Object
Define the content of a Stop record.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) TimeTableDataManager_dm
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetArriveTime()StopgetCopy(int trainId, int stationId, int seq)Make a copy of the stop.intgetDepartTime()intgetDuration()intgetNextSpeed()intgetSeq()intgetStagingTrack()intgetStationId()intgetStopId()java.lang.StringgetStopNotes()intgetTrainId()voidsetArriveTime(int newArriveTime)voidsetDepartTime(int newDepartTime)voidsetDuration(int newDuration)voidsetNextSpeed(int newNextSpeed)voidsetSeq(int newSeq)voidsetStagingTrack(int newStagingTrack)voidsetStationId(int newStationId)voidsetStopNotes(java.lang.String newNotes)java.lang.StringtoString()
-
-
-
Constructor Detail
-
Stop
public Stop(int trainId, int seq)
Create a new stop with default values.- Parameters:
trainId- The parent train id.seq- The next stop sequence number.- Throws:
java.lang.IllegalArgumentException- STOP_ADD_FAIL
-
Stop
public Stop(int stopId, int trainId, int stationId, int seq, int duration, int nextSpeed, int arriveTime, int departTime, int stagingTrack, java.lang.String stopNotes)
-
-
Method Detail
-
getCopy
public Stop getCopy(int trainId, int stationId, int seq)
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
public int getStopId()
-
getTrainId
public int getTrainId()
-
getStationId
public int getStationId()
-
setStationId
public void setStationId(int newStationId)
-
getSeq
public int getSeq()
-
setSeq
public void setSeq(int newSeq)
-
getDuration
public int getDuration()
-
setDuration
public void setDuration(int newDuration)
-
getNextSpeed
public int getNextSpeed()
-
setNextSpeed
public void setNextSpeed(int newNextSpeed)
-
getArriveTime
public int getArriveTime()
-
setArriveTime
public void setArriveTime(int newArriveTime)
-
getDepartTime
public int getDepartTime()
-
setDepartTime
public void setDepartTime(int newDepartTime)
-
getStagingTrack
public int getStagingTrack()
-
setStagingTrack
public void setStagingTrack(int newStagingTrack)
-
getStopNotes
public java.lang.String getStopNotes()
-
setStopNotes
public void setStopNotes(java.lang.String newNotes)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-