Package jisa.control
Class MeanRepeatFilter
- java.lang.Object
-
- jisa.control.MeanRepeatFilter
-
- All Implemented Interfaces:
ReadFilter
public class MeanRepeatFilter extends java.lang.Object implements ReadFilter
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jisa.control.ReadFilter
ReadFilter.Setupable
-
-
Field Summary
Fields Modifier and Type Field Description protected intcountprotected ReadFilter.SetupablesetUpprotected Returnable<java.lang.Double>value
-
Constructor Summary
Constructors Constructor Description MeanRepeatFilter(Returnable<java.lang.Double> v, ReadFilter.Setupable s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()intgetCount()doublegetValue()voidsetCount(int count)voidsetUp()
-
-
-
Field Detail
-
count
protected int count
-
value
protected Returnable<java.lang.Double> value
-
setUp
protected ReadFilter.Setupable setUp
-
-
Constructor Detail
-
MeanRepeatFilter
public MeanRepeatFilter(Returnable<java.lang.Double> v, ReadFilter.Setupable s)
-
-
Method Detail
-
getValue
public double getValue() throws java.io.IOException, DeviceException- Specified by:
getValuein interfaceReadFilter- Throws:
java.io.IOExceptionDeviceException
-
setCount
public void setCount(int count)
- Specified by:
setCountin interfaceReadFilter
-
getCount
public int getCount()
- Specified by:
getCountin interfaceReadFilter
-
clear
public void clear()
- Specified by:
clearin interfaceReadFilter
-
setUp
public void setUp() throws java.io.IOException, DeviceException- Specified by:
setUpin interfaceReadFilter- Throws:
java.io.IOExceptionDeviceException
-
-