public class Target extends IMCMessage
Modifier and Type | Class and Description |
---|---|
static class |
Target.Z_UNITS |
Modifier and Type | Field and Description |
---|---|
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
Target() |
Target(IMCDefinition defs) |
Target(IMCMessage msg) |
Target(java.lang.String label,
double lat,
double lon,
float z,
Target.Z_UNITS z_units,
float cog,
float sog) |
Modifier and Type | Method and Description |
---|---|
static Target |
clone(IMCMessage msg) |
static Target |
create(java.lang.Object... values) |
double |
getCog() |
java.lang.String |
getLabel() |
double |
getLat() |
double |
getLon() |
double |
getSog() |
double |
getZ() |
Target.Z_UNITS |
getZUnits() |
java.lang.String |
getZUnitsStr() |
short |
getZUnitsVal() |
Target |
setCog(double cog) |
Target |
setLabel(java.lang.String label) |
Target |
setLat(double lat) |
Target |
setLon(double lon) |
Target |
setSog(double sog) |
Target |
setZ(double z) |
Target |
setZUnits(Target.Z_UNITS z_units) |
Target |
setZUnitsStr(java.lang.String z_units) |
Target |
setZUnitsVal(short z_units) |
asJSON, asJSON, asMap, asXml, asXmlStripped, cloneMessage, cloneMessage, compareTo, copyFrom, decodeTupleList, dump, encodeTupleList, get, getAbbrev, getAgeInSeconds, getAsNumber, getAsString, getBitmask, getDate, getDouble, getDst, getDstEnt, getEntityName, getFieldNames, getFloat, getHeader, getHeaderValue, getInteger, getLong, getLongFieldName, getLongName, getMessage, getMessage, getMessageInfo, getMessageList, getMessageList, getMessageType, getMgid, getPayloadSize, getProtocolFactory, getRawData, getSize, getSourceName, getSrc, getSrcEnt, getString, getString, getTimestamp, getTimestampMillis, getTupleList, getTypeOf, getUnitsOf, getValue, getValues, hasFlag, hexdump, isNull, isPeriodic, main, makeImmutable, parseJson, parseXml, payloadMD5, serialize, serialize, serialize, serializePayload, setBitMask, setDst, setDstEnt, setHeader, setMessageInfo, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int ID_STATIC
public Target()
public Target(IMCMessage msg)
public Target(IMCDefinition defs)
public Target(java.lang.String label, double lat, double lon, float z, Target.Z_UNITS z_units, float cog, float sog)
public static Target create(java.lang.Object... values)
public static Target clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public java.lang.String getLabel()
public Target setLabel(java.lang.String label)
label
- Labelpublic double getLat()
public Target setLat(double lat)
lat
- Latitude WGS-84 (rad)public double getLon()
public Target setLon(double lon)
lon
- Longitude WGS-84 (rad)public double getZ()
public Target setZ(double z)
z
- Z Reference (m)public Target.Z_UNITS getZUnits()
public java.lang.String getZUnitsStr()
public short getZUnitsVal()
public Target setZUnits(Target.Z_UNITS z_units)
z_units
- Z Units (enumerated)public Target setZUnitsStr(java.lang.String z_units)
z_units
- Z Units (as a String)public Target setZUnitsVal(short z_units)
z_units
- Z Units (integer value)public double getCog()
public Target setCog(double cog)
cog
- Course Over Ground (rad)public double getSog()
public Target setSog(double sog)
sog
- Speed Over Ground (m/s)