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
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private WeightVectorvThe weight vector for the aggregator given via the constructor 
- 
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 
 - 
 
- 
- 
Field Detail
- 
v
private WeightVector v
The weight vector for the aggregator given via the constructor 
 - 
 
- 
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:
 aggregatein interfacePreferenceAggregator<T>- Parameters:
 input- the array of preference orders to be aggregated- Returns:
 - the final, aggregated preference order
 
 
 - 
 
 -