Class WicaChannelValueChangeDetectingFilter

java.lang.Object
ch.psi.wica.services.channel.WicaChannelValueChangeDetectingFilter
All Implemented Interfaces:
WicaChannelValueFilter

@ThreadSafe class WicaChannelValueChangeDetectingFilter extends Object implements WicaChannelValueFilter
A filter that writes a new value to the output list every time the input signal makes a change whose absolute value exceeds the configured deadband.

The filter only operates on values for types WicaChannelType.REAL and WicaChannelType.INTEGER. All other value types in the input list will be passed through unaffected.

Where the values in the input list indicate that the data source is offline then this will result in the transfer of the offline values to the output list. When the data source eventually comes back online then the first online value is also transferred.

In the unlikely situation where successive values from the input list are of different types the first value of the changed type is always transferred to the output list.

  • Constructor Details

    • WicaChannelValueChangeDetectingFilter

      WicaChannelValueChangeDetectingFilter(double deadband)
      Constructs a new instance based on the specified deadband.
      Parameters:
      deadband - defines the absolute change in the input value which must occur in order for the new value to be transferred from the input list to the output list.
  • Method Details