test_class.file: bundles/org.openhab.core.thing/src/test/java/org/openhab/core/thing/internal/profiles/SystemOffsetProfileTest.java
test_class.identifier: SystemOffsetProfileTest
test_case.body: @Test
      public void testDecimalTypeOnCommandFromHandler() {
          ProfileCallback callback = mock(ProfileCallback.class);
          SystemOffsetProfile offsetProfile = createProfile(callback, "3");
  
          Command cmd = new DecimalType(23);
          offsetProfile.onCommandFromHandler(cmd);
  
          ArgumentCaptor<Command> capture = ArgumentCaptor.forClass(Command.class);
          verify(callback, times(1)).sendCommand(capture.capture());
  
          Command result = capture.getValue();
          DecimalType decResult = (DecimalType) result;
          assertEquals(26, decResult.intValue());
      }
test_case.class_method_signature: SystemOffsetProfileTest.testDecimalTypeOnCommandFromHandler()
test_case.full_signature: @Test public void testDecimalTypeOnCommandFromHandler()
test_case.identifier: testDecimalTypeOnCommandFromHandler
test_case.invocations: mock createProfile onCommandFromHandler forClass sendCommand verify times capture getValue assertEquals intValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDecimalTypeOnCommandFromHandler()
focal_class.declarator: ZERO_CELSIUS_IN_KELVIN = new QuantityType<>(0,
              SIUnits.CELSIUS).toUnit(SmartHomeUnits.KELVIN)
focal_class.modifier: private static final @Nullable
focal_class.original_string: private static final @Nullable QuantityType<Temperature> ZERO_CELSIUS_IN_KELVIN = new QuantityType<>(0,
              SIUnits.CELSIUS).toUnit(SmartHomeUnits.KELVIN);
focal_class.type: QuantityType<Temperature>
focal_class.var_name: ZERO_CELSIUS_IN_KELVIN
focal_class.declarator: ZERO_FAHRENHEIT_IN_KELVIN = new QuantityType<>(0,
              ImperialUnits.FAHRENHEIT).toUnit(SmartHomeUnits.KELVIN)
focal_class.modifier: private static final @Nullable
focal_class.original_string: private static final @Nullable QuantityType<Temperature> ZERO_FAHRENHEIT_IN_KELVIN = new QuantityType<>(0,
              ImperialUnits.FAHRENHEIT).toUnit(SmartHomeUnits.KELVIN);
