X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fsave%2FModelSegment.java;fp=src%2Ftim%2Fprune%2Fsave%2FModelSegment.java;h=b6596c794fd887e7ed41d0c24788b07496a72255;hp=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465 diff --git a/src/tim/prune/save/ModelSegment.java b/src/tim/prune/save/ModelSegment.java new file mode 100644 index 0000000..b6596c7 --- /dev/null +++ b/src/tim/prune/save/ModelSegment.java @@ -0,0 +1,64 @@ +package tim.prune.save; + +/** + * Class to hold a single track segment of a data model + */ +public class ModelSegment +{ + /** Start index of segment */ + private int _startIndex = 0; + /** End index of segment */ + private int _endIndex = 0; + /** Number of track points within segment */ + private int _numTrackPoints = 0; + + + /** + * Constructor + * @param inStartIndex start index of segment + */ + public ModelSegment(int inStartIndex) + { + _startIndex = inStartIndex; + } + + /** + * @return start index of segment + */ + public int getStartIndex() + { + return _startIndex; + } + + /** + * @param inEndIndex end index of segment + */ + public void setEndIndex(int inEndIndex) + { + _endIndex = inEndIndex; + } + + /** + * @return end index of segment + */ + public int getEndIndex() + { + return _endIndex; + } + + /** + * @param inNumPoints number of track points in segment + */ + public void setNumTrackPoints(int inNumPoints) + { + _numTrackPoints = inNumPoints; + } + + /** + * @return number of track points in segment + */ + public int getNumTrackPoints() + { + return _numTrackPoints; + } +}