public class IOLibrary extends Library
Modifier and Type | Field and Description |
---|---|
protected InputStream |
inputStream |
protected String |
inputStreamName |
protected OutputStream |
outputStream |
protected String |
outputStreamName |
Constructor and Description |
---|
IOLibrary() |
Modifier and Type | Method and Description |
---|---|
boolean |
get_1(Term arg0) |
boolean |
get0_1(Term arg0) |
String |
getTheory()
Gets the theory provided with the library
Empty theory is provided by default.
|
boolean |
nl_0() |
boolean |
print_1(Term arg0) |
boolean |
put_1(Term arg) |
boolean |
rand_float_1(Term t) |
boolean |
rand_int_2(Term argNum,
Term num) |
boolean |
read_1(Term arg0) |
boolean |
see_1(Term arg) |
boolean |
seeing_1(Term t) |
boolean |
seen_0() |
boolean |
tab_1(Number arg) |
boolean |
tell_1(Term arg) |
boolean |
telling_1(Term arg0) |
boolean |
text_from_file_2(Term file_name,
Term text)
reads a source text from a file.
|
boolean |
told_0() |
boolean |
write_1(Term arg0) |
dismiss, evalExpression, getEngine, getName, getPrimitives, getSynonymMap, match, onSolveBegin, onSolveEnd, unify
protected String inputStreamName
protected InputStream inputStream
protected String outputStreamName
protected OutputStream outputStream
public boolean seeing_1(Term t)
public boolean telling_1(Term arg0)
public boolean text_from_file_2(Term file_name, Term text)
It's useful used with agent predicate: text_from_file(File,Source), agent(Source).
public boolean rand_float_1(Term t)
Copyright © 2015. All rights reserved.