Class InstrumentSampler

  extended by org.mbari.siam.moos.utils.nodeGUI.InstrumentSampler
All Implemented Interfaces:

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)
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


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


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


public void setInterval(int msec)
Set sampling interval.


public void terminate()
Terminate sampling.


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.