protected abstract static class MinimumMaximumAccessConstraint.MinMaxThresholdEvaluator extends AccessConstraintEvaluator
MinimumMaximumAccessConstraint
.DefaultTolerance
Modifier | Constructor and Description |
---|---|
protected |
MinMaxThresholdEvaluator(EvaluatorGroup group,
MinimumMaximumAccessConstraint constraint,
boolean isMinimum)
Initializes a new instance based on a given minimum or maximum threshold value.
|
protected |
MinMaxThresholdEvaluator(MinimumMaximumAccessConstraint.MinMaxThresholdEvaluator existingInstance,
CopyContext context)
Initializes a new instance as a copy of an existing instance.
|
Modifier and Type | Method and Description |
---|---|
protected double |
getConstraintValueFromFunctionValue(double functionValue)
|
getCachingWrapper, getDebuggingLogger, getQueryEvaluator, getTolerance, isSatisfied, setDebuggingLogger, setTolerance
evaluate, evaluate, evaluate, evaluate, evaluate, evaluate, getAvailabilityIntervals, getAvailabilityIntervals, getGroup, getIsTimeVarying, isAvailable, updateEvaluatorReferences
clone, dispose, dispose, getIsThreadSafe, getNextSampleSuggestion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIsThreadSafe
clone
close, dispose
protected MinMaxThresholdEvaluator(@Nonnull EvaluatorGroup group, @Nonnull MinimumMaximumAccessConstraint constraint, boolean isMinimum)
group
- The group that contains this evaluator.constraint
- The constraint which determines the threshold information.isMinimum
- Flag to indicate whether to evaluate the minimum or maximum threshold.ArgumentNullException
- Thrown when group
or constraint
is null
.protected MinMaxThresholdEvaluator(@Nonnull MinimumMaximumAccessConstraint.MinMaxThresholdEvaluator existingInstance, @Nonnull CopyContext context)
See ICloneWithContext.clone(CopyContext)
for more information about how to implement this constructor
in a derived class.
existingInstance
- The existing instance to copy.context
- A CopyContext
that controls the depth of the copy.ArgumentNullException
- Thrown when existingInstance
or context
is null
.protected final double getConstraintValueFromFunctionValue(double functionValue)
MinimumValue
(get
/ set
)
and MaximumValue
(get
/ set
), and less than zero when it is outside that range. The evaluator
of any constraint that derives from MinimumMaximumAccessConstraint
should call this
method in its Evaluate method with the raw function value and return the value that this method
returns.functionValue
- The raw function value.