org.bluemelon.bluesense
Class UnknownDevice

java.lang.Object
  extended by org.bluemelon.bluesense.Device
      extended by org.bluemelon.bluesense.UnknownDevice

public class UnknownDevice
extends Device

A device of this class is returned when either:
1. the identifier points to a non existent device
2. the device type was not registered with the master. At the start of you application you should always register the types of devices you want to use. @see org.bluemelon.bluesense.AdcInputDevice#register(Master)


Field Summary
static int TYPE_ID
           
 
Method Summary
 boolean detect(int timeOut)
          Do not use.
 int getType()
          In case of an unknown device, getType returns the found hardware type.
 boolean isAccessible()
          Do not use.
 
Methods inherited from class org.bluemelon.bluesense.Device
addDeviceEventListener, getFirmwareVersion, getId, getTypeName, removeDeviceEventListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ID

public static final int TYPE_ID
Method Detail

detect

public boolean detect(int timeOut)
Do not use.

Overrides:
detect in class Device
Parameters:
timeOut -
Returns:
false

isAccessible

public boolean isAccessible()
Do not use.

Overrides:
isAccessible in class Device
Returns:
false

getType

public int getType()
In case of an unknown device, getType returns the found hardware type.

Overrides:
getType in class Device
Returns:
type id.