Class WriteCanonical
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.io.WriteCanonical
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
write_canonical(X) - writes a term to the output stream.
Writes the term X to the current output stream. write_canonical does not take account of
current operator declarations - thus any structures are printed out with the functor first and the arguments in
brackets.
Succeeds only once.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBaseMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PredicateFactory
isAlwaysCutOnBacktrack, preprocess
-
Constructor Details
-
WriteCanonical
public WriteCanonical()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-