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(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.
|
void |
setBeamConfig(java.util.Collection<BeamConfig> beam_config) |
void |
setBitsPerPoint(short bits_per_point) |
void |
setData(byte[] data) |
void |
setFrequency(long frequency) |
void |
setMaxRange(int max_range) |
void |
setMinRange(int min_range) |
void |
setScaleFactor(double scale_factor) |
void |
setType(short type) |
void |
setType(SonarData.TYPE type) |
void |
setType(java.lang.String type) |
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 SonarData()
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 void setType(SonarData.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 setFrequency(long frequency)
frequency
- Frequency (hz)public void setMinRange(int min_range)
min_range
- Minimum Range (m)public void setMaxRange(int max_range)
max_range
- Maximum Range (m)public void setBitsPerPoint(short bits_per_point)
bits_per_point
- Bits Per Data Point (bit)public void setScaleFactor(double scale_factor)
scale_factor
- Scaling Factorpublic void setBeamConfig(java.util.Collection<BeamConfig> beam_config)
beam_config
- Beam Configurationpublic void setData(byte[] data)
data
- Data