|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gov.nist.nlpir.irf.query.QueryCondition
Holds information on a query condition, i.e. a particular aspect of a query. This information includes the query feature itself, the number of times the feature occurs in the query, the way(s) in which the feature is to be evaluated against the document index and the query document in which the query feature occurs.
Field Summary | |
private DataElem |
feature
The query feature (e.g. |
private int |
freqOfFeatureInQuery
The frequency of the query feature in the query. |
private int |
maxFreqOfAnyFeatureInQuery
The maximum frequency of any feature in the query. |
private QueryModalityUnit |
QMU
The QueryModalityUnit which describes the actions to be performed regarding this query condition. |
private ProxyDocument |
queryDoc
The document containing the query from which this query condition is derived. |
private DataElem |
queryDocAttr
The query document attribute. |
Constructor Summary | |
QueryCondition(ProxyDocument q,
DataElem a,
DataElem f,
QueryModalityUnit unit,
int freq,
int maxf)
Creates a QueryCondition for the supplied query, query document type, feature, and QueryModalityUnit. |
|
QueryCondition(QueryModalityUnit unit)
Creates a QueryCondition for the QueryModalityUnit and initializes freqOfFeatureInQuery and maxFreqOfAnyFeatureInQuery to 1. |
Method Summary | |
DataElem |
getFeature()
Gets the query feature. |
int |
getFreqOfFeatureInQuery()
Gets the frequency of the feature in the query. |
int |
getMaxFreqOfAnyFeatureInQuery()
Gets the maximum frequency of any feature in the query. |
ProxyDocument |
getQueryDoc()
Gets the query document. |
DataElem |
getQueryDocAttr()
Gets the query document attribute. |
QueryModalityUnit |
getQueryModalityUnit()
Gets the Query Modality Unit of the QueryCondition. |
void |
setFeature(DataElem f)
Sets the query feature. |
void |
setFreqOfFeatureInQuery(int f)
Sets the frequency of the feature in the query. |
void |
setMaxFreqOfAnyFeatureInQuery(int f)
Sets the maximum frequency of any feature in the query. |
void |
setQueryDoc(ProxyDocument q)
Sets the query document. |
void |
setQueryDocAttr(DataElem a)
Sets QueryDocAttr to a. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private ProxyDocument queryDoc
private DataElem queryDocAttr
private DataElem feature
private QueryModalityUnit QMU
private int freqOfFeatureInQuery
private int maxFreqOfAnyFeatureInQuery
Constructor Detail |
public QueryCondition(QueryModalityUnit unit)
unit
- A QueryModalityUnit.public QueryCondition(ProxyDocument q, DataElem a, DataElem f, QueryModalityUnit unit, int freq, int maxf)
q
- Query document.a
- Query document attribute.f
- A feature.unit
- A QueryModalityUnit.freq
- Frequency of feature in query.maxf
- Maximum frequency of any feature in query.Method Detail |
public void setQueryDoc(ProxyDocument q)
q
- Query document.public ProxyDocument getQueryDoc()
public void setQueryDocAttr(DataElem a)
a
- Query document attribute.public DataElem getQueryDocAttr()
public void setFeature(DataElem f)
f
- a feature.public DataElem getFeature()
public QueryModalityUnit getQueryModalityUnit()
public int getFreqOfFeatureInQuery()
public void setFreqOfFeatureInQuery(int f)
f
- Frequency of feature in query.public int getMaxFreqOfAnyFeatureInQuery()
public void setMaxFreqOfAnyFeatureInQuery(int f)
f
- Maximum frequency of any feature in query.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |