edu.lehigh.swat.bench.ubt.api
Class Query

java.lang.Object
  |
  +--edu.lehigh.swat.bench.ubt.api.Query

public class Query
extends java.lang.Object


Constructor Summary
Query()
          Constructor.
 
Method Summary
 void addAtom(java.lang.String predicate, java.lang.String[] args)
          Adds an additional atom to this query.
 java.util.Vector getAtoms()
          Gets the constituent atoms.
 java.lang.String getString()
          Gets the original string of the this query.
 void setString(java.lang.String string)
          Sets the original string of this query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query()
Constructor.
Method Detail

getAtoms

public java.util.Vector getAtoms()
Gets the constituent atoms.
Returns:
List of atoms in this query.

addAtom

public void addAtom(java.lang.String predicate,
                    java.lang.String[] args)
Adds an additional atom to this query.
Parameters:
predicate - Name of the atom's predicate
args - List of the atom's arguments

getString

public java.lang.String getString()
Gets the original string of the this query.
Returns:
The original string of this query

setString

public void setString(java.lang.String string)
Sets the original string of this query.
Parameters:
string - The original string of this query.