transforms hue light state into percenttype representingthe brightness . concode_field_sep int DIM_STEPSIZE concode_elem_sep String ALERT_MODE_NONE concode_elem_sep double SATURATION_FACTOR concode_elem_sep int COLOR_TEMPERATURE_RANGE concode_elem_sep int MIN_COLOR_TEMPERATURE concode_elem_sep String ALERT_MODE_LONG_SELECT concode_elem_sep int MAX_COLOR_TEMPERATURE concode_elem_sep int HUE_FACTOR concode_elem_sep double BRIGHTNESS_FACTOR concode_elem_sep String ALERT_MODE_SELECT concode_field_sep int toAdjustedBrightness concode_elem_sep StateUpdate toAlertState concode_elem_sep StateUpdate toOnOffEffectState concode_elem_sep StateUpdate toBrightnessLightState concode_elem_sep HSBType toHSBType concode_elem_sep StringType toAlertStringType concode_elem_sep StateUpdate toOnOffLightState concode_elem_sep StateUpdate toColorTemperatureLightState concode_elem_sep int toAdjustedColorTemp concode_elem_sep StateUpdate toColorLightState concode_elem_sep int restrictToBounds concode_elem_sep PercentType toColorTemperaturePercentType
PercentType function ( State arg0 ) { int loc0 = ( int ) Math . round ( arg0 . getBrightness ( ) / BRIGHTNESS_FACTOR ) ; return new PercentType ( restrictToBounds ( loc0 ) ) ; }