Class TrueCountThreshold

java.lang.Object
COM.TIBCO.hawk.config.rbengine.rulebase.policy.TrueCountThreshold
All Implemented Interfaces:
TrueConditionPolicy

public class TrueCountThreshold extends Object implements TrueConditionPolicy
A TrueCountThreshold policy indicates that a test should transition to the true state after a certain number of true evaluations of its test expression, the true count threshold.
  • Constructor Details

    • TrueCountThreshold

      public TrueCountThreshold(int trueCount)
      Constructs a TrueCountThreshold policy.
      Parameters:
      trueCount - the policy's true count threshold value
      Throws:
      IllegalArgumentException - if trueCount is not greater than 0.
  • Method Details

    • getTrueCountThreshold

      public int getTrueCountThreshold()
      Returns the true count threshold value of this policy
    • equals

      public boolean equals(Object o)
      Compares two TrueCountThreshold objects for equality.
      Overrides:
      equals in class Object