Class Criteria


  • public class Criteria
    extends java.lang.Object
    Criteria is a data structure that holds predefined threshold value and its type (UpperBound or LowerBound). To meet criteria, the measured value should be lower(higher) than the predefined threshold value if threshold is defined as UpperBound(LowerBound).
    • Constructor Detail

      • Criteria

        public Criteria​(long threshold,
                        Criteria.BoundType boundType)
        Criteria ctor
        Parameters:
        threshold - the predefined value of threshold
        boundType - specifies whether this threshold is UpperBound or LowerBound.
      • Criteria

        public Criteria()
        Default ctor for mapping JSONObject to object.
    • Method Detail

      • getThresholdValue

        public long getThresholdValue()
        Returns:
        the threshold value associated with this criteria
      • getThreshold

        public long getThreshold()
      • setThreshold

        public void setThreshold​(long threshold)