Class Track
-
-
Field Summary
Fields Modifier and Type Field Description private List<Location>pointsprivate List<Integer>breaksprivate ByteArraybreaksBinaryprivate List<Point>waypointsprivate BooleanisUseFolderStyleprivate IntegeractivityTypeprivate TrackStatsstatsprivate LongstoreItemIdprivate LongstoreVersionIdprivate final IntegerpointsCountprivate Longidprivate Stringnameprivate LongtimeCreatedprivate LongtimeUpdatedprivate GeoDataExtraextraDataprivate GeoDataStylestyleNormalprivate GeoDataStylestyleHighlightprivate GeoData.Privacyprivacyprivate Booleanprotectedprivate BooleanisEnabledprivate BooleanisVisibleprivate BooleanisSelectedprivate ByteArrayextraDataRawprivate ByteArraystylesprivate final Storablecopyprivate final ByteArrayasBytes
-
Constructor Summary
Constructors Constructor Description Track()
-
Method Summary
Modifier and Type Method Description final List<Location>getPoints()Locations of this track final UnitsetPoints(List<Location> points)Locations of this track final List<Integer>getBreaks()List containing all track break points. final UnitsetBreaks(List<Integer> breaks)List containing all track break points. final ByteArraygetBreaksBinary()final UnitsetBreaksBinary(ByteArray breaksBinary)final List<Point>getWaypoints()Extra points (also may include routing data) final UnitsetWaypoints(List<Point> waypoints)Extra points (also may include routing data) final BooleanisUseFolderStyle()Flag that indicate whether to use parent folder style if exists. final UnitsetUseFolderStyle(Boolean isUseFolderStyle)Flag that indicate whether to use parent folder style if exists. final IntegergetActivityType()Type of activity final UnitsetActivityType(Integer activityType)Type of activity final TrackStatsgetStats()Track statistics (generated statistics of track) final UnitsetStats(TrackStats stats)Track statistics (generated statistics of track) final LonggetStoreItemId()Reference to Locus Store item (item ID). final UnitsetStoreItemId(Long storeItemId)Reference to Locus Store item (item ID). final LonggetStoreVersionId()Reference to Locus Store item (version ID) final UnitsetStoreVersionId(Long storeVersionId)Reference to Locus Store item (version ID) final IntegergetPointsCount()final LocationgetPoint(Integer index)Get point on certain index. final UnitsetStats(ByteArray data)Set custom track statistics to current track. IntegergetVersion()Object version used for storing. UnitreadObject(Integer version, DataReaderBigEndian dr)This function is called from . UnitwriteObject(DataWriterBigEndian dw)This function is called from . -
Methods inherited from class locus.api.objects.geoData.GeoData
addParameter, addParameter, addParameter, getExtraData, getExtraDataRaw, getId, getName, getParameter, getParameterRaw, getPrivacy, getProtected, getStyleHighlight, getStyleNormal, getStyles, getTag, getTag, getTagsKeys, getTimeCreated, getTimeUpdated, hasParameter, isEnabled, isSelected, isVisible, removeParameter, setEnabled, setExtraData, setExtraDataRaw, setId, setName, setPrivacy, setProtected, setSelected, setStyleHighlight, setStyleNormal, setStyles, setTag, setTag, setTimeCreated, setTimeUpdated, setVisible -
Methods inherited from class locus.api.objects.Storable
getAsBytes, getCopy, read, read, read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getBreaks
final List<Integer> getBreaks()
List containing all track break points. Break point is defined as index of point, after which follow break in track. So break point "1" means, that after second point (point with index 1) follow a break.
-
setBreaks
final Unit setBreaks(List<Integer> breaks)
List containing all track break points. Break point is defined as index of point, after which follow break in track. So break point "1" means, that after second point (point with index 1) follow a break.
-
getBreaksBinary
final ByteArray getBreaksBinary()
-
setBreaksBinary
final Unit setBreaksBinary(ByteArray breaksBinary)
-
getWaypoints
final List<Point> getWaypoints()
Extra points (also may include routing data)
-
setWaypoints
final Unit setWaypoints(List<Point> waypoints)
Extra points (also may include routing data)
-
isUseFolderStyle
final Boolean isUseFolderStyle()
Flag that indicate whether to use parent folder style if exists.
-
setUseFolderStyle
final Unit setUseFolderStyle(Boolean isUseFolderStyle)
Flag that indicate whether to use parent folder style if exists.
-
getActivityType
final Integer getActivityType()
Type of activity
-
setActivityType
final Unit setActivityType(Integer activityType)
Type of activity
-
getStats
final TrackStats getStats()
Track statistics (generated statistics of track)
-
setStats
final Unit setStats(TrackStats stats)
Track statistics (generated statistics of track)
-
getStoreItemId
final Long getStoreItemId()
Reference to Locus Store item (item ID).
-
setStoreItemId
final Unit setStoreItemId(Long storeItemId)
Reference to Locus Store item (item ID).
-
getStoreVersionId
final Long getStoreVersionId()
Reference to Locus Store item (version ID)
-
setStoreVersionId
final Unit setStoreVersionId(Long storeVersionId)
Reference to Locus Store item (version ID)
-
getPointsCount
final Integer getPointsCount()
-
getPoint
final Location getPoint(Integer index)
Get point on certain index.
- Parameters:
index- point index
-
getVersion
Integer getVersion()
Object version used for storing.
-
readObject
Unit readObject(Integer version, DataReaderBigEndian dr)
This function is called from .read function. Do not call it directly until you know, what exactly are you doing.
- Parameters:
version- version of loading contentdr- data reader with content
-
writeObject
Unit writeObject(DataWriterBigEndian dw)
This function is called from .write function. Do not call it directly until you know, what exactly are you doing.
- Parameters:
dw- data writer class
-
-
-
-