public class QProx extends Query
MODEL_BOOLEAN, MODEL_FUZZY_M, MODEL_VECTOR| Constructor and Description |
|---|
QProx(QTerm a,
QTerm b)
Constructor for the QProx object.
|
QProx(QTerm a,
QTerm b,
String num)
Constructor for the QProx object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTerms(HashSet<Token> to)
Adds all terms in this query into the given HashSet.
|
Query |
applyCWI(CWI cwi)
Return a QProx object with the given CWI applied to both sides of
the query.
|
Runner |
attach(Rider r)
Return an ProxRunner which is the binary representation of this
clausula.
|
Node |
explain(Document doc)
Description of the Method
|
String |
getNodeName()
Gets the nodeName attribute of the QProx object
|
boolean |
isContradictory()
By default, queries are contradictory, if they are excluded but required at the same time.
|
void |
setModel(int model)
Sets the model attribute of the QProx object
|
void |
setProhibited()
Sets the prohibited attribute of the QProx object
|
void |
setRequired()
Sets the required attribute of the QProx object
|
String |
toString()
Return a string representation of this object.
|
getExcluded, getModel, getProhibited, getRequired, getUnknown, isRequiredOrProhibited, setExcluded, setUnknownpublic QProx(QTerm a, QTerm b, String num)
a - the first queryb - the second querynum - the allowable distance between a and bpublic boolean isContradictory()
QueryisContradictory in class Querypublic void setModel(int model)
public void setProhibited()
setProhibited in class Querypublic void setRequired()
setRequired in class Querypublic String getNodeName()
getNodeName in class Querypublic String toString()
public Runner attach(Rider r)
public void addTerms(HashSet<Token> to)
QueryCopyright © 2016 Egothor. All Rights Reserved.