public class GeoTrack extends java.lang.Object implements Track<GeoCoord>
Constructor and Description |
---|
GeoTrack() |
Modifier and Type | Method and Description |
---|---|
void |
addCoord(GeoCoord coord,
java.util.Date date)
Add a geographic coordinate with an associated date to this track
|
GeoPolyline |
createPolyline()
Create a GeoPolyline which represents the path of this track
|
GeoCoord |
getCurrentValue()
Returns the current value based upon the current time setting for this
track.
|
java.util.Date |
getCurTime()
Returns the time for the object
|
DataRecord |
getData()
Get the data record associated with this track.
|
GeoCoord |
getValue(java.util.Date time)
Get the geographic coordinate in the track at the specified time.
|
GeoCoord |
getValue(int index)
Return the value for the given index.
|
boolean |
isTimed()
return whether the track is indexed by time.
|
void |
setCurTime(java.util.Date time)
Sets the time for the object
|
void |
setData(DataRecord dataRecord)
Set the data record associated with this track.
|
public void addCoord(GeoCoord coord, java.util.Date date)
coord
- the geographic coordinatedate
- the date for the geographic coordinatepublic GeoPolyline createPolyline()
public GeoCoord getCurrentValue()
getCurrentValue
in interface Track<GeoCoord>
public java.util.Date getCurTime()
getCurTime
in interface Temporal
public DataRecord getData()
public GeoCoord getValue(java.util.Date time)
public GeoCoord getValue(int index)
public boolean isTimed()
public void setCurTime(java.util.Date time)
setCurTime
in interface Temporal
time
- the time for the objectpublic void setData(DataRecord dataRecord)