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

public abstract class Deadband extends Object implements Diagnosable
  • Field Details

  • Constructor Details

    • Deadband

      protected Deadband(Double limit)
  • Method Details

    • getLimit

      public double getLimit()
    • setLimit

      public void setLimit(Double limit)
    • sampleDiagnostics

      public void sampleDiagnostics(DiagnosticsSample sample)
      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 call getSubSample() in order to specify a useful identifier for this object's data.
      Specified by:
      sampleDiagnostics in interface Diagnosable
    • hasChanged

      public Deadband.DeadbandResult hasChanged(QualifiedValue previous, QualifiedValue current)
    • hasChanged

      public Deadband.DeadbandResult hasChanged(Number previous, Number current)
    • arrayPassesDeadband

      protected Deadband.DeadbandResult arrayPassesDeadband(Object previous, Object current)
    • scalarPassesDeadband

      protected abstract boolean scalarPassesDeadband(Object previous, Object current)
      Evaluates whether the deadband has been exceeded. Called after null and quality have been checked, passed the internal values of the qualified values.
    • createAbsolute

      public static Deadband createAbsolute(double limit, boolean isInteger)
    • createPercent

      public static Deadband createPercent(@Nullable Double rangeLow, @Nullable Double rangeHigh, double limit)
    • toString

      public String toString()
      Overrides:
      toString in class Object