T
- public class RankingFunction<T> extends Functions<T>
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
RankingFunction()
constructs a new, empty ranking function
caller can use Map-method putAll to fill this empty ranking function
|
RankingFunction(LevelingFunction<T> lf)
this constructor creates a ranking function using a given preference
order
|
Modifier and Type | Method and Description |
---|---|
PreferenceOrder<T> |
generatePreferenceOrder()
this method returns a preference order made out of an ranking function
|
java.util.Map<T,java.lang.Integer> |
getRankingFunction()
returns the ranking function
|
void |
strengthenElement(T element)
strengthens the given element in the ranking function
|
void |
weakenElement(T element)
weakens the given element in the ranking function
|
containsKey, containsValue, get, getElementsByValue, getLevelingFunction, getPredecessors, getSuccessors, toString, values
clear, clone, compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
private static final long serialVersionUID
public RankingFunction()
public RankingFunction(LevelingFunction<T> lf)
lf
- the given preference orderpublic java.util.Map<T,java.lang.Integer> getRankingFunction()
public PreferenceOrder<T> generatePreferenceOrder()
generatePreferenceOrder
in class Functions<T>
public void weakenElement(T element)
weakenElement
in class Functions<T>
element
- the element being weakenedpublic void strengthenElement(T element)
strengthenElement
in class Functions<T>
element
- the element being strengthened