Class SingleValeWeightVector
- java.lang.Object
 - 
- net.sf.tweety.preferences.aggregation.SingleValeWeightVector
 
 
- 
- All Implemented Interfaces:
 WeightVector
public class SingleValeWeightVector extends java.lang.Object implements WeightVector
- Author:
 - Bastian Wolf
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description private intmvalue of the least chosen element 
- 
Constructor Summary
Constructors Constructor Description SingleValeWeightVector(int m)constructor setting the value for the least chosen element 
- 
Method Summary
Modifier and Type Method Description intgetWeight(int n)returns the weight of the element 
 - 
 
- 
- 
Method Detail
- 
getWeight
public int getWeight(int n)
returns the weight of the element- Specified by:
 getWeightin interfaceWeightVector- Parameters:
 n- the given parameter to compare with- Returns:
 - 1 if element is least ranked, 0 otherwise
 
 
 - 
 
 -