Exemple #1
0
        public bool Equals(DecisionRule other)
        {
            if ((object)other == null)
            {
                return(false);
            }

            return(this.Output == other.output &&
                   this.Expressions.AreEqual(other.Expressions));
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public bool IsInconsistentWith(DecisionRule rule)
 {
     //do two rules have same background rule but different outputs?
     return(Expressions.AreEqual(rule.Expressions) && Output != rule.Output);
 }