T - public class RankingFunction<T> extends Functions<T>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| 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
|
Map<T,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, valuesclear, clone, compute, computeIfAbsent, computeIfPresent, entrySet, forEach, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizeequals, hashCodefinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic RankingFunction()
public RankingFunction(LevelingFunction<T> lf)
lf - the given preference orderpublic Map<T,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 strengthenedCopyright © 2018. All rights reserved.