|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.c5corp.c5gps.GpsType
com.c5corp.c5gps.GpsPointRecord
com.c5corp.c5gps.TrackPoint
public class TrackPoint
Like a waypoint, a trackpoint describes a location, but is unnamed and in aggregate (a track log) describes a sample of a detailed path. The distance between points is often a matter of meters, and can be considered as a sample of a continuous path. (Unlike a Route, which is made up of sequential waypoints.) Trackpoints are always part of a tracklog - unlike a way point, they don't exist independently of a containing data type. See the TrackLog class. Note: there is no description attribute. However, the TrackLog class has a description attribute to describe the whole track.
Another important matter to note is that all of the C5UTM GpsDataFileType classes and the data classes they encapsulate are intended for use with a relational database application. There are fields in typical GPS data that are ignored by these classes, and often, floating point type numbers are rounded to intergers.
TrackLog
Field Summary |
---|
Fields inherited from class com.c5corp.c5gps.GpsType |
---|
hdatum |
Constructor Summary | |
---|---|
protected |
TrackPoint(java.lang.String type,
int zoneNum,
int easting,
int northing,
java.util.Calendar date,
int altitude,
TrackLog parentTrackLog)
Constructor for TrackPoint accepting a zone, easting, northing, Calendar object, altitude. |
protected |
TrackPoint(java.lang.String type,
int zoneNum,
int easting,
int northing,
int month,
int day,
int year,
int hour,
int minute,
int second,
int altitude,
int timeZoneOffset,
TrackLog parentTrackLog)
Constructor for TrackPoint accepting a ZoneNum, Easting, Northing, Month, Day, Year, Hour, Min, Second, Altitude, and a time zone offset. |
protected |
TrackPoint(java.lang.String type,
int zoneNum,
int easting,
int northing,
int altitude,
TrackLog parentTrackLog)
Constructor for TrackPoint accepting a trackpoint_id, zone, easting, northing, altitude and tracklog id. |
protected |
TrackPoint(java.lang.String type,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
java.util.Calendar date,
int altitude,
TrackLog parentTrackLog)
Constructor for TrackPoint accepting a zone, zone char (as a String), easting, northing, Calendar object, altitude. |
protected |
TrackPoint(java.lang.String type,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
int month,
int day,
int year,
int hour,
int minute,
int second,
int altitude,
int timeZoneOffset,
TrackLog parentTrackLog)
Constructor for TrackPoint accepting a ZoneNum, Easting, Northing, Month, Day, Year, Hour, Min, Sec, Altitude, and a time zone offset. |
protected |
TrackPoint(java.lang.String type,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
int altitude,
TrackLog parentTrackLog)
Constructor for TrackPoint accepting a trackpoint_id, zone, zone char (as a String), easting, northing, altitude and tracklog id. |
Method Summary | |
---|---|
int |
getAltitude()
returns the TrackPoint altitude |
java.util.Calendar |
getDate()
returns the TrackPoint Date |
java.lang.String |
getDatum()
returns the TrackPoint datum |
int |
getEasting()
returns the TrackPoint easting |
int |
getNorthing()
returns the TrackPoint northing |
java.lang.String |
getType()
returns the TrackPoint type, which should be "T" for TrackPoint or "N" for a new TrackPoint (implying that this is the first trackpoint that a GPS device recorded after starting up, or losing satellite reception temporarilly. |
UtmCoordinatePairElev |
getUtmCoordinatePairElev()
returns a artificial UtmCoordinatePairElev object representation of the point |
int |
getZone()
returns the TrackPoint zone number |
java.lang.String |
getZoneChar()
returns the TrackPoint zone char (as a String) |
void |
setAltitude(int altitude)
sets the TrackPoint altitude |
void |
setDate(java.util.Calendar date)
sets the TrackPoint Date |
void |
setEasting(int easting)
sets the TrackPoint easting |
void |
setNorthing(int northing)
sets the TrackPoint northing |
void |
setTimeToGmt()
Coverts the date/time for this TrackPoint to UTC/GMT time |
void |
setZoneNum(int zoneNum)
sets the TrackPoint zone number |
void |
setZoneNum(java.lang.String zoneChar)
sets the TrackPoint zone char (as a String)acter |
java.lang.String |
toString()
override toString() |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected TrackPoint(java.lang.String type, int zoneNum, int easting, int northing, int altitude, TrackLog parentTrackLog)
type
- the type "T" or "N"zoneNum
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northingaltitude
- the altitudeparentTrackLog
- the TrackLog containing thisgetDate()
,
GpsPointRecord
protected TrackPoint(java.lang.String type, int zoneNum, java.lang.String zoneChar, int easting, int northing, int altitude, TrackLog parentTrackLog)
type
- the type "T" or "N"zoneNum
- the UTM zonezoneChar
- the UTM grid zone designation character (GZD)easting
- the UTM eastingnorthing
- the UTM northingaltitude
- the altitudeparentTrackLog
- the TrackLog containing thisgetDate()
protected TrackPoint(java.lang.String type, int zoneNum, int easting, int northing, java.util.Calendar date, int altitude, TrackLog parentTrackLog)
type
- the type "T" or "N"zoneNum
- the UTM zoneeasting
- the UTM eastingnorthing
- the UTM northingdate
- a Calendar object representing the date/timealtitude
- the altitudeparentTrackLog
- the TrackLog containing thissetTimeToGmt()
protected TrackPoint(java.lang.String type, int zoneNum, java.lang.String zoneChar, int easting, int northing, java.util.Calendar date, int altitude, TrackLog parentTrackLog)
type
- the type "T" or "N"zoneNum
- the UTM zonezoneChar
- the UTM grid zone designation character (GZD)easting
- the UTM eastingnorthing
- the UTM northingdate
- a Calendar object representing the date/timealtitude
- the altitudeparentTrackLog
- the TrackLog containing thissetTimeToGmt()
protected TrackPoint(java.lang.String type, int zoneNum, int easting, int northing, int month, int day, int year, int hour, int minute, int second, int altitude, int timeZoneOffset, TrackLog parentTrackLog)
type
- the type "T" or "N"zoneNum
- the UTM zoneeasting
- the UTM easingnorthing
- the UTM northingmonth
- the monthday
- the dayyear
- the yearhour
- the hourminute
- the minutesecond
- the secondaltitude
- the altitudetimeZoneOffset
- an offset from GMTparentTrackLog
- the TrackLog containing thisZoneNum,Easting,Northing,Month#,Day#,Year,Hour,Min,Sec,Altitude
protected TrackPoint(java.lang.String type, int zoneNum, java.lang.String zoneChar, int easting, int northing, int month, int day, int year, int hour, int minute, int second, int altitude, int timeZoneOffset, TrackLog parentTrackLog)
type
- the type "T" or "N"zoneNum
- the UTM zonezoneChar
- the UTM grid zone designationeasting
- the UTM easingnorthing
- the UTM northingmonth
- the monthday
- the dayyear
- the yearhour
- the hourminute
- the minutesecond
- the secondaltitude
- the altitudetimeZoneOffset
- an offset from GMTparentTrackLog
- the TrackLog containing thisZoneNum,ZoneChar,Easting,Northing,Month#,Day#,Year,Hour,Min,Sec,Altitude
Method Detail |
---|
public java.lang.String getType()
getType
in class GpsPointRecord
public java.lang.String getDatum()
getDatum
in class GpsPointRecord
public int getZone()
getZone
in class GpsPointRecord
public java.lang.String getZoneChar()
public int getEasting()
getEasting
in class GpsPointRecord
public int getNorthing()
getNorthing
in class GpsPointRecord
public java.util.Calendar getDate()
Date
public int getAltitude()
public UtmCoordinatePairElev getUtmCoordinatePairElev()
public void setZoneNum(int zoneNum)
zoneNum
- the UTM zonepublic void setZoneNum(java.lang.String zoneChar)
zoneChar
- the UTM grid zone designationpublic void setEasting(int easting)
easting
- the UTM eastingpublic void setNorthing(int northing)
northing
- the UTM northingpublic void setDate(java.util.Calendar date)
date
- a Calendar representing the date/timeDate
public void setAltitude(int altitude)
altitude
- the altitudepublic void setTimeToGmt()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |