Пример #1
0
        public Antecedent AND(Judgment judgment)
        {
            JudgmentLine line = new JudgmentLine(LogicalConnection.AND, new List <Judgment> {
                judgment
            });

            antecedent.Add(line);

            return(this);
        }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (obj is Judgment)
            {
                Judgment judgment = obj as Judgment;

                if (Title == judgment.Title &&
                    FuzzyValue == judgment.FuzzyValue)
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                throw new ArgumentException();
            }
        }
Пример #3
0
 public bool Contains(Judgment judgment)
 {
     return(this.Judgments.Contains(judgment));
 }
Пример #4
0
 public bool Contains(Judgment judgment)
 {
     return(antecedent.Any(le => le.Contains(judgment)));
 }