Class ScoringPreferenceAggregator<T>
- java.lang.Object
-
- net.sf.tweety.preferences.aggregation.ScoringPreferenceAggregator<T>
-
- Type Parameters:
T
- generic preference order type
- All Implemented Interfaces:
PreferenceAggregator<T>
- Direct Known Subclasses:
BordaScoringPreferenceAggregator
,PluralityScoringPreferenceAggregator
,VetoScoringPreferenceAggregator
public abstract class ScoringPreferenceAggregator<T> extends java.lang.Object implements PreferenceAggregator<T>
This class extends the interface for preference aggregation with scoring Scorings are implemented separately.- Author:
- Bastian Wolf
-
-
Constructor Summary
Constructors Constructor Description ScoringPreferenceAggregator(WeightVector v)
Constructor with given weight vector
-
Method Summary
Modifier and Type Method Description PreferenceOrder<T>
aggregate(java.util.List<PreferenceOrder<T>> input)
Implementation of the aggregation of a given input-array of sets and a weight vector
-
-
-
Constructor Detail
-
ScoringPreferenceAggregator
public ScoringPreferenceAggregator(WeightVector v)
Constructor with given weight vector- Parameters:
v
- the weight vector
-
-
Method Detail
-
aggregate
public PreferenceOrder<T> aggregate(java.util.List<PreferenceOrder<T>> input)
Implementation of the aggregation of a given input-array of sets and a weight vector- Specified by:
aggregate
in interfacePreferenceAggregator<T>
- Parameters:
input
- the array of preference orders to be aggregated- Returns:
- the final, aggregated preference order
-
-