safehome.device
Class DeviceAbstractSensor

java.lang.Object
  extended by safehome.device.DeviceAbstractSensor
Direct Known Subclasses:
DeviceMotionDetector, DeviceWinDoorSensor

public abstract class DeviceAbstractSensor
extends Object

Class DeviceAbstractSensor is an abstract class for sensor-like devices. SafeHome has at least two types of sensors, win/door sensors and motion detectors.

Author:
cs550 TA

Field Summary
(package private) static DeviceAbstractSensor head_MotionDetector
           
(package private) static DeviceAbstractSensor head_WinDoorSensor
           
(package private) static int newIdSequence_MotionDetector
           
(package private) static int newIdSequence_WinDoorSensor
           
(package private)  DeviceAbstractSensor next
           
(package private) static DeviceSensorController safeHomeSensorTest
           
(package private)  int sensorID
           
 
Constructor Summary
DeviceAbstractSensor()
           
 
Method Summary
abstract  void intrude()
          Note: This method is public as a virtual device implementation side effect.
abstract  void release()
          Note: This method is public as a virtual device implementation side effect.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

safeHomeSensorTest

static DeviceSensorController safeHomeSensorTest

head_WinDoorSensor

static DeviceAbstractSensor head_WinDoorSensor

head_MotionDetector

static DeviceAbstractSensor head_MotionDetector

next

DeviceAbstractSensor next

sensorID

int sensorID

newIdSequence_WinDoorSensor

static int newIdSequence_WinDoorSensor

newIdSequence_MotionDetector

static int newIdSequence_MotionDetector
Constructor Detail

DeviceAbstractSensor

public DeviceAbstractSensor()
Method Detail

intrude

public abstract void intrude()
Note: This method is public as a virtual device implementation side effect. Do not call.


release

public abstract void release()
Note: This method is public as a virtual device implementation side effect. Do not call.