|
||||||||
| 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
public abstract class Seabird
| Nested Class Summary | |
|---|---|
protected class |
Seabird.Attributes
|
class |
Seabird.DevicePacketParser
|
| Field Summary | |
|---|---|
protected Seabird.Attributes |
_attributes
|
protected byte[] |
_getPrompt
|
protected byte[] |
_getStatusEcho
|
protected byte[] |
_getStatusInfo
|
protected byte[] |
_haltSample
|
protected byte[] |
_haltSampleEcho
|
protected int |
_maxCalBytes
|
protected int |
_maxStatusBytes
|
protected byte[] |
_quitSession
|
protected byte[] |
_quitSessionEcho
|
protected byte[] |
_requestSample
Command to sample depends on whether sample is logged to instrument FLASH (see initializeInstrument()) |
protected byte[] |
_requestSampleEcho
|
protected boolean |
_safeMode
|
protected byte[] |
_sendLast
|
protected byte[] |
_sendLastEcho
|
protected java.lang.String |
_setSampleInterval
|
protected byte[] |
_startNow
|
protected byte[] |
_startNowEcho
|
protected long |
MAX_AUTO_SAMPLE_INTERVAL_SEC
|
protected long |
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 | |
|---|---|
Seabird()
Constructor. |
|
| Method Summary | |
|---|---|
protected ScheduleSpecifier |
createDefaultSampleSchedule()
Return specifier for default sampling schedule. |
protected abstract byte[] |
getCalibrationCmd()
|
DevicePacketParser |
getDevicePacketParser()
Get instruments' DevicePacketParser, which returns JDDAC records. |
protected abstract byte[] |
getFormatForSummaryCmd()
|
protected byte[] |
getInstrumentStateMetadata()
Get device's notion of its state: a Seabird status packet. |
PacketParser |
getParser()
Return CTD packet parser. |
protected void |
getPrompt()
|
protected boolean |
getPrompt(int retries)
|
SerialPortParameters |
getSerialPortParameters()
Return parameters to use on serial port. |
protected PowerPolicy |
initCommunicationPowerPolicy()
Return initial value of instrument power policy. |
protected int |
initCurrentLimit()
Return initial value of DPA current limit. |
protected void |
initializeInstrument()
Initialize the seabird. |
protected PowerPolicy |
initInstrumentPowerPolicy()
Return initial value of instrument power policy. |
protected int |
initInstrumentStartDelay()
Return initial value of instrument startup time in millisec. |
protected int |
initMaxSampleBytes()
Return initial value for maximum number of bytes in a instrument data sample. |
protected byte[] |
initPromptString()
Return initial value for instrument's "prompt" character. |
protected byte[] |
initSampleTerminator()
Return initial value for instrument's sample terminator |
protected void |
postSample()
override the default behavior If logging autonomously, return the instrument to sleep after sampling. |
protected void |
quitSession()
QuitSession, putting instrument to lowest sampling power state |
protected void |
requestSample()
Request a data sample from instrument. |
void |
sendCommand(java.lang.String cmd)
Method to send a command and wait for the prompt. |
void |
sendCommandConfirm(java.lang.String cmd)
The base Seabird service has no commands that require confirmation. |
protected void |
setAutonomousSampleInterval(long periodSec)
Set sample interval for autonomous logging NOTE: may stop, but does NOT resume logging or quit session |
void |
setClock()
Set Seabird's clock. |
void |
setDataFormat()
Set data output format Note: may stop, but does not resume logging or quit session |
protected void |
startAutonomousLogging()
Start autonomous sampling, per current Sample Mode note: only conditionally allowed: - _safeMode=true - autonomous=true |
protected void |
stopAutonomousLogging()
Stop autonomous instrument sampling |
int |
test()
Self-test routine; not yet implemented. |
| 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 |
| Methods inherited from interface org.mbari.siam.distributed.DeviceServiceIF |
|---|
getName |
| Methods inherited from interface org.mbari.siam.core.ScheduleOwner |
|---|
addSchedule, getAllSchedules, getScheduleKey, removeAllSchedules, removeSchedule, resumeSchedule, sleepingUntil, suspendSchedule, syncSchedule |
| Field Detail |
|---|
protected byte[] _getPrompt
protected byte[] _requestSample
protected byte[] _requestSampleEcho
protected byte[] _sendLast
protected byte[] _sendLastEcho
protected byte[] _quitSession
protected byte[] _quitSessionEcho
protected byte[] _getStatusInfo
protected byte[] _getStatusEcho
protected byte[] _haltSample
protected byte[] _haltSampleEcho
protected byte[] _startNow
protected byte[] _startNowEcho
protected java.lang.String _setSampleInterval
protected int _maxStatusBytes
protected int _maxCalBytes
protected long MIN_AUTO_SAMPLE_INTERVAL_SEC
protected long MAX_AUTO_SAMPLE_INTERVAL_SEC
protected Seabird.Attributes _attributes
protected boolean _safeMode
| Constructor Detail |
|---|
public Seabird()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
protected byte[] initPromptString()
initPromptString in class BaseInstrumentServiceprotected byte[] initSampleTerminator()
initSampleTerminator in class BaseInstrumentServiceprotected int initCurrentLimit()
initCurrentLimit in class BaseInstrumentServiceprotected PowerPolicy initInstrumentPowerPolicy()
initInstrumentPowerPolicy in class BaseInstrumentServiceprotected PowerPolicy initCommunicationPowerPolicy()
initCommunicationPowerPolicy in class BaseInstrumentServiceprotected int initInstrumentStartDelay()
initInstrumentStartDelay in class BaseInstrumentServiceprotected int initMaxSampleBytes()
initMaxSampleBytes in class BaseInstrumentServiceprotected void requestSample()
PolledInstrumentService
requestSample in class PolledInstrumentServiceprotected boolean getPrompt(int retries)
protected void getPrompt()
throws TimeoutException,
java.io.IOException,
java.lang.NullPointerException,
java.lang.Exception
TimeoutException
java.io.IOException
java.lang.NullPointerException
java.lang.Exception
public void sendCommand(java.lang.String cmd)
throws TimeoutException,
java.lang.NullPointerException,
java.io.IOException,
java.lang.Exception
TimeoutException
java.lang.NullPointerException
java.io.IOException
java.lang.Exception
public void sendCommandConfirm(java.lang.String cmd)
throws TimeoutException,
java.lang.NullPointerException,
java.io.IOException,
java.lang.Exception
TimeoutException
java.lang.NullPointerException
java.io.IOException
java.lang.Exception
protected void stopAutonomousLogging()
throws java.io.IOException,
java.lang.Exception,
TimeoutException
java.io.IOException
java.lang.Exception
TimeoutException
protected void startAutonomousLogging()
throws java.io.IOException,
java.lang.Exception,
TimeoutException
java.io.IOException
java.lang.Exception
TimeoutException
protected void setAutonomousSampleInterval(long periodSec)
throws java.io.IOException,
java.lang.Exception,
TimeoutException
java.io.IOException
java.lang.Exception
TimeoutException
protected void quitSession()
throws java.io.IOException,
java.lang.Exception,
TimeoutException
java.io.IOException
java.lang.Exception
TimeoutExceptionpublic void setClock()
setClock in interface InstrumentsetClock in class BaseInstrumentService
public void setDataFormat()
throws java.io.IOException,
java.lang.Exception
java.io.IOException
java.lang.Exceptionpublic int test()
test in interface Deviceprotected void postSample()
postSample in class BaseInstrumentService
protected void initializeInstrument()
throws java.lang.Exception
initializeInstrument in class BaseInstrumentServicejava.lang.Exception
public SerialPortParameters getSerialPortParameters()
throws gnu.io.UnsupportedCommOperationException
getSerialPortParameters in class DeviceServicegnu.io.UnsupportedCommOperationException
protected ScheduleSpecifier createDefaultSampleSchedule()
throws ScheduleParseException
createDefaultSampleSchedule in class PolledInstrumentServiceScheduleParseExceptionprotected byte[] getInstrumentStateMetadata()
getInstrumentStateMetadata in class BaseInstrumentServicepublic PacketParser getParser()
getParser in interface InstrumentgetParser in class BaseInstrumentServiceprotected abstract byte[] getFormatForSummaryCmd()
protected abstract byte[] getCalibrationCmd()
public DevicePacketParser getDevicePacketParser()
throws NotSupportedException
BaseInstrumentService
getDevicePacketParser in class BaseInstrumentServiceNotSupportedException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||