Package aima.core.logic.fol.parsing.ast

Examples of aima.core.logic.fol.parsing.ast.Sentence.accept()


  }

  public Object visitNotSentence(NotSentence notSentence, Object arg) {
    Sentence negated = notSentence.getNegated();

    return new NotSentence((Sentence) negated.accept(this, arg));
  }

  public Object visitConnectedSentence(ConnectedSentence sentence, Object arg) {
    Sentence alpha = (Sentence) sentence.getFirst().accept(this, arg);
    Sentence beta = (Sentence) sentence.getSecond().accept(this, arg);
View Full Code Here


          skolemSubst.put(eVar, new Constant(skolemConstantName));
        }
      }

      Sentence skolemized = substVisitor.subst(skolemSubst, quantified);
      return skolemized.accept(this, arg);
    }

    // Drop universal quantifiers.
    if (Quantifiers.isFORALL(sentence.getQuantifier())) {
      // Add to the universal scope so that
View Full Code Here

    first.accept(this, arg);
    if (Connectors.isAND(sentence.getConnector())) {
      ad.clauses.add(new Clause());
    }
    second.accept(this, arg);

    return sentence;
  }

  public Object visitQuantifiedSentence(QuantifiedSentence sentence,
View Full Code Here

  }

  public Object visitNotSentence(NotSentence notSentence, Object arg) {
    Sentence negated = notSentence.getNegated();

    return new NotSentence((Sentence) negated.accept(this, arg));
  }

  public Object visitConnectedSentence(ConnectedSentence sentence, Object arg) {
    Sentence alpha = (Sentence) sentence.getFirst().accept(this, arg);
    Sentence beta = (Sentence) sentence.getSecond().accept(this, arg);
View Full Code Here

          skolemSubst.put(eVar, new Constant(skolemConstantName));
        }
      }

      Sentence skolemized = substVisitor.subst(skolemSubst, quantified);
      return skolemized.accept(this, arg);
    }

    // Drop universal quantifiers.
    if (Quantifiers.isFORALL(sentence.getQuantifier())) {
      // Add to the universal scope so that
View Full Code Here

    first.accept(this, arg);
    if (Connectors.isAND(sentence.getConnector())) {
      ad.clauses.add(new Clause());
    }
    second.accept(this, arg);

    return sentence;
  }

  public Object visitQuantifiedSentence(QuantifiedSentence sentence,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.