|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.mbari.siam.distributed.PacketParser
org.mbari.siam.devices.sunburst.SAMIPacketParser
public class SAMIPacketParser
Parses SIAM data packets for Sunburst SAMI-CO2. Calculates pCO2 from the packet data plus the calibration values that are passed in to the constructor. Typically, those calibrations are included as attributes to the driver.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.mbari.siam.distributed.PacketParser |
|---|
PacketParser.Field, PacketParser.Record |
| Field Summary | |
|---|---|
protected double |
_cal_a
Calibration values passed in to the constructor, used in calculating pCO2 |
protected double |
_cal_b
Calibration values passed in to the constructor, used in calculating pCO2 |
protected double |
_cal_c
Calibration values passed in to the constructor, used in calculating pCO2 |
protected double |
_cal_T
Calibration values passed in to the constructor, used in calculating pCO2 |
static java.lang.String |
COUNTS
|
| Fields inherited from class org.mbari.siam.distributed.PacketParser |
|---|
_registryName |
| Constructor Summary | |
|---|---|
SAMIPacketParser(java.lang.String registryName,
double cal_T,
double cal_a,
double cal_b,
double cal_c)
|
|
| Method Summary | |
|---|---|
protected double |
log10(double x)
log10 function here for Java 1.3 compatibility |
static void |
main(java.lang.String[] args)
main() is used to invoke this class as a standalone packet parser |
PacketParser.Field[] |
parseFields(DevicePacket packet)
Return fields parsed from DevicePacket. |
| Methods inherited from class org.mbari.siam.distributed.PacketParser |
|---|
getField |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COUNTS
protected double _cal_T
protected double _cal_a
protected double _cal_b
protected double _cal_c
| Constructor Detail |
|---|
public SAMIPacketParser(java.lang.String registryName,
double cal_T,
double cal_a,
double cal_b,
double cal_c)
| Method Detail |
|---|
public PacketParser.Field[] parseFields(DevicePacket packet)
throws NotSupportedException,
java.text.ParseException
parseFields in class PacketParserNotSupportedException
java.text.ParseExceptionprotected double log10(double x)
public static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||