org.mbari.siam.moos.deployed
Class MOOSSleepManager

java.lang.Object
  extended by java.lang.Thread
      extended by org.mbari.siam.core.SleepManager
          extended by org.mbari.siam.moos.deployed.MOOSSleepManager
All Implemented Interfaces:
java.lang.Runnable

public class MOOSSleepManager
extends SleepManager

MOOSSleepManager extends the default implementation of the SleepManager by adding some hardware re-initialization after sleep.

Author:
Bob Herlien

Nested Class Summary
 
Nested classes/interfaces inherited from class org.mbari.siam.core.SleepManager
SleepManager.SleepLog, SleepManager.SleepLogEntry
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
protected static int _instanceCount
           
 
Fields inherited from class org.mbari.siam.core.SleepManager
_dateFormatter, _debug, _instance, _lastWakeupTime, _log, _minAwakeTime, _minSleepTime, _nodeManager, _nodeProperties, _pollTime, _procRunner, _sleepDelay, _sleepManagerEnabled, _sleepRollCallList, _sleepString, _testThread, _wakeupTime, DFLT_MIN_AWAKE_TIME, DFLT_MIN_SLEEP_TIME, DFLT_POLL_TIME, DFLT_SLEEP_DELAY, DFLT_WAKEUP_TIME, PROP_PREFIX
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
protected MOOSSleepManager()
           
 
Method Summary
static SleepManager getInstance()
          Method to get singleton instance.
 void postSuspend()
          Do any necessary cleanup after returning from suspend
 
Methods inherited from class org.mbari.siam.core.SleepManager
addSleepRollCallListener, doSuspend, enabled, run, set
 
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

_instanceCount

protected static int _instanceCount
Constructor Detail

MOOSSleepManager

protected MOOSSleepManager()
Method Detail

getInstance

public static SleepManager getInstance()
Method to get singleton instance.


postSuspend

public void postSuspend()
Do any necessary cleanup after returning from suspend

Overrides:
postSuspend in class SleepManager


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.