AIMA.Core.Logic.Propositional.Algorithms.KnowledgeBase.tell C# (CSharp) Method

tell() public method

public tell ( String aSentence ) : void
aSentence String
return void
        public void tell(String aSentence)
        {
            Sentence sentence = (Sentence)parser.parse(aSentence);
            if (!(sentences.Contains(sentence)))
            {
                sentences.Add(sentence);
            }
        }

Usage Example

Beispiel #1
0
 public bool plResolution(String kbs, String alphaString)
 {
     KnowledgeBase kb = new KnowledgeBase();
     kb.tell(kbs);
     Sentence alpha = (Sentence)new PEParser().parse(alphaString);
     return plResolution(kb, alpha);
 }
All Usage Examples Of AIMA.Core.Logic.Propositional.Algorithms.KnowledgeBase::tell