|
|||||||||
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.WayPoint
public class WayPoint
A WayPoint is a named location. Waypoints are independent entities - but may be organized into routes. See the Route class. There is a 1:M relationship between between routes and waypoints (but a waypoint is not required to be part of a route.)
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. Also, note that the name field will often be further truncated by a GPS device if you are uploading derived points to the GPS. Although this class allows up to 255 characters, most GPS devices will allow far fewer.
Route
,
RoutePoint
Field Summary |
---|
Fields inherited from class com.c5corp.c5gps.GpsType |
---|
hdatum |
Constructor Summary | |
---|---|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
int easting,
int northing)
Construct a WayPoint with a name (which will be truncated to 255 characters, zone number, UTM easting, and UTM northing. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
int easting,
int northing,
java.util.Calendar date)
Construct a WayPoint with a name (which will be truncated to 255 characters, zone number, UTM easting, and UTM northing. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
int easting,
int northing,
int altitude)
Construct a WayPoint with a name (which will be truncated to 255 characters, zone number, UTM easting, UTM northing, and altitude. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
int easting,
int northing,
int altitude,
java.util.Calendar date)
Construct a WayPoint with a name (which will be truncated to 255 characters, zone number, UTM easting, UTM northing, and altitude. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
int easting,
int northing,
int month,
int day,
int year,
int hour,
int minute,
int second,
int timeZoneOffset)
Construct a WayPoint with a name (which will be truncated to 255 characters), zone number, zone Char, UTM easting, UTM northing, altitude, month, day, year, hour, minute, second, and a time zone offset. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
int easting,
int northing,
int altitude,
int month,
int day,
int year,
int hour,
int minute,
int second,
int timeZoneOffset)
Construct a WayPoint with a name (which will be truncated to 255 characters), zone number, zone Char, UTM easting, UTM northing, altitude, month, day, year, hour, minute, second, and a time zone offset. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing)
Construct a WayPoint with a name (which will be truncated to 255 characters, zone number, zone Char, UTM easting, and UTM northing. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
java.util.Calendar date)
Construct a WayPoint with a name (which will be truncated to 255 characters, zone number, zone Char, UTM easting, and UTM northing. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
int altitude)
Construct a WayPoint with a name (which will be truncated to 255 characters), zone number, zone char, UTM easting, UTM northing, and altitude. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
int altitude,
java.util.Calendar date)
Construct a WayPoint with a name (which will be truncated to 255 characters), zone number, zone Char, UTM easting, UTM northing, altitude, and java.util.Calendar object. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
int month,
int day,
int year,
int hour,
int minute,
int second,
int timeZoneOffset)
Construct a WayPoint with a name (which will be truncated to 255 characters), zone number, zone Char, UTM easting, UTM northing, altitude, month, day, year, hour, minute, second, and a time zone offset. |
|
WayPoint(java.lang.String datum,
java.lang.String name,
int zoneNum,
java.lang.String zoneChar,
int easting,
int northing,
int altitude,
int month,
int day,
int year,
int hour,
int minute,
int second,
int timeZoneOffset)
Construct a WayPoint with a name (which will be truncated to 255 characters), zone number, zone Char, UTM easting, UTM northing, altitude, month, day, year, hour, minute, second, and a time zone offset. |
Method Summary | |
---|---|
boolean |
equals(WayPoint wayPoint)
Compares the planametric values of another WayPoint to this to see if they are equivalent. |
int |
getAltitude()
returns the WayPoint altitude. |
java.util.Calendar |
getDate()
returns the WayPoint Date |
java.lang.String |
getDatum()
accessor for the datum string |
int |
getEasting()
returns the WayPoint eastin |
int |
getNorthing()
returns the WayPoint northing |
java.lang.String |
getType()
The type of any gps record is one of the following: W, for a wapoint, N or T for trackpoint (N being a new trackpoint, or the first trackpoint recorded after a device has lost satellite tracking), and R for a RoutePoint. |
UtmCoordinatePairElev |
getUtmCoordinatePairElev()
returns a artificial UtmCoordinatePairElev object representation of the point |
java.lang.String |
getVersion()
version (such as "Version 2:CSV"). |
java.lang.String |
getWayPointName()
gets the name of this WayPoint |
int |
getZone()
returns the WayPoint zone number |
java.lang.String |
getZoneChar()
returns the WayPoint zone char, which may be an empty string if there was no grid zone designation character (GZD) data at the time of construction. |
int |
getZoneOffset()
returns the zone offset from GMT for this waypoint |
void |
setAltitude(int altitude)
sets the WayPoint altitude |
void |
setDate(java.util.Calendar date)
sets the WayPoint Date |
void |
setDatum(java.lang.String datum)
mutator for the datum string |
void |
setEasting(int easting)
sets the WayPoint easting |
void |
setNorthing(int northing)
sets the WayPoint northing |
void |
setTimeToGmt()
Coverts the date/time for this WayPoint to UTC/GMT time |
void |
setVersion(java.lang.String version)
Sets the Version String, which by default is "Version 2:CSV". |
void |
setWaypointName(java.lang.String name)
mutator for track name |
void |
setZoneNum(int zoneNum)
sets the WayPoint zone number |
void |
setZoneNum(java.lang.String zoneChar)
sets the WayPoint Grid Zone Designation (GZD) |
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 |
---|
public WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, java.lang.String zoneChar, int easting, int northing, int altitude)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numberzoneChar
- UTM Grid Zone Designation (GZD)easting
- UTM eastingnorthing
- UTM northingaltitude
- Altitude of the WayPointpublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, java.lang.String zoneChar, int easting, int northing)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numberzoneChar
- UTM grid zone designation character (GZD)easting
- UTM eastingnorthing
- UTM northingpublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, int easting, int northing, int altitude)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numbereasting
- UTM eastingnorthing
- UTM northingaltitude
- Altitude of the WayPointpublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, int easting, int northing)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numbereasting
- UTM eastingnorthing
- UTM northingpublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, java.lang.String zoneChar, int easting, int northing, int altitude, java.util.Calendar date)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numberzoneChar
- UTM grid zone designation character (GZD)easting
- UTM eastingnorthing
- UTM northingaltitude
- Altitude of the WayPointdate
- a java.util.Calendar representing date and timepublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, java.lang.String zoneChar, int easting, int northing, java.util.Calendar date)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numberzoneChar
- UTM grid zone designation character (GZD)easting
- UTM eastingnorthing
- UTM northingdate
- Calendar representing the date/timesetTimeToGmt()
public WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, int easting, int northing, int altitude, java.util.Calendar date)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numbereasting
- UTM eastingnorthing
- UTM northingaltitude
- Altitude of the WayPointdate
- a java.util.Calendar representing date and timesetTimeToGmt()
public WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, int easting, int northing, java.util.Calendar date)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numbereasting
- UTM eastingnorthing
- UTM northingdate
- a java.util.Calendar representing date and timesetTimeToGmt()
public WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, java.lang.String zoneChar, int easting, int northing, int altitude, int month, int day, int year, int hour, int minute, int second, int timeZoneOffset)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numberzoneChar
- UTM grid zone designation character (GZD)easting
- UTM eastingnorthing
- UTM northingaltitude
- Altitude of the WayPointmonth
- - monthday
- - dayyear
- - yearhour
- - hourminute
- - minutesecond
- - secondtimeZoneOffset
- - time zone offsetpublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, int easting, int northing, int altitude, int month, int day, int year, int hour, int minute, int second, int timeZoneOffset)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numbereasting
- UTM eastingnorthing
- UTM northingaltitude
- Altitude of the WayPointmonth
- - monthday
- - dayyear
- - yearhour
- - hourminute
- - minutesecond
- - secondtimeZoneOffset
- - time zone offsetpublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, int easting, int northing, int month, int day, int year, int hour, int minute, int second, int timeZoneOffset)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numbereasting
- UTM eastingnorthing
- UTM northingmonth
- - monthday
- - dayyear
- - yearhour
- - hourminute
- - minutesecond
- - secondtimeZoneOffset
- - time zone offsetpublic WayPoint(java.lang.String datum, java.lang.String name, int zoneNum, java.lang.String zoneChar, int easting, int northing, int month, int day, int year, int hour, int minute, int second, int timeZoneOffset)
datum
- - a string representing the datum - an empty string will default this to the configured database installname
- Waypoint name, up to 255 charszoneNum
- UTM zone numberzoneChar
- UTM grid zone designation character (GZD)easting
- UTM eastingnorthing
- UTM northingmonth
- - monthday
- - dayyear
- - yearhour
- - hourminute
- - minutesecond
- - secondtimeZoneOffset
- - time zone offsetMethod Detail |
---|
public java.lang.String getVersion()
GpsDataFilter
public java.lang.String getType()
getType
in class GpsPointRecord
public java.lang.String getDatum()
getDatum
in class GpsPointRecord
GpsType.hdatum
public java.lang.String getWayPointName()
public int getZone()
returns the WayPoint zone number
getZone
in class GpsPointRecord
public java.lang.String getZoneChar()
returns the WayPoint zone char, which may be an empty string if there was no grid zone designation character (GZD) data at the time of construction.
public int getEasting()
returns the WayPoint eastin
getEasting
in class GpsPointRecord
public int getNorthing()
returns the WayPoint northing
getNorthing
in class GpsPointRecord
public java.util.Calendar getDate()
Date
public int getAltitude()
public UtmCoordinatePairElev getUtmCoordinatePairElev()
public void setVersion(java.lang.String version)
version
- the g7towin versionpublic void setWaypointName(java.lang.String name)
name
- the WayPoint Namepublic void setDatum(java.lang.String datum)
datum
- the datum valuepublic 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 int getZoneOffset()
public boolean equals(WayPoint wayPoint)
wayPoint
- the WayPoint to compare
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 |