info.ephyra.querygeneration
Class QueryGeneration

java.lang.Object
  extended by info.ephyra.querygeneration.QueryGeneration

public class QueryGeneration
extends java.lang.Object

Generates one or more Queries from a previously analyzed question by applying a set of QueryGenerators.

Version:
2006-30-10
Author:
Nico Schlaefer

Field Summary
private static java.util.ArrayList<QueryGenerator> queryGenerators
          QueryGenerator objects used to generate the queries.
 
Constructor Summary
QueryGeneration()
           
 
Method Summary
static void addQueryGenerator(QueryGenerator queryGenerator)
          Registers a QueryGenerator.
static void clearQueryGenerators()
          Unregisters all QueryGenerators.
static Query[] getQueries(AnalyzedQuestion aq)
          Applies the QueryGenerators to an analysed question and returns one or more queries that can be passed to the search module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queryGenerators

private static java.util.ArrayList<QueryGenerator> queryGenerators
QueryGenerator objects used to generate the queries.

Constructor Detail

QueryGeneration

public QueryGeneration()
Method Detail

addQueryGenerator

public static void addQueryGenerator(QueryGenerator queryGenerator)
Registers a QueryGenerator.

Parameters:
queryGenerator - QueryGenerator to add

clearQueryGenerators

public static void clearQueryGenerators()
Unregisters all QueryGenerators.


getQueries

public static Query[] getQueries(AnalyzedQuestion aq)
Applies the QueryGenerators to an analysed question and returns one or more queries that can be passed to the search module.

Parameters:
aq - analyzed question
Returns:
Query objects