Class Open
java.lang.Object
org.projog.core.predicate.AbstractSingleResultPredicate
org.projog.core.predicate.builtin.io.Open
- All Implemented Interfaces:
KnowledgeBaseConsumer, PredicateFactory
open(X,Y,Z) - opens a file.
X is an atom representing the name of the file to open. Y is an atom that should have
either the value read to open the file for reading from or write to open the file for
writing to. Z is instantiated by open to a special term that must be referred to in
subsequent commands in order to access the stream.
-
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
-
Open
public Open()
-
-
Method Details
-
evaluate
- Overrides:
evaluatein classAbstractSingleResultPredicate
-