public class CatsXOR extends Object implements XORLanguage<CATSLicense>
The original CATS Regions model has a specific way to generate bids, which does not directly translate into our iterator-based way of generating bids. This class provides an iterator that imitates the original bid-generation technique. To do this, it first collects and filters all possible bids and then provides the iterator on that collection.
If you prefer to have an iterator that works more like the other iterators in SATS, you can change the behavior of
this class via noCapForSubstitutableGoods().
In that case, the first bundle of the provided iterator is the initial bundle which the following elements are based
on. The next bundles each have one license of the original bundle as a starting point and are extended so that they
have the same amount of licenses as the original bundle. In the CATS Regions model, they are called substitutable
bids/bundles.
noCapForSubstitutableGoods():
| Constructor and Description |
|---|
CatsXOR(Collection<CATSLicense> goods,
RNGSupplier rngSupplier,
CATSBidder bidder) |
| Modifier and Type | Method and Description |
|---|---|
CATSBidder |
getBidder()
References back to the Bidder instance from whom this
Bidding language instance was created.
|
Set<XORValue<CATSLicense>> |
getCATSXORBids() |
Iterator<XORValue<CATSLicense>> |
iterator() |
CatsXOR |
noCapForSubstitutableGoods() |
public CatsXOR(Collection<CATSLicense> goods, RNGSupplier rngSupplier, CATSBidder bidder)
public CatsXOR noCapForSubstitutableGoods()
public CATSBidder getBidder()
BiddingLanguagegetBidder in interface BiddingLanguagepublic Iterator<XORValue<CATSLicense>> iterator()
iterator in interface XORLanguage<CATSLicense>public Set<XORValue<CATSLicense>> getCATSXORBids()
Copyright © 2019. All rights reserved.