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
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. |
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
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;