public abstract class AbstractQueryMaker extends Object implements QueryMaker
prepareQueries() method.| Modifier and Type | Field and Description |
|---|---|
protected Config |
config |
protected int |
qnum |
protected Query[] |
queries |
| Constructor and Description |
|---|
AbstractQueryMaker() |
| Modifier and Type | Method and Description |
|---|---|
Query |
makeQuery()
Create the next query
|
Query |
makeQuery(int size)
Create the next query, of the given size.
|
protected int |
nextQnum() |
protected abstract Query[] |
prepareQueries() |
String |
printQueries()
Print the queries
|
void |
resetInputs()
Reset inputs so that the test run would behave, input wise, as if it just started.
|
void |
setConfig(Config config)
Set the properties
|
protected int qnum
protected Query[] queries
protected Config config
public void resetInputs()
QueryMakerresetInputs in interface QueryMakerpublic void setConfig(Config config) throws Exception
QueryMakersetConfig in interface QueryMakerExceptionpublic String printQueries()
QueryMakerprintQueries in interface QueryMakerpublic Query makeQuery() throws Exception
QueryMakermakeQuery in interface QueryMakerExceptionprotected int nextQnum()
public Query makeQuery(int size) throws Exception
QueryMakermakeQuery in interface QueryMakersize - the size of the query - number of terms, etc.Exception - if cannot make the query, or if size>0 was specified but this feature is not supported.