Class SizeOrderedXOR

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected SizeOrderedXOR​(java.util.Collection<? extends License> goods, SATSBidder bidder)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      SATSBidder getBidder()
      References back to the SATSBidder instance from whom this Bidding language instance was created.
      org.marketdesignresearch.mechlib.core.Bundle getBundle​(java.math.BigInteger index)  
      org.marketdesignresearch.mechlib.core.Bundle getBundle​(java.math.BigInteger subIndex, int size)  
      static java.lang.StringBuilder packageRepresentation​(java.math.BigInteger index, int n)  
      • Methods inherited from class java.lang.Object

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

      • SizeOrderedXOR

        protected SizeOrderedXOR​(java.util.Collection<? extends License> goods,
                                 SATSBidder bidder)
    • Method Detail

      • getBidder

        public SATSBidder getBidder()
        Description copied from interface: BiddingLanguage
        References back to the SATSBidder instance from whom this Bidding language instance was created.
        Specified by:
        getBidder in interface BiddingLanguage
      • getBundle

        public org.marketdesignresearch.mechlib.core.Bundle getBundle​(java.math.BigInteger index)
        Parameters:
        index - of the queried bundle
      • getBundle

        public org.marketdesignresearch.mechlib.core.Bundle getBundle​(java.math.BigInteger subIndex,
                                                                      int size)
        Parameters:
        subIndex - an index of this bundle in a list of all bundles with same size (hence NOT the index in the iterator), starting at zero.
        size - the size of the bundle
        Returns:
        a specific bundle of given size
      • packageRepresentation

        public static java.lang.StringBuilder packageRepresentation​(java.math.BigInteger index,
                                                                    int n)
        Returns:
        the StringBuilder representation of the bundle, i.e., 1/0 for all licenses