/** * A change of the "normal" value has been reported and needs to be forwarded. * * @param event the event that reports the value update */ private void doHandleValueUpdate(DynamicValueEvent event) { // ... forward the value doForwardValue(event.getValue(), event.getTimestamp()); // ... forward an additional "timestamp" characteristic doForwardCharacteristic( event.getTimestamp(), event.getTimestamp(), CharacteristicInfo.C_TIMESTAMP.getName()); }
/** {@inheritDoc} */ public void conditionChange(DynamicValueEvent event) { // translate a condition change to certain characteristics listeners // might be registered for processConditionChange(event.getCondition(), event.getTimestamp()); }