Ejemplo n.º 1
0
  /**
   * 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());
  }
Ejemplo n.º 2
0
 /** {@inheritDoc} */
 public void conditionChange(DynamicValueEvent event) {
   // translate a condition change to certain characteristics listeners
   // might be registered for
   processConditionChange(event.getCondition(), event.getTimestamp());
 }