PercentType function ( String arg0 ) { long loc0 = Long . parseLong ( arg0 , 16 ) ; return new PercentType ( BigDecimal . valueOf ( loc0 ) . multiply ( BigDecimal . valueOf ( 100 ) ) . divide ( BigDecimal . valueOf ( 255 ) , 0 , BigDecimal . ROUND_UP ) . intValue ( ) ) ; }
convert a 0-ff scale value to a percent type . concode_field_sep String HIGH_BYTE concode_elem_sep ModuleChannel[] channels concode_elem_sep String address concode_elem_sep String statusUpdateGroup concode_elem_sep String STATUS_CHANGE_ACK concode_elem_sep String UP_BYTE concode_elem_sep String STATUS_REQUEST_GROUP_1 concode_elem_sep String STATUS_RESPONSE concode_elem_sep String STATUS_CHANGE_CMD concode_elem_sep int group concode_elem_sep String statusRequestGroup concode_elem_sep String STATUS_CHANGE_GROUP_1 concode_elem_sep Logger log concode_elem_sep String STATUS_REQUEST_GROUP_2 concode_elem_sep String STATUS_REQUEST_ACK concode_elem_sep String STATUS_CHANGE_GROUP_2 concode_elem_sep String STATUS_REQUEST_CMD concode_elem_sep long lastUpdatedTime concode_elem_sep String DOWN_BYTE concode_elem_sep String LOW_BYTE concode_elem_sep Boolean nextStatusResponseIsForThisGroup concode_field_sep void processNikobusCommand concode_elem_sep NikobusCommand getStatusRequestCommand concode_elem_sep String getName concode_elem_sep void publishStateToNikobus concode_elem_sep long getLastUpdatedTime concode_elem_sep ModuleChannel addChannel concode_elem_sep String getAddress