Class PercentPredicates

java.lang.Object
com.fluxtion.ext.streaming.api.stream.PercentPredicates
All Implemented Interfaces:
Stateful

public class PercentPredicates
extends java.lang.Object
implements Stateful
Predicates for numeric change in a value.
Author:
Greg Higgins [email protected]
  • Nested Class Summary

    Nested classes/interfaces inherited from interface com.fluxtion.ext.streaming.api.Stateful

    Stateful.StatefulNumber<S>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    double previous  
  • Constructor Summary

    Constructors 
    Constructor Description
    PercentPredicates​(double changeBarrier)  
  • Method Summary

    Modifier and Type Method Description
    boolean gt​(double newVal)  
    static com.fluxtion.api.partition.LambdaReflection.SerializableFunction<java.lang.Double,​java.lang.Boolean> gtPercent​(double barrier)  
    boolean lt​(double newVal)  
    static com.fluxtion.api.partition.LambdaReflection.SerializableFunction<java.lang.Double,​java.lang.Boolean> ltPercent​(double barrier)  
    void reset()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.fluxtion.ext.streaming.api.Stateful

    combine, deduct, setBucketCount
  • Field Details

  • Constructor Details

  • Method Details

    • ltPercent

      public static com.fluxtion.api.partition.LambdaReflection.SerializableFunction<java.lang.Double,​java.lang.Boolean> ltPercent​(double barrier)
    • gtPercent

      public static com.fluxtion.api.partition.LambdaReflection.SerializableFunction<java.lang.Double,​java.lang.Boolean> gtPercent​(double barrier)
    • lt

      public boolean lt​(double newVal)
    • gt

      public boolean gt​(double newVal)
    • reset

      public void reset()
      Specified by:
      reset in interface Stateful