focal_class.type: QuantityType<Temperature>
focal_class.var_name: ZERO_FAHRENHEIT_IN_KELVIN
focal_class.declarator: logger = LoggerFactory.getLogger(SystemOffsetProfile.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger logger = LoggerFactory.getLogger(SystemOffsetProfile.class);
focal_class.type: Logger
focal_class.var_name: logger
focal_class.declarator: OFFSET_PARAM = "offset"
focal_class.modifier: private static final
focal_class.original_string: private static final String OFFSET_PARAM = "offset";
focal_class.type: String
focal_class.var_name: OFFSET_PARAM
focal_class.declarator: callback
focal_class.modifier: private final
focal_class.original_string: private final ProfileCallback callback;
focal_class.type: ProfileCallback
focal_class.var_name: callback
focal_class.declarator: context
focal_class.modifier: private final
focal_class.original_string: private final ProfileContext context;
focal_class.type: ProfileContext
focal_class.var_name: context
focal_class.declarator: offset
focal_class.modifier: private @Nullable
focal_class.original_string: private @Nullable QuantityType<?> offset;
focal_class.type: QuantityType<?>
focal_class.var_name: offset
focal_class.file: bundles/org.openhab.core.thing/src/main/java/org/openhab/core/thing/internal/profiles/SystemOffsetProfile.java
focal_class.identifier: SystemOffsetProfile
focal_class.interfaces: implements StateProfile
focal_class.class_method_signature: SystemOffsetProfile.SystemOffsetProfile(ProfileCallback callback, ProfileContext context)
focal_class.full_signature: public  SystemOffsetProfile(ProfileCallback callback, ProfileContext context)
focal_class.identifier: SystemOffsetProfile
focal_class.modifiers: public
focal_class.parameters: (ProfileCallback callback, ProfileContext context)
focal_class.signature:  SystemOffsetProfile(ProfileCallback callback, ProfileContext context)
focal_class.class_method_signature: SystemOffsetProfile.getProfileTypeUID()
focal_class.full_signature: @Override public ProfileTypeUID getProfileTypeUID()
focal_class.identifier: getProfileTypeUID
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: ProfileTypeUID
focal_class.signature: ProfileTypeUID getProfileTypeUID()
focal_class.class_method_signature: SystemOffsetProfile.onStateUpdateFromItem(State state)
focal_class.full_signature: @Override public void onStateUpdateFromItem(State state)
focal_class.identifier: onStateUpdateFromItem
focal_class.modifiers: @Override public
focal_class.parameters: (State state)
focal_class.return: void
focal_class.signature: void onStateUpdateFromItem(State state)
focal_class.class_method_signature: SystemOffsetProfile.onCommandFromItem(Command command)
focal_class.full_signature: @Override public void onCommandFromItem(Command command)
focal_class.identifier: onCommandFromItem
focal_class.modifiers: @Override public
focal_class.parameters: (Command command)
focal_class.return: void
focal_class.signature: void onCommandFromItem(Command command)
focal_class.class_method_signature: SystemOffsetProfile.onCommandFromHandler(Command command)
focal_class.full_signature: @Override public void onCommandFromHandler(Command command)
focal_class.identifier: onCommandFromHandler
focal_class.modifiers: @Override public
focal_class.parameters: (Command command)
focal_class.return: void
focal_class.signature: void onCommandFromHandler(Command command)
focal_class.class_method_signature: SystemOffsetProfile.onStateUpdateFromHandler(State state)
focal_class.full_signature: @Override public void onStateUpdateFromHandler(State state)
focal_class.identifier: onStateUpdateFromHandler
focal_class.modifiers: @Override public
focal_class.parameters: (State state)
focal_class.return: void
focal_class.signature: void onStateUpdateFromHandler(State state)
focal_class.class_method_signature: SystemOffsetProfile.applyOffset(Type state, boolean towardsItem)
focal_class.full_signature: @SuppressWarnings({ "rawtypes", "unchecked" }) private Type applyOffset(Type state, boolean towardsItem)
focal_class.identifier: applyOffset
focal_class.modifiers: @SuppressWarnings({ "rawtypes", "unchecked" }) private
focal_class.parameters: (Type state, boolean towardsItem)
focal_class.return: Type
focal_class.signature: Type applyOffset(Type state, boolean towardsItem)
focal_class.class_method_signature: SystemOffsetProfile.handleTemperature(QuantityType<Temperature> qtState,
              QuantityType<Temperature> offset)
focal_class.full_signature: private @Nullable QuantityType<Temperature> handleTemperature(QuantityType<Temperature> qtState,
              QuantityType<Temperature> offset)
focal_class.identifier: handleTemperature
focal_class.modifiers: private @Nullable
focal_class.parameters: (QuantityType<Temperature> qtState,
              QuantityType<Temperature> offset)
focal_class.return: QuantityType<Temperature>
focal_class.signature: QuantityType<Temperature> handleTemperature(QuantityType<Temperature> qtState,
              QuantityType<Temperature> offset)
focal_method.body: @Override
      public void onCommandFromHandler(Command command) {
          callback.sendCommand((Command) applyOffset(command, true));
      }
focal_method.class_method_signature: SystemOffsetProfile.onCommandFromHandler(Command command)
focal_method.full_signature: @Override public void onCommandFromHandler(Command command)
focal_method.identifier: onCommandFromHandler
focal_method.invocations: sendCommand applyOffset
focal_method.modifiers: @Override public
focal_method.parameters: (Command command)
focal_method.return: void
focal_method.signature: void onCommandFromHandler(Command command)