org.mbari.siam.devices.seabird.eventDetector
Class TurbidityEventDetector

java.lang.Object
  extended by org.mbari.siam.devices.seabird.eventDetector.TurbidityEventDetector
All Implemented Interfaces:
StaLtaEventDetector.Listener

public class TurbidityEventDetector
extends java.lang.Object
implements StaLtaEventDetector.Listener

Detects turbidity events based on transmissometer data.


Nested Class Summary
static class TurbidityEventDetector.Parameters
          Parameters used for STA/LTA event detection
 
Field Summary
protected  StaLtaEventDetector _eventDetector
           
 
Constructor Summary
TurbidityEventDetector(BaseInstrumentService seabirdService, TurbidityEventDetector.Parameters params, int statusIntervalSec)
           
 
Method Summary
 void detriggeredCallback(StaLtaEventDetector detector)
          Invoked by STA/LTA event detector on triggered->detriggered transition
 void disableShoreMessaging()
          Disable use of shore messaging service
 void dispatchMessage(java.lang.String msg)
          Queue specified message for downlink through shore-messaging service
 boolean enabled()
          Return true if event detector is enabled; else false
 void enableShoreMessaging()
          Enable use of shore messaging service
 void initialize(java.lang.String modemHostName, int sampleIntervalSec)
           
 void processSample(float voltage, long sampleTime, float transmittSlope, float transmittIntcpt, int sampleIntervalSec)
          Transform and add latest sample to STA/LTA event detector.
 void setStatusInterval(int statusIntervalSec)
          Set interval at which detector status messages are generated
 void triggeredCallback(StaLtaEventDetector detector)
          Invoked by STA/LTA event detector on detriggered->triggered transition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_eventDetector

protected StaLtaEventDetector _eventDetector
Constructor Detail

TurbidityEventDetector

public TurbidityEventDetector(BaseInstrumentService seabirdService,
                              TurbidityEventDetector.Parameters params,
                              int statusIntervalSec)
                       throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

initialize

public void initialize(java.lang.String modemHostName,
                       int sampleIntervalSec)
                throws java.lang.Exception
Throws:
java.lang.Exception

enabled

public boolean enabled()
Return true if event detector is enabled; else false


triggeredCallback

public void triggeredCallback(StaLtaEventDetector detector)
Invoked by STA/LTA event detector on detriggered->triggered transition

Specified by:
triggeredCallback in interface StaLtaEventDetector.Listener

dispatchMessage

public void dispatchMessage(java.lang.String msg)
Queue specified message for downlink through shore-messaging service


detriggeredCallback

public void detriggeredCallback(StaLtaEventDetector detector)
Invoked by STA/LTA event detector on triggered->detriggered transition

Specified by:
detriggeredCallback in interface StaLtaEventDetector.Listener

processSample

public void processSample(float voltage,
                          long sampleTime,
                          float transmittSlope,
                          float transmittIntcpt,
                          int sampleIntervalSec)
                   throws java.lang.Exception
Transform and add latest sample to STA/LTA event detector.

Throws:
java.lang.Exception

setStatusInterval

public void setStatusInterval(int statusIntervalSec)
Set interval at which detector status messages are generated


enableShoreMessaging

public void enableShoreMessaging()
Enable use of shore messaging service


disableShoreMessaging

public void disableShoreMessaging()
Disable use of shore messaging service



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.