public class ImmutableGpxTrack extends WithAttributes implements GpxTrack
Modifier and Type | Field and Description |
---|---|
private Bounds |
bounds |
private double |
length |
private java.util.Collection<GpxTrackSegment> |
segments |
attr
FIX_VALUES, GPX_CMT, GPX_DESC, GPX_NAME, GPX_SRC, JOSM_EXTENSIONS_NAMESPACE_URI, META_AUTHOR_EMAIL, META_AUTHOR_LINK, META_AUTHOR_NAME, META_BOUNDS, META_COPYRIGHT_AUTHOR, META_COPYRIGHT_LICENSE, META_COPYRIGHT_YEAR, META_DESC, META_EXTENSIONS, META_KEYWORDS, META_LINKS, META_NAME, META_PREFIX, META_TIME, PT_AGEOFDGPSDATA, PT_DGPSID, PT_ELE, PT_FIX, PT_GEOIDHEIGHT, PT_HDOP, PT_MAGVAR, PT_PDOP, PT_SAT, PT_SYM, PT_TIME, PT_TYPE, PT_VDOP, RTE_TRK_KEYS, WPT_KEYS
Constructor and Description |
---|
ImmutableGpxTrack(java.util.Collection<java.util.Collection<WayPoint>> trackSegs,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Constructs a new
ImmutableGpxTrack . |
Modifier and Type | Method and Description |
---|---|
private Bounds |
calculateBounds() |
private double |
calculateLength() |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Returns the track attributes.
|
Bounds |
getBounds()
Returns the track bounds.
|
java.util.Collection<GpxTrackSegment> |
getSegments()
Returns the track segments.
|
int |
getUpdateCount()
Returns the number of times this track has been changed.
|
double |
length()
Returns the track length.
|
addExtension, get, getCollection, getString, put
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addExtension, get, getCollection, getString, put
private final java.util.Collection<GpxTrackSegment> segments
private final double length
public ImmutableGpxTrack(java.util.Collection<java.util.Collection<WayPoint>> trackSegs, java.util.Map<java.lang.String,java.lang.Object> attributes)
ImmutableGpxTrack
.trackSegs
- track segmentsattributes
- track attributesprivate double calculateLength()
private Bounds calculateBounds()
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
GpxTrack
getAttributes
in interface GpxTrack
public Bounds getBounds()
GpxTrack
public java.util.Collection<GpxTrackSegment> getSegments()
GpxTrack
getSegments
in interface GpxTrack
public int getUpdateCount()
GpxTrack
getUpdateCount
in interface GpxTrack