|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.mbari.siam.core.DeviceService
org.mbari.siam.core.BaseInstrumentService
org.mbari.siam.core.PolledInstrumentService
org.mbari.siam.devices.seabird.base.Seabird
org.mbari.siam.devices.seabird.sbe52mp.SBE52MP
public class SBE52MP
SBE52MP implements a PolledInstrumentService for a Seabird SBE 52-MP Moored Profiler CTD and Optional Dissolved Oxygen Sensor.
| Nested Class Summary | |
|---|---|
class |
SBE52MP.DevicePacketParser
|
protected class |
SBE52MP.SBE52Attributes
|
| Nested classes/interfaces inherited from class org.mbari.siam.devices.seabird.base.Seabird |
|---|
Seabird.Attributes |
| Field Summary | |
|---|---|
protected boolean |
_continuousPumping
|
protected byte[] |
_getPrompt
|
protected byte[] |
_haltSample
|
protected byte[] |
_haltSampleEcho
|
protected byte[] |
_requestSample
|
protected byte[] |
_requestSampleEcho
|
protected byte[] |
_requestSampleNotPumped
|
protected byte[] |
_requestSamplePumped
Command to sample depends on whether sample is logged to instrument FLASH (see initializeInstrument()) |
protected byte[] |
_startNow
|
protected byte[] |
_startNowEcho
|
protected java.lang.String |
_startPump
|
protected java.lang.String |
_stopPump
|
| Fields inherited from class org.mbari.siam.devices.seabird.base.Seabird |
|---|
_attributes, _getStatusEcho, _getStatusInfo, _maxCalBytes, _maxStatusBytes, _quitSession, _quitSessionEcho, _safeMode, _sendLast, _sendLastEcho, _setSampleInterval, MAX_AUTO_SAMPLE_INTERVAL_SEC, MIN_AUTO_SAMPLE_INTERVAL_SEC |
| Fields inherited from class org.mbari.siam.core.BaseInstrumentService |
|---|
_defaultSamplerTask, _defaultSampleScheduleName, _errorCache, _instrumentAttributes, _lastPacket, _lastSensorDataPacket, _maxSampleBytes, _messagePacket, _nPowerRequests, _nWakeRequests, _packetLog, _recordType, _running, _samplerWakeupTime, _scheduleKey, _schedules, _sensorDataPacket, _turbinator, MAX_BASE_RECORDTYPE, RECORDTYPE_DEFAULT, RECORDTYPE_METADATA, RECORDTYPE_UNDEFINED |
| Fields inherited from class org.mbari.siam.core.DeviceService |
|---|
_fromDevice, _instrumentPort, _nodeProperties, _parentNode, _regEntry, _sandBox, _serviceCachePath, _serviceName, _servicePropertiesPath, _serviceXMLPath, _toDevice, CACHED_PROPERTIES_FILENAME, PROPERTIES_FILENAME, XML_FILENAME |
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Fields inherited from interface org.mbari.siam.distributed.Device |
|---|
ERROR, INITIAL, INSTRUMENT_STATE, MDATA_ALL, OK, SAFE, SAMPLING, SERVICE_ATTRIBUTES, SERVICE_CACHE, SERVICE_PROPERTIES, SERVICE_XML, SHUTDOWN, SLEEPING, SUSPEND, UNKNOWN |
| Constructor Summary | |
|---|---|
SBE52MP()
Constructor. |
|
| Method Summary | |
|---|---|
int |
addSchedule(java.lang.String name,
java.lang.String schedule,
boolean overwrite)
We override addschedule so we know when to reinitialize the device for sample mode. |
protected byte[] |
getCalibrationCmd()
Return command to get calibrations |
DevicePacketParser |
getDevicePacketParser()
Get instruments' DevicePacketParser, which returns JDDAC records. |
protected byte[] |
getFormatForSummaryCmd()
This is not used in this subclass, but must be defined since it's an abstract method in Seabird |
protected byte[] |
getInstrumentStateMetadata()
Get device's notion of its state: a Seabird status packet. |
PacketParser |
getParser()
Return CTD packet parser. |
protected void |
getPrompt()
|
protected void |
initializeInstrument()
Initialize the SBE 52MP. |
java.lang.Object |
parseDataPacket(SensorDataPacket pkt)
Parse the CTD data into a CTDData struct |
protected void |
postSample()
postSample processing. |
protected void |
requestSample()
Request a sample. |
void |
setClock()
SBE 52MP doesn't have a clock. |
protected void |
setPumpMode(boolean forcePumpChange)
Set mode of using the pump to either continuous pumping or pumped while sampling, depending on the sample rate. |
protected void |
stopAutonomousLogging()
Stop instrument sampling. |
| Methods inherited from class org.mbari.siam.devices.seabird.base.Seabird |
|---|
createDefaultSampleSchedule, getPrompt, getSerialPortParameters, initCommunicationPowerPolicy, initCurrentLimit, initInstrumentPowerPolicy, initInstrumentStartDelay, initMaxSampleBytes, initPromptString, initSampleTerminator, quitSession, sendCommand, sendCommandConfirm, setAutonomousSampleInterval, setDataFormat, startAutonomousLogging, test |
| Methods inherited from class org.mbari.siam.core.PolledInstrumentService |
|---|
acquire, doScheduledTask, setAttributes |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mbari.siam.distributed.Instrument |
|---|
acquireSample, addDefaultPacketFilters, annotate, cacheProperties, clearDefaultPacketFilters, clearPropertiesCache, disableSummary, enableSummary, getDefaultPacketFilters, getLastSample, getPackets, getPackets, getPortDiagnostics, getPortDiagnosticsSummary, getProperties, getProperty, getSampleSchedule, getSchedules, resetPortDiagnostics, setClock, setProperty, summaryEnabled |
| Methods inherited from interface org.mbari.siam.distributed.Device |
|---|
getChildren, getCommPortName, getFrameworkVersion, getId, getLocation, getMetadata, getName, getParent, getSamplingCount, getSamplingErrorCount, getSamplingRetryCount, getStatus, host, powerOff, powerOn, prepareToRun, resume, shutdown, suspend, test |
| Methods inherited from interface org.mbari.siam.distributed.DeviceServiceIF |
|---|
getName |
| Methods inherited from interface org.mbari.siam.core.ScheduleOwner |
|---|
getAllSchedules, getScheduleKey, removeAllSchedules, removeSchedule, resumeSchedule, sleepingUntil, suspendSchedule, syncSchedule |
| Field Detail |
|---|
protected final byte[] _requestSamplePumped
protected final byte[] _requestSampleNotPumped
protected byte[] _getPrompt
protected byte[] _requestSample
protected byte[] _requestSampleEcho
protected byte[] _haltSample
protected byte[] _haltSampleEcho
protected byte[] _startNow
protected byte[] _startNowEcho
protected final java.lang.String _startPump
protected final java.lang.String _stopPump
protected boolean _continuousPumping
| Constructor Detail |
|---|
public SBE52MP()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
protected byte[] getFormatForSummaryCmd()
getFormatForSummaryCmd in class Seabirdprotected byte[] getCalibrationCmd()
getCalibrationCmd in class Seabirdpublic PacketParser getParser()
getParser in interface InstrumentgetParser in class Seabirdpublic void setClock()
setClock in interface InstrumentsetClock in class Seabird
protected void initializeInstrument()
throws java.lang.Exception
initializeInstrument in class Seabirdjava.lang.Exceptionprotected void setPumpMode(boolean forcePumpChange)
forcePumpChange - - true to always send the PUMPON or PUMPOFF command,
even if the mode hasn't changed.protected void requestSample()
requestSample in class Seabirdprotected void postSample()
postSample in class Seabird
protected void stopAutonomousLogging()
throws java.io.IOException,
java.lang.Exception,
TimeoutException
stopAutonomousLogging in class Seabirdjava.io.IOException
java.lang.Exception
TimeoutException
protected void getPrompt()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
getPrompt in class SeabirdTimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exceptionprotected byte[] getInstrumentStateMetadata()
getInstrumentStateMetadata in class Seabird
public int addSchedule(java.lang.String name,
java.lang.String schedule,
boolean overwrite)
addSchedule in interface ScheduleOwneraddSchedule in class BaseInstrumentServicename - Schedule nameschedule - Representation of scheduleoverwrite - If true, replace existing schedule
public java.lang.Object parseDataPacket(SensorDataPacket pkt)
throws InvalidDataException
InvalidDataException
public DevicePacketParser getDevicePacketParser()
throws NotSupportedException
BaseInstrumentService
getDevicePacketParser in class SeabirdNotSupportedException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||