SecurityLightController
Interface LightControllerStateMachineObserverInterface


public interface LightControllerStateMachineObserverInterface

This interface defines an interface which a class must implement if it desires to observe the lamp state.

Author:
schilling

Field Summary
static int INTRUSION_DETECTED
           
static int LAMP_OFF_DAYLIGHT
           
static int LAMP_OFF_NIGHTIME
           
static int LAMP_ON_FULL_BRIGHTNESS
           
static int LAMP_ON_NIGHTIME_BRIGHTNESS
           
static int MOTION_DETECTED
           
 
Method Summary
 void updateLightState(int newState)
          This method will update the state of the light, passing in one of the the parameters representing the current state.
 

Field Detail

LAMP_OFF_DAYLIGHT

static final int LAMP_OFF_DAYLIGHT
See Also:
Constant Field Values

LAMP_ON_FULL_BRIGHTNESS

static final int LAMP_ON_FULL_BRIGHTNESS
See Also:
Constant Field Values

LAMP_OFF_NIGHTIME

static final int LAMP_OFF_NIGHTIME
See Also:
Constant Field Values

LAMP_ON_NIGHTIME_BRIGHTNESS

static final int LAMP_ON_NIGHTIME_BRIGHTNESS
See Also:
Constant Field Values

MOTION_DETECTED

static final int MOTION_DETECTED
See Also:
Constant Field Values

INTRUSION_DETECTED

static final int INTRUSION_DETECTED
See Also:
Constant Field Values
Method Detail

updateLightState

void updateLightState(int newState)
This method will update the state of the light, passing in one of the the parameters representing the current state.

Parameters:
newState - The new state, one of LAMP_OFF_DAYLIGHT , LAMP_ON_FULL_BRIGHTNESS, LAMP_OFF_NIGHTIME, LAMP_ON_NIGHTIME_BRIGHTNESS, MOTION_DETECTED, INTRUSION_DETECTED = 32;