|
||||||||
| 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.StreamingInstrumentService
org.mbari.siam.devices.nortek.vector.Aquadopp
public class Aquadopp
Instrument service for Aquadopp current profiler.
| Nested Class Summary | |
|---|---|
class |
Aquadopp.Attributes
Service attributes. |
class |
Aquadopp.Parser
|
| Field Summary | |
|---|---|
static java.lang.String |
ASCII_CONFIG_TAG
|
static java.lang.String |
BINARY_CONFIG_TAG
|
static int |
HARDWARE_CONFIGURATION
|
static int |
HR_PROFILER_DATA
|
static int |
INSTRUMENT_CONFIGURATION
|
static int |
PROFILER_VELOCITY_DATA
|
static int |
SYNC_BYTE
|
| Fields inherited from class org.mbari.siam.core.StreamingInstrumentService |
|---|
_shutdown, _subsampleInterval, _suspend |
| 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 | |
|---|---|
Aquadopp()
|
|
| Method Summary | |
|---|---|
protected ScheduleSpecifier |
createDefaultSampleSchedule()
Return specifier for default sampling schedule. |
void |
enterSafeMode()
Enter mode for resource-restricted environement. |
void |
eraseRecorder()
Erase the recorder |
DevicePacketParser |
getDevicePacketParser()
Get instruments' DevicePacketParser, which returns JDDAC records. |
protected byte[] |
getInstrumentStateMetadata()
Get Instrument State Metadata. |
PacketParser |
getParser()
Get instrument's parser. |
SerialPortParameters |
getSerialPortParameters()
Return parameters to use on serial port. |
protected PowerPolicy |
initCommunicationPowerPolicy()
Sets Aquadopp communications power policy |
protected int |
initCurrentLimit()
Sets Aquadopp current limit. |
protected void |
initializeInstrument()
Initialize the Instrument This means to set all initial settings - This section for one time only instrument settings |
protected PowerPolicy |
initInstrumentPowerPolicy()
Sets Aquadopp power policy |
protected int |
initInstrumentStartDelay()
Set Aquadopp startup delay time. |
protected int |
initMaxSampleBytes()
Sets the Aquadopp maximum number of bytes in an instrument data sample |
protected byte[] |
initPromptString()
Sets the Aquadopp command prompt. |
protected byte[] |
initSampleTerminator()
Sets the Aquadopp sample terminator. |
protected boolean |
isStreaming()
Return true if instrument is streaming. |
protected int |
readSample(byte[] sample)
Read a Nortek binary sample; overrides BaseInstrumentService.readSample(). |
void |
setClock()
Set instrument clock to current time |
void |
setClock(long t)
Set the Aquadopp's clock. |
protected void |
setMeasurementInterval(short sec)
Send command to set the measurement interval (assumes we've got instrument's attention already) |
protected java.lang.String |
shutdownInstrument()
Make sure to terminate measurement mode - it is "bad" to disconnect power while in measurement mode. |
protected void |
startStreaming()
Put instrument into streaming mode |
protected void |
stopStreaming()
Stop streaming |
int |
test()
Self-test routine; This does nothing in the Aquadopp driver |
| Methods inherited from class org.mbari.siam.core.StreamingInstrumentService |
|---|
acquire, acquireFromStream, doneAcquiring, doScheduledTask, resume, setAttributes, shutdown, suspend |
| 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, 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 |
|---|
public static final java.lang.String ASCII_CONFIG_TAG
public static final java.lang.String BINARY_CONFIG_TAG
public static final int INSTRUMENT_CONFIGURATION
public static final int HARDWARE_CONFIGURATION
public static final int PROFILER_VELOCITY_DATA
public static final int HR_PROFILER_DATA
public static final int SYNC_BYTE
| Constructor Detail |
|---|
public Aquadopp()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
protected PowerPolicy initInstrumentPowerPolicy()
initInstrumentPowerPolicy in class BaseInstrumentServiceprotected PowerPolicy initCommunicationPowerPolicy()
initCommunicationPowerPolicy in class BaseInstrumentServiceprotected int initInstrumentStartDelay()
initInstrumentStartDelay in class BaseInstrumentServiceprotected int initCurrentLimit()
initCurrentLimit in class BaseInstrumentServiceprotected byte[] initSampleTerminator()
initSampleTerminator in class BaseInstrumentServiceprotected byte[] initPromptString()
initPromptString in class BaseInstrumentServiceprotected int initMaxSampleBytes()
initMaxSampleBytes in class BaseInstrumentService
protected void initializeInstrument()
throws InitializeException,
java.lang.Exception
initializeInstrument in class StreamingInstrumentServiceInitializeException
java.lang.Exception
public SerialPortParameters getSerialPortParameters()
throws gnu.io.UnsupportedCommOperationException
getSerialPortParameters in class DeviceServicegnu.io.UnsupportedCommOperationException
protected void stopStreaming()
throws java.lang.Exception
stopStreaming in class StreamingInstrumentServicejava.lang.Exceptionprotected boolean isStreaming()
isStreaming in class StreamingInstrumentService
protected void startStreaming()
throws java.lang.Exception
startStreaming in class StreamingInstrumentServicejava.lang.Exception
public void eraseRecorder()
throws java.lang.Exception
eraseRecorder in interface AquadoppIFjava.lang.Exception
protected byte[] getInstrumentStateMetadata()
throws java.lang.Exception
getInstrumentStateMetadata in class BaseInstrumentServicejava.lang.Exceptionpublic void setClock()
setClock in interface InstrumentsetClock in class BaseInstrumentService
public void setClock(long t)
throws NotSupportedException
setClock in interface InstrumentsetClock in class BaseInstrumentServiceNotSupportedException
public DevicePacketParser getDevicePacketParser()
throws NotSupportedException
BaseInstrumentService
getDevicePacketParser in class BaseInstrumentServiceNotSupportedException
public PacketParser getParser()
throws NotSupportedException
BaseInstrumentService
getParser in interface InstrumentgetParser in class BaseInstrumentServiceNotSupportedExceptionpublic int test()
test in interface Device
public void enterSafeMode()
throws java.lang.Exception
enterSafeMode in interface Safeablejava.lang.Exception
protected ScheduleSpecifier createDefaultSampleSchedule()
throws ScheduleParseException
createDefaultSampleSchedule in class BaseInstrumentServiceScheduleParseException
protected int readSample(byte[] sample)
throws TimeoutException,
java.io.IOException,
java.lang.Exception
readSample in class BaseInstrumentServicesample - output buffer
TimeoutException
java.io.IOException
java.lang.Exception
protected void setMeasurementInterval(short sec)
throws java.lang.Exception
java.lang.Exception
protected java.lang.String shutdownInstrument()
throws java.lang.Exception
shutdownInstrument in class BaseInstrumentServicejava.lang.Exception
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||