code: boolean activatesWith(double activationDegree) {
          //favour if-then-return over switch to avoid new file Threshold$1.class
          if (Comparison.LessThan == this.comparison) {
              return Op.isLt(activationDegree, getValue());
          }
          if (Comparison.LessThanOrEqualTo == this.comparison) {
              return Op.isLE(activationDegree, getValue());
          }
          if (Comparison.EqualTo == this.comparison) {
              return Op.isEq(activationDegree, getValue());
          }
          if (Comparison.NotEqualTo == this.comparison) {
              return !Op.isEq(activationDegree, getValue());
          }
          if (Comparison.GreaterThanOrEqualTo == this.comparison) {
              return Op.isGE(activationDegree, getValue());
          }
          if (Comparison.GreaterThan == this.comparison) {
              return Op.isGt(activationDegree, getValue());
          }
          return false;
      }
docs: Returns whether the activation method will activate a rule with the given
  activation degree
  
  @param activationDegree an activation degree
  @return whether the comparison equation is satisfied with the activation
  degree and the threshold