Class RankingFeature
- java.lang.Object
-
- com.funnelback.publicui.search.model.transaction.contentoptimiser.RankingFeature
-
- All Implemented Interfaces:
Comparable<RankingFeature>
- Direct Known Subclasses:
RankingFeatureMaxOther
,RankingFeatureMaxPossible
,RankingFeatureMaxPossibleMultiWordOnly
public abstract class RankingFeature extends Object implements Comparable<RankingFeature>
-
-
Constructor Summary
Constructors Constructor Description RankingFeature(String name, String category, String longName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
caculateWin(float selectedScore, float weighting)
int
compareTo(RankingFeature that)
String
getCategory()
List<String>
getHintTexts()
String
getLongName()
String
getName()
Map<String,Float>
getScores()
float
getWin()
boolean
isInteresting()
void
rememberScore(float score, String rank)
-
-
-
Field Detail
-
CONSAT
public static final String CONSAT
- See Also:
- Constant Field Values
-
name
private final String name
-
category
private final String category
-
longName
private final String longName
-
win
protected float win
-
maxScore
protected float maxScore
-
minScore
protected float minScore
-
-
Method Detail
-
rememberScore
public void rememberScore(float score, String rank)
-
isInteresting
public boolean isInteresting()
-
compareTo
public int compareTo(RankingFeature that)
- Specified by:
compareTo
in interfaceComparable<RankingFeature>
-
caculateWin
public abstract void caculateWin(float selectedScore, float weighting)
-
getName
public String getName()
-
getCategory
public String getCategory()
-
getLongName
public String getLongName()
-
getWin
public float getWin()
-
-