Class Open
- java.lang.Object
-
- org.projog.core.predicate.AbstractSingleResultPredicate
-
- org.projog.core.predicate.builtin.io.Open
-
- All Implemented Interfaces:
KnowledgeBaseConsumer,PredicateFactory
public final class Open extends AbstractSingleResultPredicate
open(X,Y,Z)- opens a file.Xis an atom representing the name of the file to open.Yis an atom that should have either the valuereadto open the file for reading from orwriteto open the file for writing to.Zis instantiated byopento a special term that must be referred to in subsequent commands in order to access the stream.
-
-
Constructor Summary
Constructors Constructor Description Open()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanevaluate(Term fileNameAtom, Term operationAtom, Term variableToAssignTo)private AtomopenInput(java.lang.String fileName)private AtomopenOutput(java.lang.String fileName)-
Methods inherited from class org.projog.core.predicate.AbstractSingleResultPredicate
evaluate, evaluate, evaluate, evaluate, evaluate, getArithmeticOperators, getFileHandles, getKnowledgeBase, getOperands, getPredicate, getPredicates, getProjogListeners, getSpyPoints, getTermFormatter, init, isRetryable, setKnowledgeBase
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.projog.core.predicate.PredicateFactory
isAlwaysCutOnBacktrack
-
-
-
-
Field Detail
-
READ
private static final java.lang.String READ
- See Also:
- Constant Field Values
-
WRITE
private static final java.lang.String WRITE
- See Also:
- Constant Field Values
-
-