source: josm/trunk/src/org/openstreetmap/josm/data/gpx/GpxTrackSegment.java@ 11710

Last change on this file since 11710 was 9949, checked in by Don-vip, 8 years ago

remove deprecated stuff, code cleanup, javadoc, unit tests

  • Property svn:eol-style set to native
File size: 885 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.gpx;
3
4import java.util.Collection;
5
6import org.openstreetmap.josm.data.Bounds;
7
8/**
9 * Read-only gpx track segments. Implementations doesn't have to be immutable, but should always be thread safe.
10 * @since 2907
11 */
12public interface GpxTrackSegment {
13
14 /**
15 * Returns the segment bounds.
16 * @return the segment bounds
17 */
18 Bounds getBounds();
19
20 /**
21 * Returns the segment waypoints.
22 * @return the segment waypoints
23 */
24 Collection<WayPoint> getWayPoints();
25
26 /**
27 * Returns the segment length.
28 * @return the segment length
29 */
30 double length();
31
32 /**
33 * Returns the number of times this track has been changed
34 * @return Number of times this track has been changed. Always 0 for read-only segments
35 */
36 int getUpdateCount();
37}
Note: See TracBrowser for help on using the repository browser.