|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.firstpartners.rp.mid.intelligence.BasicIntelligence
public class BasicIntelligence
Basic intelligence to implement filtering
| Field Summary | |
|---|---|
int |
countTopDocs
Number of the documents to be searched (top documents) |
(package private) static java.lang.String |
DELIMITERS
Default character delimiters |
protected org.apache.log4j.Logger |
logger
Logger for this class and subclasses |
private boolean |
readyForFeedbackCalculation
Flag to mark that that plugin is ready for feedback calculation |
double |
weight
Weight for calculation of the scores for the links |
| Constructor Summary | |
|---|---|
BasicIntelligence()
Constructor of the basic intelligence plugin |
|
| Method Summary | |
|---|---|
void |
acceptFeedback(IFeedback advice)
Deal with feedback to improve quality of results next time |
ISearchResult |
filterAndSortSearchResults(ISearchResult someInfo)
Gives the class a chance to update |
int |
getCountTopDocs()
|
double |
getWeight()
|
boolean |
isReadyForFeedbackCalculation()
|
void |
onLoad()
Called by the PluginManager on each plugin when this class is first loaded Read the feedback xml and recalculate the score according to this |
int |
preferredFilterOrder()
What order we prefer the filter to be called in. |
void |
setCountTopDocs(int countTopDocs)
|
void |
setReadyForFeedbackCalculation(boolean readyForFeedbackCalculation)
|
void |
setWeight(double weight)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final java.lang.String DELIMITERS
protected final org.apache.log4j.Logger logger
private boolean readyForFeedbackCalculation
public double weight
public int countTopDocs
| Constructor Detail |
|---|
public BasicIntelligence()
| Method Detail |
|---|
public ISearchResult filterAndSortSearchResults(ISearchResult someInfo)
filterAndSortSearchResults in interface IInterestedInResultsFiltersomeInfo -
public int preferredFilterOrder()
preferredFilterOrder in interface IInterestedInResultsFilterpublic void acceptFeedback(IFeedback advice)
acceptFeedback in interface IInterestedInFeedbackadvice - The feedback event
public void onLoad()
throws RpException
onLoad in interface IPluginRpExceptionpublic double getWeight()
public void setWeight(double weight)
weight - The weight to set.public int getCountTopDocs()
public void setCountTopDocs(int countTopDocs)
countTopDocs - The countTopDocs to set.public boolean isReadyForFeedbackCalculation()
public void setReadyForFeedbackCalculation(boolean readyForFeedbackCalculation)
setReadyForFeedbackCalculation in interface IInterestedInFeedbackreadyForFeedbackCalculation - The readyForFeedbackCalculation to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||