-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTrack.Companion
-
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 ByteparameterSourceprivate StringparameterStyleNameprivate StringparameterDescriptionprivate PointRteActionparameterRteActionprivate final IntegerparamRteIndexprivate 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 BooleangetIsUseFolderStyle()Flag that indicate whether to use parent folder style if exists. final UnitsetIsUseFolderStyle(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 LonggetId()Unique ID of this object. final UnitsetId(Long id)Unique ID of this object. final StringgetName()Name of object, have to be unique final UnitsetName(String name)Name of object, have to be unique final LonggetTimeCreated()Time the data was created (ms). final UnitsetTimeCreated(Long timeCreated)Time the data was created (ms). final LonggetTimeUpdated()Time the data was updated for the last time (ms). final UnitsetTimeUpdated(Long timeUpdated)Time the data was updated for the last time (ms). final GeoDataExtragetExtraData()Extra data with parameters. final UnitsetExtraData(GeoDataExtra extraData)Extra data with parameters. final GeoDataStylegetStyleNormal()Style for normal state. final UnitsetStyleNormal(GeoDataStyle styleNormal)Style for normal state. final GeoDataStylegetStyleHighlight()Style for highlight state. final UnitsetStyleHighlight(GeoDataStyle styleHighlight)Style for highlight state. final GeoData.PrivacygetPrivacy()Define item privacy mode. final UnitsetPrivacy(GeoData.Privacy privacy)Define item privacy mode. final BooleangetProtected()Define read-write mode of item. final UnitsetProtected(Boolean protected)Define read-write mode of item. final BooleangetIsEnabled()final UnitsetIsEnabled(Boolean isEnabled)final BooleangetIsVisible()final UnitsetIsVisible(Boolean isVisible)final BooleangetIsSelected()final UnitsetIsSelected(Boolean isSelected)final ByteArraygetExtraDataRaw()final UnitsetExtraDataRaw(ByteArray extraDataRaw)final BytegetParameterSource()final UnitsetParameterSource(Byte parameterSource)final StringgetParameterStyleName()final UnitsetParameterStyleName(String parameterStyleName)final StringgetParameterDescription()final UnitsetParameterDescription(String parameterDescription)final PointRteActiongetParameterRteAction()final UnitsetParameterRteAction(PointRteAction parameterRteAction)final IntegergetParamRteIndex()final ByteArraygetStyles()final UnitsetStyles(ByteArray styles)final StorablegetCopy()final ByteArraygetAsBytes()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.Track
addAttachmentAudio, addAttachmentOther, addAttachmentPhoto, addAttachmentVideo, addEmail, addEmail, addParameter, addParameter, addParameter, addParameter, addParameterEmail, addParameterEmail, addParameterPhone, addParameterPhone, addParameterUrl, addParameterUrl, addPhone, addPhone, addUrl, addUrl, getParameter, getParameterRaw, getTag, getTag, getTagsKeys, hasParameter, hasParameterDescription, isParameterSource, removeParameter, removeParameterSource, removeParameterStyleName, setTag, setTag -
Methods inherited from class locus.api.objects.geoData.GeoData
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)
-
getIsUseFolderStyle
final Boolean getIsUseFolderStyle()
Flag that indicate whether to use parent folder style if exists.
-
setIsUseFolderStyle
final Unit setIsUseFolderStyle(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()
-
getTimeCreated
final Long getTimeCreated()
Time the data was created (ms).
-
setTimeCreated
final Unit setTimeCreated(Long timeCreated)
Time the data was created (ms).
-
getTimeUpdated
final Long getTimeUpdated()
Time the data was updated for the last time (ms).
-
setTimeUpdated
final Unit setTimeUpdated(Long timeUpdated)
Time the data was updated for the last time (ms).
-
getExtraData
final GeoDataExtra getExtraData()
Extra data with parameters.
-
setExtraData
final Unit setExtraData(GeoDataExtra extraData)
Extra data with parameters.
-
getStyleNormal
final GeoDataStyle getStyleNormal()
Style for normal state.
-
setStyleNormal
final Unit setStyleNormal(GeoDataStyle styleNormal)
Style for normal state.
-
getStyleHighlight
final GeoDataStyle getStyleHighlight()
Style for highlight state.
-
setStyleHighlight
final Unit setStyleHighlight(GeoDataStyle styleHighlight)
Style for highlight state.
-
getPrivacy
final GeoData.Privacy getPrivacy()
Define item privacy mode.
-
setPrivacy
final Unit setPrivacy(GeoData.Privacy privacy)
Define item privacy mode.
-
getProtected
final Boolean getProtected()
Define read-write mode of item. Protected item should not be exported from the Locus World or shared publicly to any place out of Locus scope.
-
setProtected
final Unit setProtected(Boolean protected)
Define read-write mode of item. Protected item should not be exported from the Locus World or shared publicly to any place out of Locus scope.
-
getIsEnabled
final Boolean getIsEnabled()
-
setIsEnabled
final Unit setIsEnabled(Boolean isEnabled)
-
getIsVisible
final Boolean getIsVisible()
-
setIsVisible
final Unit setIsVisible(Boolean isVisible)
-
getIsSelected
final Boolean getIsSelected()
-
setIsSelected
final Unit setIsSelected(Boolean isSelected)
-
getExtraDataRaw
final ByteArray getExtraDataRaw()
-
setExtraDataRaw
final Unit setExtraDataRaw(ByteArray extraDataRaw)
-
getParameterSource
final Byte getParameterSource()
-
setParameterSource
final Unit setParameterSource(Byte parameterSource)
-
getParameterStyleName
final String getParameterStyleName()
-
setParameterStyleName
final Unit setParameterStyleName(String parameterStyleName)
-
getParameterDescription
final String getParameterDescription()
-
setParameterDescription
final Unit setParameterDescription(String parameterDescription)
-
getParameterRteAction
final PointRteAction getParameterRteAction()
-
setParameterRteAction
final Unit setParameterRteAction(PointRteAction parameterRteAction)
-
getParamRteIndex
final Integer getParamRteIndex()
-
getAsBytes
final ByteArray getAsBytes()
-
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
-
-
-
-