Class ProcessMonitor

  extended by java.lang.Thread
      extended by org.mbari.siam.foce.devices.controlLoop.WorkerThread
          extended by org.mbari.siam.foce.devices.controlLoop.ProcessMonitor
All Implemented Interfaces:

public class ProcessMonitor
extends WorkerThread

check the status of the inputs and outputs and handle errors

Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
Field Summary
protected  ControlProcessIF _controlProcess
protected  org.apache.log4j.Logger _log4j
Fields inherited from class org.mbari.siam.foce.devices.controlLoop.WorkerThread
_initialized, _name, _pause, _running, _terminate, _updatePeriodMillisec
Fields inherited from class java.lang.Thread
Constructor Summary
ProcessMonitor(ControlProcessIF controlProcess, java.lang.String name, long updatePeriodMillisec)
Method Summary
 void debugShow()
 void doWorkerAction()
 void evaluateIO(ControlInputIF[] inputs, ControlOutputIF[] outputs)
          evaluate input/output health and status.
 java.lang.String[] getSampleBuffers()
          Return a set of sample buffers for logging
protected  void setSampleBuffers(ControlInputIF[] inputs, ControlOutputIF[] outputs)
          Set the sample buffers
Methods inherited from class org.mbari.siam.foce.devices.controlLoop.WorkerThread
delay, initialize, isInitialized, isRunning, name, pause, run, setUpdatePeriod, setWorkerName, shutdown, terminate
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail


protected org.apache.log4j.Logger _log4j


protected ControlProcessIF _controlProcess
Constructor Detail


public ProcessMonitor(ControlProcessIF controlProcess,
                      java.lang.String name,
                      long updatePeriodMillisec)
Method Detail


public java.lang.String[] getSampleBuffers()
Return a set of sample buffers for logging


protected void setSampleBuffers(ControlInputIF[] inputs,
                                ControlOutputIF[] outputs)
Set the sample buffers


public void evaluateIO(ControlInputIF[] inputs,
                       ControlOutputIF[] outputs)
evaluate input/output health and status. take appropriate action when faults are detected.


public void debugShow()


public void doWorkerAction()
Specified by:
doWorkerAction in class WorkerThread

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.