
public abstract class LimitAlgorithm extends Object
| Constructor and Description |
|---|
LimitAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
adjust(double currentValue,
LimitsInterface limits)
Optional method which adjust the limits relative to the current value of the item
being monitored.
|
LimitsInterface |
getInitialLimits() |
double |
getInitialValue() |
LimitsInterface |
getTargetLimits() |
double |
getTargetValue() |
void |
init(List<Double> parameters,
double initialValue,
LimitsInterface initialLimits,
double targetValue,
LimitsInterface targetLimits)
Initialize the algorithm
|
public void init(List<Double> parameters, double initialValue, LimitsInterface initialLimits, double targetValue, LimitsInterface targetLimits)
parameters - The algorithm specific limit parametersinitialValue - The initial valueinitialLimits - The initial limits interface, used for setting limitstargetValue - The target value for the algorithm. Some algorithms use this
for computing the limits (e.g. DeltaLimitAlgorithm).targetLimits - The limits at target.public LimitsInterface getInitialLimits()
public LimitsInterface getTargetLimits()
public double getTargetValue()
public double getInitialValue()
public abstract void adjust(double currentValue,
LimitsInterface limits)
currentValue - Copyright © 2021 LSST. All rights reserved.