Classes | |
class | QueryError |
class | QueryIterator |
Public Member Functions | |
void | finish () |
boolean | isFinished () |
Iterator< PrologBindings > | iterator () |
PrologQueryProxy (Prolog prolog, String query_str) | |
Protected Member Functions | |
String | makeQueryID () |
Package Attributes | |
ArrayList< PrologBindings > | bindings_ |
boolean | finished_ |
Prolog | prolog_ |
QueryIterator | q_it |
String | query_id_ |
Wrapper class for Prolog queries that provides an iterator to step through the results.
Definition at line 48 of file PrologQueryProxy.java.
edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.PrologQueryProxy | ( | Prolog | prolog, |
String | query_str | ||
) | [inline] |
Send a query to Prolog via the json_prolog interface and provide methods to iterate over the result set.
Definition at line 64 of file PrologQueryProxy.java.
void edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.finish | ( | ) | [inline] |
Finish the Prolog query (i.e. close it).
Definition at line 116 of file PrologQueryProxy.java.
boolean edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.isFinished | ( | ) | [inline] |
Check if the Prolog query is finished
Definition at line 108 of file PrologQueryProxy.java.
Iterator<PrologBindings> edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.iterator | ( | ) | [inline] |
Iterator for the result set of the query
Definition at line 100 of file PrologQueryProxy.java.
String edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.makeQueryID | ( | ) | [inline, protected] |
Create a quasi-unique ID for each query
Definition at line 258 of file PrologQueryProxy.java.
ArrayList<PrologBindings> edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.bindings_ [package] |
Definition at line 53 of file PrologQueryProxy.java.
boolean edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.finished_ [package] |
Definition at line 50 of file PrologQueryProxy.java.
Definition at line 51 of file PrologQueryProxy.java.
Definition at line 54 of file PrologQueryProxy.java.
String edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy.query_id_ [package] |
Definition at line 52 of file PrologQueryProxy.java.