jhomenet.hw.driver.network
Class AgentHandler

java.lang.Object
  extended by java.lang.Thread
      extended by jhomenet.hw.driver.network.AgentHandler
All Implemented Interfaces:
java.lang.Runnable

public class AgentHandler
extends java.lang.Thread


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
AgentHandler()
          Default constructor.
 
Method Summary
 double getCount(java.lang.String hardwareID)
           
 double getTemp(java.lang.String hardwareID)
           
 double getVoltage(java.lang.String hardwareID)
           
 double getWindDirection(java.lang.String hardwareID)
           
 double getWindSpeed(java.lang.String hardwareID)
           
 void initialize()
          Initialize the agent handler.
 void pauseHandler()
          Pause the agent handler.
 void resumeHandler()
          Resume the agent handler.
 void run()
          Run the agent handler thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AgentHandler

public AgentHandler()
Default constructor.

Method Detail

initialize

public void initialize()
                throws java.io.IOException
Initialize the agent handler.

Throws:
java.io.IOException

pauseHandler

public void pauseHandler()
Pause the agent handler.


resumeHandler

public void resumeHandler()
Resume the agent handler.


run

public void run()
Run the agent handler thread.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread
See Also:
Runnable.run()

getTemp

public double getTemp(java.lang.String hardwareID)
Parameters:
hardwareID -
Returns:

getVoltage

public double getVoltage(java.lang.String hardwareID)
Parameters:
hardwareID -
Returns:

getCount

public double getCount(java.lang.String hardwareID)
Parameters:
hardwareID -
Returns:

getWindSpeed

public double getWindSpeed(java.lang.String hardwareID)
Parameters:
hardwareID -
Returns:

getWindDirection

public double getWindDirection(java.lang.String hardwareID)
Parameters:
hardwareID -
Returns:


Copyright © 2004-2005 David Irwin. All Rights Reserved.