1.0.0

org.eclipse.soda.dk.device
Class DevicePoller

java.lang.Object
  extended by org.eclipse.soda.dk.device.DevicePoller
All Implemented Interfaces:
WorkerService

public class DevicePoller
extends java.lang.Object
implements WorkerService

Version:
1.0.0

Constructor Summary
DevicePoller(ControlService[] controls, long pollingIntervalInMs)
          Constructs an instance of this class from the specified read commands and polling interval in ms parameters.
 
Method Summary
 boolean doWork()
          Do work and return the boolean result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevicePoller

public DevicePoller(ControlService[] controls,
                    long pollingIntervalInMs)
Constructs an instance of this class from the specified read commands and polling interval in ms parameters.

Parameters:
readCommands - The read commands (CommandService[]) parameter.
pollingIntervalInMs - The polling interval in ms (long) parameter.
controls - The controls (ControlService[]) parameter.
Method Detail

doWork

public boolean doWork()
               throws java.lang.InterruptedException
Do work and return the boolean result.

Specified by:
doWork in interface WorkerService
Returns:
Results of the do work (boolean) value.
Throws:
java.lang.InterruptedException - Interrupted Exception.

1.0.0

Copyright (c) 1999, 2007 IBM