public interface PrologEngine extends PrologDatabase
Modifier and Type | Method and Description |
---|---|
boolean |
abolish(Term term) |
boolean |
allSucceed(List<? extends Term> terms) |
LogtalkEngine |
asLogtalkEngine() |
boolean |
asserta(List<? extends Term> terms)
Assert a list of clauses in the logic database.
|
boolean |
asserta(Term term)
Assert a clause in the logic database.
|
boolean |
assertz(List<? extends Term> terms)
Assert a list of clauses in the logic database.
|
boolean |
assertz(Term term)
Assert a clause in the logic database.
|
Term |
asTerm(String termString) |
Term |
asTerm(String termString,
Jpc context) |
List<Term> |
asTerms(List<String> termsString) |
List<Term> |
asTerms(List<String> termsString,
Jpc context) |
Term |
bagof(Term select,
Term exp) |
Query |
bagof(Term select,
Term exp,
Term all) |
Query |
basicQuery(Term term,
boolean errorHandledQuery,
Jpc context) |
boolean |
cd(String path) |
boolean |
cd(Term path) |
Query |
clause(Term head,
Term body) |
void |
close()
Close the logic engine and free associated resources.
|
boolean |
command(String command) |
boolean |
command(String command,
Jpc context) |
boolean |
command(String command,
List<?> arguments) |
boolean |
command(String command,
List<?> arguments,
Jpc context) |
Query |
currentOp(Term priority,
Term specifier,
Term operator) |
String |
currentPrologFlag(Flag flag) |
Query |
currentPrologFlag(Flag flag,
String flagValue) |
Query |
currentPrologFlag(Term flag,
Term flagValue) |
boolean |
ensureLoaded(List<? extends Term> terms) |
boolean |
ensureLoaded(String... resources) |
boolean |
ensureLoaded(Term... terms) |
Term |
findall(Term select,
Term exp) |
Query |
findall(Term select,
Term exp,
Term all) |
boolean |
flushOutput() |
Query |
forall(Term generator,
Term test) |
OperatorsContext |
getOperatorsContext() |
boolean |
isBinaryOperator(String op) |
boolean |
isCloseable() |
boolean |
isUnaryOperator(String op) |
void |
loadJpc() |
void |
loadJpcForLogtalk() |
String |
prologDialect() |
Query |
query(String goalString) |
Query |
query(String goalString,
Jpc context) |
Query |
query(String goalString,
List<?> arguments) |
Query |
query(String goalString,
List<?> arguments,
boolean errorHandledQuery,
Jpc context) |
Query |
query(String goalString,
List<?> arguments,
Jpc context) |
Query |
query(Term goal) |
Query |
query(Term goal,
Jpc context) |
Query |
query(Term goal,
List<?> arguments,
boolean errorHandledQuery,
Jpc context) |
Query |
retract(Term term) |
boolean |
retractAll(Term term) |
Term |
setof(Term select,
Term exp) |
Query |
setof(Term select,
Term exp,
Term all) |
boolean |
setPrologFlag(Flag flag,
String flagValue) |
boolean |
setPrologFlag(Term flag,
Term flagValue) |
ThreadModel |
threadModel() |
Term |
unify(List<? extends Term> terms) |
Term |
unify(Term... terms) |
LogtalkEngine |
withLogtalk() |
void close()
boolean isCloseable()
ThreadModel threadModel()
boolean command(String command)
Query basicQuery(Term term, boolean errorHandledQuery, Jpc context)
Term asTerm(String termString)
termString
- String prologDialect()
OperatorsContext getOperatorsContext()
boolean isBinaryOperator(String op)
boolean isUnaryOperator(String op)
boolean cd(Term path)
boolean cd(String path)
boolean asserta(Term term)
PrologDatabase
asserta
in interface PrologDatabase
boolean assertz(Term term)
PrologDatabase
assertz
in interface PrologDatabase
Query retract(Term term)
retract
in interface PrologDatabase
boolean retractAll(Term term)
retractAll
in interface PrologDatabase
boolean abolish(Term term)
abolish
in interface PrologDatabase
Query clause(Term head, Term body)
clause
in interface PrologDatabase
boolean asserta(List<? extends Term> terms)
terms
- the terms to assertboolean assertz(List<? extends Term> terms)
terms
- the terms to assertboolean ensureLoaded(Term... terms)
boolean ensureLoaded(String... resources)
boolean flushOutput()
LogtalkEngine withLogtalk()
LogtalkEngine asLogtalkEngine()
void loadJpc()
void loadJpcForLogtalk()
Copyright © 2014. All rights reserved.