Class SizeOrderedXOR
- java.lang.Object
-
- org.spectrumauctions.sats.core.bidlang.xor.SizeOrderedXOR
-
- All Implemented Interfaces:
BiddingLanguage
- Direct Known Subclasses:
DecreasingSizeOrderedXOR,IncreasingSizeOrderedXOR
public abstract class SizeOrderedXOR extends java.lang.Object implements BiddingLanguage
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSizeOrderedXOR(java.util.Collection<? extends License> goods, SATSBidder bidder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SATSBiddergetBidder()References back to the SATSBidder instance from whom this Bidding language instance was created.org.marketdesignresearch.mechlib.core.BundlegetBundle(java.math.BigInteger index)org.marketdesignresearch.mechlib.core.BundlegetBundle(java.math.BigInteger subIndex, int size)static java.lang.StringBuilderpackageRepresentation(java.math.BigInteger index, int n)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.spectrumauctions.sats.core.bidlang.BiddingLanguage
iterator
-
-
-
-
Constructor Detail
-
SizeOrderedXOR
protected SizeOrderedXOR(java.util.Collection<? extends License> goods, SATSBidder bidder)
-
-
Method Detail
-
getBidder
public SATSBidder getBidder()
Description copied from interface:BiddingLanguageReferences back to the SATSBidder instance from whom this Bidding language instance was created.- Specified by:
getBidderin interfaceBiddingLanguage
-
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
-
-