org.mbari.siam.moos.utils.nodeGUI
Class InstrumentSampler

java.lang.Object
  extended by org.mbari.siam.moos.utils.nodeGUI.InstrumentSampler
All Implemented Interfaces:
java.lang.Runnable

public class InstrumentSampler
extends java.lang.Object
implements java.lang.Runnable

This class is responsible for getting data from one or more specified instrument services.


Field Summary
protected static org.apache.log4j.Logger _logger
           
 
Constructor Summary
InstrumentSampler(Instrument instrument, int sampleIntervalMsec, org.mbari.siam.moos.utils.nodeGUI.Application application)
          Constructor.
 
Method Summary
 void run()
          Acquire samples from specified instruments at specified interval.
 void setInterval(int msec)
          Set sampling interval.
 void terminate()
          Terminate sampling.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected static org.apache.log4j.Logger _logger
Constructor Detail

InstrumentSampler

public InstrumentSampler(Instrument instrument,
                         int sampleIntervalMsec,
                         org.mbari.siam.moos.utils.nodeGUI.Application application)
Constructor. Put specified instrument into list of instruments to be sampled.

Method Detail

setInterval

public void setInterval(int msec)
Set sampling interval.


terminate

public void terminate()
Terminate sampling.


run

public void run()
Acquire samples from specified instruments at specified interval.

Specified by:
run in interface java.lang.Runnable


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.