1-Wire Weather Service for Java -- Server API

wxservice.sensor.task
Class WSI603A.SolarTask

java.lang.Object
  extended by java.util.TimerTask
      extended by wxservice.sensor.task.WSI603A.ReadTask
          extended by wxservice.sensor.task.WSI603A.SolarTask
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
WSI603A

private class WSI603A.SolarTask
extends WSI603A.ReadTask

Timer task implementation samples the solar intensity on the configured schedule.


Field Summary
 
Fields inherited from class wxservice.sensor.task.WSI603A.ReadTask
CHECKSUM_INDEX, COMMAND_ADDRESS, COMMAND_INDEX, LIGHT_INTENSITY_INDEX, LIGHT_STATUS_INDEX, m_taskName, RESPONSE_ADDRESS, RESPONSE_LENGTH, TIMEOUT_ERROR, VALIDATION_ERROR, VOLTAGE_INDEX, WIND_DIRECTION_INDEX, WIND_SPEED_INDEX
 
Constructor Summary
WSI603A.SolarTask(java.lang.String taskName)
          Constructs a new instance of Solar Task.
 
Method Summary
protected  java.lang.Number getData()
          Gets the data from the sensor task implementation.
 
Methods inherited from class wxservice.sensor.task.WSI603A.ReadTask
checksum, executeCommand, initContainer, initDevice, readResponseBuffer, run, writeCommand
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSI603A.SolarTask

WSI603A.SolarTask(java.lang.String taskName)
Constructs a new instance of Solar Task.

Parameters:
taskName - to identify this task when posting data.
Method Detail

getData

protected java.lang.Number getData()
                            throws com.dalsemi.onewire.OneWireException,
                                   ServiceException
Gets the data from the sensor task implementation.

Specified by:
getData in class WSI603A.ReadTask
Returns:
the requested data.
Throws:
com.dalsemi.onewire.OneWireException - if 1-Wire communication fails.
ServiceException - if validation fails.

Copyright © 2005-2009 Karl Uppiano