public class GpsFix extends IMCMessage
Modifier and Type | Class and Description |
---|---|
static class |
GpsFix.TYPE |
Modifier and Type | Field and Description |
---|---|
static int |
GFV_VALID_COG |
static int |
GFV_VALID_DATE |
static int |
GFV_VALID_HACC |
static int |
GFV_VALID_HDOP |
static int |
GFV_VALID_POS |
static int |
GFV_VALID_SOG |
static int |
GFV_VALID_TIME |
static int |
GFV_VALID_VACC |
static int |
GFV_VALID_VDOP |
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
GpsFix() |
GpsFix(IMCDefinition defs) |
GpsFix(int validity,
GpsFix.TYPE type,
int utc_year,
short utc_month,
short utc_day,
float utc_time,
double lat,
double lon,
float height,
short satellites,
float cog,
float sog,
float hdop,
float vdop,
float hacc,
float vacc) |
Modifier and Type | Method and Description |
---|---|
static GpsFix |
clone(IMCMessage msg) |
static GpsFix |
create(java.lang.Object... values) |
double |
getCog() |
double |
getHacc() |
double |
getHdop() |
double |
getHeight() |
double |
getLat() |
double |
getLon() |
short |
getSatellites() |
double |
getSog() |
GpsFix.TYPE |
getType()
Type of fix.
|
short |
getUtcDay() |
short |
getUtcMonth() |
double |
getUtcTime() |
int |
getUtcYear() |
double |
getVacc() |
int |
getValidity()
Validity of fields.
|
double |
getVdop() |
void |
setCog(double cog) |
void |
setHacc(double hacc) |
void |
setHdop(double hdop) |
void |
setHeight(double height) |
void |
setLat(double lat) |
void |
setLon(double lon) |
void |
setSatellites(short satellites) |
void |
setSog(double sog) |
void |
setType(GpsFix.TYPE type) |
void |
setType(short type) |
void |
setType(java.lang.String type) |
void |
setUtcDay(short utc_day) |
void |
setUtcMonth(short utc_month) |
void |
setUtcTime(double utc_time) |
void |
setUtcYear(int utc_year) |
void |
setVacc(double vacc) |
void |
setValidity(int validity) |
void |
setVdop(double vdop) |
asJSON, asXml, cloneMessage, cloneMessage, compareTo, decodeTupleList, dump, encodeTupleList, get, getAbbrev, getAsNumber, getAsString, getBitmask, getDate, getDouble, getDst, getDstEnt, getFieldNames, getFloat, getHeader, getHeaderValue, getInteger, getLong, getLongFieldName, getLongName, getMessage, getMessage, getMessageList, getMessageList, getMessageType, getMgid, getPayloadSize, getProtocolFactory, getRawData, getSize, getSourceName, getSrc, getSrcEnt, getString, getString, getTimestamp, getTimestampMillis, getTupleList, getTypeOf, getUnitsOf, getValue, hasFlag, hexdump, isNull, isPeriodic, main, makeImmutable, parseXml, payloadMD5, serialize, serialize, setBitMask, setDst, setDstEnt, setHeader, setMessage, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int ID_STATIC
public static final int GFV_VALID_DATE
public static final int GFV_VALID_TIME
public static final int GFV_VALID_POS
public static final int GFV_VALID_COG
public static final int GFV_VALID_SOG
public static final int GFV_VALID_HACC
public static final int GFV_VALID_VACC
public static final int GFV_VALID_HDOP
public static final int GFV_VALID_VDOP
public GpsFix()
public GpsFix(IMCDefinition defs)
public GpsFix(int validity, GpsFix.TYPE type, int utc_year, short utc_month, short utc_day, float utc_time, double lat, double lon, float height, short satellites, float cog, float sog, float hdop, float vdop, float hacc, float vacc)
public static GpsFix create(java.lang.Object... values)
public static GpsFix clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public int getValidity()
public GpsFix.TYPE getType()
public int getUtcYear()
public short getUtcMonth()
public short getUtcDay()
public double getUtcTime()
public double getLat()
public double getLon()
public double getHeight()
public short getSatellites()
public double getCog()
public double getSog()
public double getHdop()
public double getVdop()
public double getHacc()
public double getVacc()
public void setValidity(int validity)
validity
- Validity (bitfield)public void setType(GpsFix.TYPE type)
type
- Type (enumerated)public void setType(java.lang.String type)
type
- Type (as a String)public void setType(short type)
type
- Type (integer value)public void setUtcYear(int utc_year)
utc_year
- UTC Yearpublic void setUtcMonth(short utc_month)
utc_month
- UTC Monthpublic void setUtcDay(short utc_day)
utc_day
- UTC Daypublic void setUtcTime(double utc_time)
utc_time
- UTC Time of Fix (s)public void setLat(double lat)
lat
- Latitude WGS-84 (rad)public void setLon(double lon)
lon
- Longitude WGS-84 (rad)public void setHeight(double height)
height
- Height above WGS-84 ellipsoid (m)public void setSatellites(short satellites)
satellites
- Number of Satellitespublic void setCog(double cog)
cog
- Course Over Ground (rad)public void setSog(double sog)
sog
- Speed Over Ground (m/s)public void setHdop(double hdop)
hdop
- Horizontal Dilution of Precisionpublic void setVdop(double vdop)
vdop
- Vertical Dilution of Precisionpublic void setHacc(double hacc)
hacc
- Horizontal Accuracy Estimate (m)public void setVacc(double vacc)
vacc
- Vertical Accuracy Estimate (m)