|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface Instrument
An Instrument is a Device that can acquire data.
| Field Summary |
|---|
| 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 |
| Method Summary | |
|---|---|
SensorDataPacket |
acquireSample(boolean logPacket)
Acquire SensorDataPacket, optionally write it to Instrument's log file, and return it to caller. |
void |
addDefaultPacketFilters(PacketFilter[] filters)
Add default packet filters for data retrieval. |
void |
annotate(byte[] annotation)
Append annotation to device data stream. |
void |
cacheProperties(byte[] note)
Cache service properties on the "instrument host" node, such that current service property values will be restored next time service is created on current port of current node. |
void |
clearDefaultPacketFilters()
Clear default packet filters for data retrieval. |
void |
clearPropertiesCache(byte[] note)
Clear properties cache. |
void |
disableSummary()
Disable data summary generation. |
void |
enableSummary()
Enable generation of data summary. |
PacketFilter[] |
getDefaultPacketFilters()
Get default packet filters for data retrieval. |
SensorDataPacket |
getLastSample()
Get the most recently logged SensorDataPacket and return it to caller. |
DevicePacketSet |
getPackets(long startTime,
long stopTime)
Get all packets having time-tag within specified range. |
DevicePacketSet |
getPackets(long startTime,
long stopTime,
PacketFilter[] filters,
boolean excludeStale)
Get all packets having time-tag within specified range, filtered by specified filters; exclude "stale" packets older than service's "data shelf life". |
PacketParser |
getParser()
Get instrument's data parser. |
byte[] |
getPortDiagnostics(boolean logPacket)
Get diagnostics message from device's port and optionally log it. |
byte[] |
getPortDiagnosticsSummary(boolean logPacket)
Get diagnostics summary message from device's port and optionally log it. |
java.util.Vector |
getProperties()
Get Vector of instrument properties; each Vector element consists of byte array with form "key=value". |
byte[] |
getProperty(byte[] key)
Get value of specified instrument service property. |
byte[] |
getSampleSchedule()
Return byte-string representation of instrument sampling schedule. |
java.util.Vector |
getSchedules()
Return byte-string representation of instrument schedules. |
void |
resetPortDiagnostics()
Reset port diagnostics. |
void |
setClock()
Set instrument's internal clock to current time. |
void |
setClock(long millisec)
Set instrument's internal clock to specified time. |
void |
setProperty(byte[] keyEqualsValueStrings,
byte[] unused)
Set value of specified instrument service properties. |
boolean |
summaryEnabled()
Return true if summary generation is enabled. |
| 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 |
| Method Detail |
|---|
void setClock(long millisec)
throws NotSupportedException,
java.rmi.RemoteException
NotSupportedException
java.rmi.RemoteException
void setClock()
throws NotSupportedException,
java.rmi.RemoteException
NotSupportedException
java.rmi.RemoteException
SensorDataPacket acquireSample(boolean logPacket)
throws java.rmi.RemoteException,
NoDataException
java.rmi.RemoteException
NoDataException
SensorDataPacket getLastSample()
throws java.rmi.RemoteException,
NoDataException
java.rmi.RemoteException
NoDataException
void annotate(byte[] annotation)
throws java.rmi.RemoteException
java.rmi.RemoteException
byte[] getSampleSchedule()
throws java.rmi.RemoteException
java.rmi.RemoteException
java.util.Vector getSchedules()
throws java.rmi.RemoteException
java.rmi.RemoteException
DevicePacketSet getPackets(long startTime,
long stopTime)
throws java.rmi.RemoteException,
NoDataException
java.rmi.RemoteException
NoDataException
DevicePacketSet getPackets(long startTime,
long stopTime,
PacketFilter[] filters,
boolean excludeStale)
throws java.rmi.RemoteException,
NoDataException
java.rmi.RemoteException
NoDataException
void addDefaultPacketFilters(PacketFilter[] filters)
throws java.rmi.RemoteException
java.rmi.RemoteException
void clearDefaultPacketFilters()
throws java.rmi.RemoteException
java.rmi.RemoteException
PacketFilter[] getDefaultPacketFilters()
throws java.rmi.RemoteException
java.rmi.RemoteException
byte[] getProperty(byte[] key)
throws java.rmi.RemoteException,
MissingPropertyException
java.rmi.RemoteException
MissingPropertyException
void setProperty(byte[] keyEqualsValueStrings,
byte[] unused)
throws java.rmi.RemoteException,
InvalidPropertyException
java.rmi.RemoteException
InvalidPropertyException
java.util.Vector getProperties()
throws java.rmi.RemoteException
java.rmi.RemoteException
void cacheProperties(byte[] note)
throws java.rmi.RemoteException,
java.lang.Exception
java.rmi.RemoteException
java.lang.Exception
void clearPropertiesCache(byte[] note)
throws java.rmi.RemoteException,
java.lang.Exception
java.rmi.RemoteException
java.lang.Exception
byte[] getPortDiagnostics(boolean logPacket)
throws java.rmi.RemoteException
java.rmi.RemoteException
void resetPortDiagnostics()
throws java.rmi.RemoteException
java.rmi.RemoteException
byte[] getPortDiagnosticsSummary(boolean logPacket)
throws java.rmi.RemoteException
java.rmi.RemoteException
PacketParser getParser()
throws java.rmi.RemoteException,
NotSupportedException
java.rmi.RemoteException
NotSupportedException
void enableSummary()
throws java.rmi.RemoteException
java.rmi.RemoteException
void disableSummary()
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean summaryEnabled()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||