|
||||||||
| 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.core.AggregateInstrumentService
public abstract class AggregateInstrumentService
This class serves as a base class for instruments that are supervised by a single controller (eg SeaBird37im.java). The
| Field Summary | |
|---|---|
protected int |
_numSensors
|
| 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 | |
|---|---|
AggregateInstrumentService()
|
|
| Method Summary | |
|---|---|
SensorDataPacket |
acquire(boolean logSample)
Poll instrument for sample, acquire and process it, and put data into output queue. |
protected void |
incBadResponseCount()
called to increment bad response totalizer |
protected void |
incInvalidDataCount()
called to increment invalid data count |
protected void |
incRetryExceededCount()
called to increment comms retry count |
protected void |
incSampleCount()
called to increment sample counter |
protected void |
incTimeoutCount()
called to increment comms timeout count |
protected void |
requestSample()
This is overridden but not implemented. |
protected abstract void |
requestSample(int sensorRef)
Request a data sample from instrument module. |
protected void |
resetCommStats()
set communication statistic counters to 0 |
protected abstract void |
setNumSensors(int numSensors)
Abstract method for setting the number of sensors (instruments) _numSensors supported by sub-class. |
int |
test()
Hack - triggers a comms stat dump through RMI |
| Methods inherited from class org.mbari.siam.core.PolledInstrumentService |
|---|
createDefaultSampleSchedule, 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, getParser, getPortDiagnostics, getPortDiagnosticsSummary, getProperties, getProperty, getSampleSchedule, getSchedules, resetPortDiagnostics, setClock, 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 int _numSensors
| Constructor Detail |
|---|
public AggregateInstrumentService()
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
protected abstract void setNumSensors(int numSensors)
_numSensors supported by sub-class.
numSensors - Number ofinstruments supported by sub-class
protected abstract void requestSample(int sensorRef)
throws TimeoutException,
java.lang.Exception
sensorRef - reference for sub-class to determine which module to sample
TimeoutException
java.lang.Exception
protected void requestSample()
throws TimeoutException,
java.lang.Exception
requestSample in class PolledInstrumentServiceTimeoutException
java.lang.Exception
public SensorDataPacket acquire(boolean logSample)
throws NoDataException
PolledInstrumentService
acquire in class PolledInstrumentServicelogSample -
NoDataExceptionprotected void resetCommStats()
protected void incSampleCount()
protected void incRetryExceededCount()
protected void incInvalidDataCount()
protected void incTimeoutCount()
protected void incBadResponseCount()
public int test()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||