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()
Type of sonar.
|
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(short type) |
SonarData |
setType(SonarData.TYPE type) |
SonarData |
setType(java.lang.String type) |
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 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 long getFrequency()
public int getMinRange()
public int getMaxRange()
public short getBitsPerPoint()
public double getScaleFactor()
public java.util.Vector<BeamConfig> getBeamConfig()
public byte[] getData()
public SonarData setType(SonarData.TYPE type)
type
- Type (enumerated)public SonarData setType(java.lang.String type)
type
- Type (as a String)public SonarData setType(short type)
type
- Type (integer value)public SonarData setFrequency(long frequency)
frequency
- Frequency (hz)public SonarData setMinRange(int min_range)
min_range
- Minimum Range (m)public SonarData setMaxRange(int max_range)
max_range
- Maximum Range (m)public SonarData setBitsPerPoint(short bits_per_point)
bits_per_point
- Bits Per Data Point (bit)public SonarData setScaleFactor(double scale_factor)
scale_factor
- Scaling Factorpublic SonarData setBeamConfig(java.util.Collection<BeamConfig> beam_config)
beam_config
- Beam Configurationpublic SonarData setData(byte[] data)
data
- Data