public bool Equals(DecisionRule other) { if ((object)other == null) { return(false); } return(this.Output == other.output && this.Expressions.AreEqual(other.Expressions)); }
public int CompareTo(DecisionRule other) { int order = this.Output.CompareTo(other.Output); if (order == 0) { return(this.Expressions.Count.CompareTo(other.Expressions.Count)); } return(order); }
public bool IsInconsistentWith(DecisionRule rule) { //do two rules have same background rule but different outputs? return(Expressions.AreEqual(rule.Expressions) && Output != rule.Output); }