Classes | Public Member Functions | Protected Member Functions | Package Attributes
edu.tum.cs.ias.knowrob.json_prolog.PrologQueryProxy Class Reference

List of all members.

Classes

class  QueryError
class  QueryIterator

Public Member Functions

void finish ()
boolean isFinished ()
Iterator< PrologBindingsiterator ()
 PrologQueryProxy (Prolog prolog, String query_str)

Protected Member Functions

String makeQueryID ()

Package Attributes

ArrayList< PrologBindingsbindings_
boolean finished_
Prolog prolog_
QueryIterator q_it
String query_id_

Detailed Description

Wrapper class for Prolog queries that provides an iterator to step through the results.

Author:
Moritz Tenorth, tenorth@cs.tum.edu

Definition at line 48 of file PrologQueryProxy.java.


Constructor & Destructor Documentation

Send a query to Prolog via the json_prolog interface and provide methods to iterate over the result set.

Parameters:
prologInstance of the Prolog client class
query_strQuery as Prolog query string

Definition at line 64 of file PrologQueryProxy.java.


Member Function Documentation

Finish the Prolog query (i.e. close it).

Definition at line 116 of file PrologQueryProxy.java.

Check if the Prolog query is finished

Definition at line 108 of file PrologQueryProxy.java.

Iterator for the result set of the query

Definition at line 100 of file PrologQueryProxy.java.

Create a quasi-unique ID for each query

Returns:
The query ID

Definition at line 258 of file PrologQueryProxy.java.


Member Data Documentation

Definition at line 53 of file PrologQueryProxy.java.

Definition at line 50 of file PrologQueryProxy.java.

Definition at line 51 of file PrologQueryProxy.java.

Definition at line 54 of file PrologQueryProxy.java.

Definition at line 52 of file PrologQueryProxy.java.


The documentation for this class was generated from the following file:


json_prolog
Author(s): Lorenz Moesenlechner, Moritz Tenorth
autogenerated on Sat Dec 28 2013 17:10:00