mam.agent.sleepManager
Class SimpleSleepManager

mam.agent.sleepManager.SleepManager
  |
  +--mam.agent.sleepManager.SimpleSleepManager

public class SimpleSleepManager
extends SleepManager


Field Summary
 protected final static longm_defaultSleepTime
           
 protected Datem_lastActivityTime
           
 protected final static longm_maximumSleepTime
           
 protected final static longm_minimumSleepTime
           
 protected longm_sleepTime
           

Constructor Summary
SimpleSleepManager()
           

Method Summary
 synchronized voidactivityDetected()
           
 longgetSleepTime()
           
 synchronized voidnoActivityDetected()
           

Methods inherited from class mam.agent.sleepManager.SleepManager
setSleepTime

Field Detail

m_defaultSleepTime

protected final static long m_defaultSleepTime

m_lastActivityTime

protected Date m_lastActivityTime

m_maximumSleepTime

protected final static long m_maximumSleepTime

m_minimumSleepTime

protected final static long m_minimumSleepTime

m_sleepTime

protected long m_sleepTime
Constructor Detail

SimpleSleepManager

public SimpleSleepManager()
Method Detail

activityDetected

public synchronized void activityDetected()

getSleepTime

public long getSleepTime()

noActivityDetected

public synchronized void noActivityDetected()