@SuppressWarnings("deprecation") private void updateClockControlLight(){
  if (_clock != null) {
    Date now=_clock.getTime();
    int timeNow=now.getHours() * 60 + now.getMinutes();
    int state=_parentLight.getState();
    if (_timeOn <= _timeOff) {
      if ((timeNow < _timeOn) || (timeNow >= _timeOff)) {
        if (state == Light.ON) {
          _parentLight.setState(Light.OFF);
        }
      }
 else {
        if (state == Light.OFF) {
          _parentLight.setState(Light.ON);
        }
      }
    }
 else {
      if ((timeNow >= _timeOn) || (timeNow < _timeOff)) {
        if (state == Light.OFF) {
          _parentLight.setState(Light.ON);
        }
      }
 else {
        if (state == Light.ON) {
          _parentLight.setState(Light.OFF);
        }
      }
    }
  }
}

@ SuppressWarnings ( "deprecation" ) private void updateClockControlLight ( ) { if ( _clock != null ) { Date now = _clock . getTime ( ) ; int timeNow = now . getHours ( ) * 60 + now . getMinutes ( ) ; int state = _parentLight . getState ( ) ; if ( _timeOn <= _timeOff ) { if ( ( timeNow < _timeOn ) || ( timeNow >= _timeOff ) ) { if ( state == Light . ON ) { _parentLight . setState ( Light . OFF ) ; } } else { if ( state == Light . OFF ) { _parentLight . setState ( Light . ON ) ; } } } else { if ( ( timeNow >= _timeOn ) || ( timeNow < _timeOff ) ) { if ( state == Light . OFF ) { _parentLight . setState ( Light . ON ) ; } } else { if ( state == Light . ON ) { _parentLight . setState ( Light . OFF ) ; } } } } }
updates the status of a light under fast_clock_control . this method is called every fastclock minute .
