public final class StepFilter extends DeadbandFilter
ValueFilter.Abstract
NO_POINT_VALUES
Constructor and Description |
---|
StepFilter(Optional<ElapsedTime> timeLimit,
Optional<ElapsedTime> trimUnit,
double deadbangGap,
double deadbandRatio,
double stepSize,
double ceilingGap,
double floorGap)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
protected PointValue |
snap(PointValue pointValue)
Snaps the point value.
|
doFilter, shouldFilter
filter, getHeldPointValue, getPreviousPointValue, getTimeLimit, isDisabled, pointValues, reset, setDisabled, setHeldPointValue, setPreviousPointValue, toString
public StepFilter(@Nonnull Optional<ElapsedTime> timeLimit, @Nonnull Optional<ElapsedTime> trimUnit, double deadbangGap, double deadbandRatio, double stepSize, double ceilingGap, double floorGap)
timeLimit
- The optional time limit.trimUnit
- The optional trim unit.deadbangGap
- The deadband gap.deadbandRatio
- The deadband ratio.stepSize
- The step size.ceilingGap
- The ceiling gap.floorGap
- The floor gap.protected PointValue snap(PointValue pointValue)
snap
in class ValueFilter.Abstract
pointValue
- The point value.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.