public abstract class SizeOrderedXOR<T extends Good> extends Object implements XORLanguage<T>
| Modifier | Constructor and Description |
|---|---|
protected |
SizeOrderedXOR(Collection<T> goods,
Bidder<T> bidder) |
| Modifier and Type | Method and Description |
|---|---|
Bidder<T> |
getBidder()
References back to the Bidder instance from whom this
Bidding language instance was created.
|
Bundle<T> |
getBundle(BigInteger index) |
Bundle<T> |
getBundle(BigInteger subIndex,
int size) |
protected BigDecimal |
getValue(Bundle bundle) |
static StringBuilder |
packageRepresentation(BigInteger index,
int n) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititeratorprotected SizeOrderedXOR(Collection<T> goods, Bidder<T> bidder)
public Bidder<T> getBidder()
BiddingLanguagegetBidder in interface BiddingLanguagepublic Bundle<T> getBundle(BigInteger index)
index - of the queried bundleprotected BigDecimal getValue(Bundle bundle)
public Bundle<T> getBundle(BigInteger subIndex, int size)
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 bundlepublic static StringBuilder packageRepresentation(BigInteger index, int n)
Copyright © 2017. All rights reserved.