Class SingleValeWeightVector

  • All Implemented Interfaces:
    WeightVector

    public class SingleValeWeightVector
    extends java.lang.Object
    implements WeightVector
    Author:
    Bastian Wolf
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleValeWeightVector​(int m)
      constructor setting the value for the least chosen element
    • Method Summary

      Modifier and Type Method Description
      int getWeight​(int n)
      returns the weight of the element
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleValeWeightVector

        public SingleValeWeightVector​(int m)
        constructor setting the value for the least chosen element
        Parameters:
        m - least rank used in ranking function for the preference orders
    • Method Detail

      • getWeight

        public int getWeight​(int n)
        returns the weight of the element
        Specified by:
        getWeight in interface WeightVector
        Parameters:
        n - the given parameter to compare with
        Returns:
        1 if element is least ranked, 0 otherwise