public class SonarData extends IMCMessage
Modifier and Type | Class and Description |
---|---|
static class |
SonarData.TYPE |
Modifier and Type | Field and Description |
---|---|
static int |
ID_STATIC |
DEFAULT_ENTITY_ID, DEFAULT_SYSTEM_ID
Constructor and Description |
---|
SonarData() |
SonarData(IMCDefinition defs) |
SonarData(IMCMessage msg) |
SonarData(SonarData.TYPE type,
long frequency,
int min_range,
int max_range,
short bits_per_point,
float scale_factor,
java.util.Collection<BeamConfig> beam_config,
byte[] data) |
Modifier and Type | Method and Description |
---|---|
static SonarData |
clone(IMCMessage msg) |
static SonarData |
create(java.lang.Object... values) |
java.util.Vector<BeamConfig> |
getBeamConfig() |
short |
getBitsPerPoint() |
byte[] |
getData() |
long |
getFrequency() |
int |
getMaxRange() |
int |
getMinRange() |
double |
getScaleFactor() |
SonarData.TYPE |
getType() |
java.lang.String |
getTypeStr() |
short |
getTypeVal() |
SonarData |
setBeamConfig(java.util.Collection<BeamConfig> beam_config) |
SonarData |
setBitsPerPoint(short bits_per_point) |
SonarData |
setData(byte[] data) |
SonarData |
setFrequency(long frequency) |
SonarData |
setMaxRange(int max_range) |
SonarData |
setMinRange(int min_range) |
SonarData |
setScaleFactor(double scale_factor) |
SonarData |
setType(SonarData.TYPE type) |
SonarData |
setTypeStr(java.lang.String type) |
SonarData |
setTypeVal(short type) |
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 SonarData()
public SonarData(IMCMessage msg)
public SonarData(IMCDefinition defs)
public SonarData(SonarData.TYPE type, long frequency, int min_range, int max_range, short bits_per_point, float scale_factor, java.util.Collection<BeamConfig> beam_config, byte[] data)
public static SonarData create(java.lang.Object... values)
public static SonarData clone(IMCMessage msg) throws java.lang.Exception
java.lang.Exception
public SonarData.TYPE getType()
public java.lang.String getTypeStr()
public short getTypeVal()
public SonarData setType(SonarData.TYPE type)
type
- Type (enumerated)public SonarData setTypeStr(java.lang.String type)
type
- Type (as a String)public SonarData setTypeVal(short type)
type
- Type (integer value)public long getFrequency()
public SonarData setFrequency(long frequency)
frequency
- Frequency (hz)public int getMinRange()
public SonarData setMinRange(int min_range)
min_range
- Minimum Range (m)public int getMaxRange()
public SonarData setMaxRange(int max_range)
max_range
- Maximum Range (m)public short getBitsPerPoint()
public SonarData setBitsPerPoint(short bits_per_point)
bits_per_point
- Bits Per Data Point (bit)public double getScaleFactor()
public SonarData setScaleFactor(double scale_factor)
scale_factor
- Scaling Factorpublic java.util.Vector<BeamConfig> getBeamConfig()
public SonarData setBeamConfig(java.util.Collection<BeamConfig> beam_config)
beam_config
- Beam Configurationpublic byte[] getData()
public SonarData setData(byte[] data)
data
- Data