Package jmri.jmrit.timetable
Class Segment
- java.lang.Object
-
- jmri.jmrit.timetable.Segment
-
public class Segment extends java.lang.Object
Define the content of a Segment 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 Segment
getCopy(int layoutId)
Make a copy of the segment.int
getLayoutId()
int
getSegmentId()
java.lang.String
getSegmentName()
void
setSegmentName(java.lang.String newName)
java.lang.String
toString()
-
-
-
Method Detail
-
getCopy
public Segment getCopy(int layoutId)
Make a copy of the segment.- Parameters:
layoutId
- The new layoutId, if zero use the current layout id.- Returns:
- a new segment instance.
-
getSegmentId
public int getSegmentId()
-
getLayoutId
public int getLayoutId()
-
getSegmentName
public java.lang.String getSegmentName()
-
setSegmentName
public void setSegmentName(java.lang.String newName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-