Class Deadband
java.lang.Object
com.inductiveautomation.ignition.gateway.tags.evaluation.util.Deadband
- All Implemented Interfaces:
Diagnosable
- Direct Known Subclasses:
Deadband.AbsoluteDeadbandDouble
,Deadband.AbsoluteDeadbandInt
,Deadband.NoDeadband
,Deadband.PercentDeadband
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Provides the state of the deadband, whether or not the value has changed.protected static class
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected double
static Deadband
static final Deadband.DeadbandResult
static final Deadband.DeadbandResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Deadband.DeadbandResult
arrayPassesDeadband
(Object previous, Object current) static Deadband
createAbsolute
(double limit, boolean isInteger) static Deadband
createPercent
(Double rangeLow, Double rangeHigh, double limit) double
getLimit()
hasChanged
(QualifiedValue previous, QualifiedValue current) hasChanged
(Number previous, Number current) void
sampleDiagnostics
(DiagnosticsSample sample) Provides the sample upon which the object can set diagnostics information.protected abstract boolean
scalarPassesDeadband
(Object previous, Object current) Evaluates whether the deadband has been exceeded.void
toString()
-
Field Details
-
NO_DEADBAND
-
SCALAR_YES
-
SCALAR_NO
-
limit
protected double limit
-
-
Constructor Details
-
Deadband
-
-
Method Details
-
getLimit
public double getLimit() -
setLimit
-
sampleDiagnostics
Description copied from interface:Diagnosable
Provides the sample upon which the object can set diagnostics information. It is expected that the calling object will first callgetSubSample()
in order to specify a useful identifier for this object's data.- Specified by:
sampleDiagnostics
in interfaceDiagnosable
-
hasChanged
-
hasChanged
-
arrayPassesDeadband
-
scalarPassesDeadband
Evaluates whether the deadband has been exceeded. Called after null and quality have been checked, passed the internal values of the qualified values. -
createAbsolute
-
createPercent
-
toString
-