com.sentilla.platform.tmote
Class Sht11HumidityDriver

java.lang.Object
  extended by com.sentilla.system.DriverAdapter
      extended by com.sentilla.system.SensorDriver<javax.measure.quantity.Dimensionless>
          extended by com.sentilla.platform.tmote.Sht11HumidityDriver
All Implemented Interfaces:
Driver

public class Sht11HumidityDriver
extends SensorDriver<javax.measure.quantity.Dimensionless>

Driver to obtain the Tmote relative humidity sensor. The returned Sensor provides a Dimensionless result representing percentage relative humidity, from 0.0 to 100.0.

This driver is identified by "sht11hum" and "hum".


Field Summary
 
Fields inherited from class com.sentilla.system.DriverAdapter
m_nextDriver
 
Constructor Summary
Sht11HumidityDriver()
           
 
Method Summary
 String getDriverName(int n)
          Returns the valid name(s) for each driver.
 Class<javax.measure.quantity.Dimensionless> getQuantityClass()
          Get the type of quantity that this sensor provides.
 Sensor<javax.measure.quantity.Dimensionless> newSensor()
          Creates a new sensor object of quantity Q.
 
Methods inherited from class com.sentilla.system.SensorDriver
create
 
Methods inherited from class com.sentilla.system.DriverAdapter
getNextDriver, setNextDriver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sht11HumidityDriver

public Sht11HumidityDriver()
Method Detail

newSensor

public Sensor<javax.measure.quantity.Dimensionless> newSensor()
Description copied from class: SensorDriver
Creates a new sensor object of quantity Q.

Specified by:
newSensor in class SensorDriver<javax.measure.quantity.Dimensionless>
Returns:
Sensor instance

getQuantityClass

public Class<javax.measure.quantity.Dimensionless> getQuantityClass()
Description copied from class: SensorDriver
Get the type of quantity that this sensor provides.

Specified by:
getQuantityClass in class SensorDriver<javax.measure.quantity.Dimensionless>
Returns:
Class of type Q, where Q is a Quantity

getDriverName

public String getDriverName(int n)
Description copied from class: DriverAdapter
Returns the valid name(s) for each driver. If a driver has N-names, then getDriverName returns a string for n=0 to n=N-1, and returns null for all other values of n.

A driver may return multiple names because it provides the default implementation for a specific name, such as associating "flash" by default to the external flash, or "extflash" if an application specifically asserts it requires the external flash resources. Some drivers may return only a single valid name, such as "intflash" for the internal flash.

Specified by:
getDriverName in interface Driver
Specified by:
getDriverName in class DriverAdapter


Copyright © 2007 Sentilla Corporation. All Rights Reserved.