Package ch.psi.wica.services.channel
Class WicaChannelValueLatestValueFilter
java.lang.Object
ch.psi.wica.services.channel.WicaChannelValueLatestValueFilter
- All Implemented Interfaces:
WicaChannelValueFilter
A filter that returns an output list with the most recent N values taken
from the input list.
-
Constructor Summary
ConstructorsConstructorDescriptionWicaChannelValueLatestValueFilter(int maxNumberOfSamples) Constructs a new instance which returns up to the specified maximum number of samples. -
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
-
WicaChannelValueLatestValueFilter
WicaChannelValueLatestValueFilter(int maxNumberOfSamples) Constructs a new instance which returns up to the specified maximum number of samples.- Parameters:
maxNumberOfSamples- - the maximum number of values to include in the output list.
-
-
Method Details
-
apply
Description copied from interface:WicaChannelValueFilterTransforms the values in the input apply to the output apply using some configurable filtering algorithm.- Specified by:
applyin interfaceWicaChannelValueFilter- Parameters:
inputList- the list of values to process.- Returns:
- the list of values that were produced from the processing step.
-
toString
-