source: josm/trunk/src/org/openstreetmap/josm/data/gpx/GpxTrack.java@ 10906

Last change on this file since 10906 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: 1.0 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.gpx;
3
4import java.util.Collection;
5import java.util.Map;
6
7import org.openstreetmap.josm.data.Bounds;
8
9/**
10 * Read-only gpx track. Implementations doesn't have to be immutable, but should always be thread safe.
11 * @since 444
12 */
13public interface GpxTrack extends IWithAttributes {
14
15 /**
16 * Returns the track segments.
17 * @return the track segments
18 */
19 Collection<GpxTrackSegment> getSegments();
20
21 /**
22 * Returns the track attributes.
23 * @return the track attributes
24 */
25 Map<String, Object> getAttributes();
26
27 /**
28 * Returns the track bounds.
29 * @return the track bounds
30 */
31 Bounds getBounds();
32
33 /**
34 * Returns the track length.
35 * @return the track length
36 */
37 double length();
38
39 /**
40 * Returns the number of times this track has been changed.
41 * @return Number of times this track has been changed. Always 0 for read-only tracks
42 */
43 int getUpdateCount();
44}
Note: See TracBrowser for help on using the repository browser.