Package ch.psi.wica.services.channel
Class WicaChannelValueFixedSamplingCycleFilter
java.lang.Object
ch.psi.wica.services.channel.WicaChannelValueFixedSamplingCycleFilter
- All Implemented Interfaces:
WicaChannelValueFilter
@NotThreadSafe
class WicaChannelValueFixedSamplingCycleFilter
extends Object
implements WicaChannelValueFilter
A filter that returns an output list which includes one-in-every-M values
taken from the input list over successive invocations.
-
Constructor Summary
ConstructorsConstructorDescriptionWicaChannelValueFixedSamplingCycleFilter
(int samplingCycleLength) Constructs a new instance with the specified sampling cycle length. -
Method Summary
Modifier and TypeMethodDescriptionapply
(List<WicaChannelValue> inputList) Transforms the values in the input apply to the output apply using some configurable filtering algorithm.toString()
-
Constructor Details
-
WicaChannelValueFixedSamplingCycleFilter
WicaChannelValueFixedSamplingCycleFilter(int samplingCycleLength) Constructs a new instance with the specified sampling cycle length.- Parameters:
samplingCycleLength
- - the sampling cycle length. (ie the value of M in this 1-in-every-M sampler).
-
-
Method Details
-
apply
Description copied from interface:WicaChannelValueFilter
Transforms the values in the input apply to the output apply using some configurable filtering algorithm.- Specified by:
apply
in interfaceWicaChannelValueFilter
- Parameters:
inputList
- the list of values to process.- Returns:
- the list of values that were produced from the processing step.
-
toString
-