コード例 #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)));
 }