public class ReportedState extends IMCMessage
Modifier and Type | Class and Description |
---|---|
static class |
ReportedState.S_TYPE |
Modifier and Type | Field and Description |
---|---|
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
ReportedState() |
ReportedState(double lat,
double lon,
double depth,
double roll,
double pitch,
double yaw,
double rcp_time,
java.lang.String sid,
ReportedState.S_TYPE s_type) |
ReportedState(IMCDefinition defs) |
ReportedState(IMCMessage msg) |
Modifier and Type | Method and Description |
---|---|
static ReportedState |
clone(IMCMessage msg) |
static ReportedState |
create(java.lang.Object... values) |
double |
getDepth() |
double |
getLat() |
double |
getLon() |
double |
getPitch() |
double |
getRcpTime() |
double |
getRoll() |
java.lang.String |
getSid() |
ReportedState.S_TYPE |
getSType()
How the position was received/calculated
|
double |
getYaw() |
ReportedState |
setDepth(double depth) |
ReportedState |
setLat(double lat) |
ReportedState |
setLon(double lon) |
ReportedState |
setPitch(double pitch) |
ReportedState |
setRcpTime(double rcp_time) |
ReportedState |
setRoll(double roll) |
ReportedState |
setSid(java.lang.String sid) |
ReportedState |
setSType(ReportedState.S_TYPE s_type) |
ReportedState |
setSType(short s_type) |
ReportedState |
setSType(java.lang.String s_type) |
ReportedState |
setYaw(double yaw) |
asJSON, asXml, cloneMessage, cloneMessage, compareTo, copyFrom, 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, getValues, hasFlag, hexdump, isNull, isPeriodic, main, makeImmutable, parseXml, payloadMD5, serialize, serialize, setBitMask, setDst, setDstEnt, setHeader, setMessageList, setSrc, setSrcEnt, setTimestamp, setTimestampMillis, setType, setValue, setValues, toString, validate
public static final int ID_STATIC
public ReportedState()
public ReportedState(IMCMessage msg)
public ReportedState(IMCDefinition defs)
public ReportedState(double lat, double lon, double depth, double roll, double pitch, double yaw, double rcp_time, java.lang.String sid, ReportedState.S_TYPE s_type)
public static ReportedState create(java.lang.Object... values)
public static ReportedState clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public double getLat()
public double getLon()
public double getDepth()
public double getRoll()
public double getPitch()
public double getYaw()
public double getRcpTime()
public java.lang.String getSid()
public ReportedState.S_TYPE getSType()
public ReportedState setLat(double lat)
lat
- Latitude (rad)public ReportedState setLon(double lon)
lon
- Longitude (rad)public ReportedState setDepth(double depth)
depth
- Depth (m)public ReportedState setRoll(double roll)
roll
- Roll (rad)public ReportedState setPitch(double pitch)
pitch
- Pitch (rad)public ReportedState setYaw(double yaw)
yaw
- Yaw (rad)public ReportedState setRcpTime(double rcp_time)
rcp_time
- Reception Time (s)public ReportedState setSid(java.lang.String sid)
sid
- System Identifierpublic ReportedState setSType(ReportedState.S_TYPE s_type)
s_type
- Source Type (enumerated)public ReportedState setSType(java.lang.String s_type)
s_type
- Source Type (as a String)public ReportedState setSType(short s_type)
s_type
- Source Type (integer value)