de.dfki.lt.hog
Class Query

java.lang.Object
  extended by de.dfki.lt.hog.Query

public class Query
extends java.lang.Object

A small class for storing query specific data such as span and depth. Contains same field values as analyse methods of MoCoMan which there are: a session ID, an annotation ID, a span and a depth
To test whether an incoming query has been processed already, MoCoMan calls MoCoMan.queryProcessed(java.lang.String, java.lang.String, int, int, int) for all Query objects in its QueryQueue.


Constructor Summary
Query(java.lang.String sessionID, java.lang.String annotationID, int startSpan, int endSpan, int depth)
          Initialises this Query object with given parameters equal to those of analyse() methods MoCoMan provides.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Query

public Query(java.lang.String sessionID,
             java.lang.String annotationID,
             int startSpan,
             int endSpan,
             int depth)
Initialises this Query object with given parameters equal to those of analyse() methods MoCoMan provides.

Parameters:
sessionID - identification of current session
annotationID - identification of processed annotation
startSpan - first character position in given annotation
endSpan - last character position in given annotation
depth - depth of current analysis