accept() 공개 추상적인 메소드

public abstract accept ( PLVisitor plv, Object arg ) : Object
plv PLVisitor
arg Object
리턴 Object
예제 #1
0
 public List<Symbol> getSymbolsIn(Sentence s)
 {
     if (s == null)
     {// empty knowledge bases == null fix this later
         return new List<Symbol>();
     }
     return (List<Symbol>)s.accept(this, new List<Symbol>());
 }
예제 #2
0
 //
 // PRIVATE METHODS
 //
 private List<Sentence> processSubTerm(Sentence s, List<Sentence> soFar)
 {
     if (detector.containsEmbeddedAnd(s))
     {
         return (List<Sentence>)s.accept(this, soFar);
     }
     else
     {
         soFar.Add(s);
         return soFar;
     }
 }
예제 #3
0
 public List<Sentence> getClausesFrom(Sentence sentence)
 {
     List<Sentence> set = new List<Sentence>();
     if (sentence is Symbol)
     {
         set.Add(sentence);
     }
     else if (sentence is UnarySentence)
     {
         set.Add(sentence);
     }
     else
     {
         set = (List<Sentence>)sentence.accept(this, set);
     }
     return set;
 }
 public List<Symbol> getNegativeSymbolsIn(Sentence s)
 {
     return (List<Symbol>)s.accept(this, new List<Symbol>());
 }
예제 #5
0
 public bool containsEmbeddedAnd(Sentence s)
 {
     return (bool)s.accept(this, null);
 }
예제 #6
0
 private Sentence step(Sentence s)
 {
     return (Sentence)s.accept(this, null);
 }
 public List<Symbol> getPositiveSymbolsIn(Sentence sentence)
 {
     return (List<Symbol>)sentence.accept(this, new List<Symbol>());
 }
예제 #8
0
	public bool isUnknown(Sentence clause) {
		return null == clause.accept(this, null);
	}
예제 #9
0
	public bool isFalse(Sentence clause) {
		return clause.accept(this, null).Equals(false);
	}
예제 #10
0
	public bool isTrue(Sentence clause) {
		return clause.accept(this, null).Equals(true);
	}