public class XORAllocation<T extends org.spectrumauctions.sats.core.model.Good> extends Object implements Allocation<BidderAllocation<T>>
| Constructor and Description |
|---|
XORAllocation(Map<org.spectrumauctions.sats.core.model.Bidder<T>,BidderAllocation<T>> trades) |
| Modifier and Type | Method and Description |
|---|---|
BidderAllocation<T> |
getAllocation(org.spectrumauctions.sats.core.model.Bidder<?> bidder)
Returns information about the goods allocated to a specific bidder
|
Collection<? extends org.spectrumauctions.sats.core.model.Bidder<?>> |
getBidders() |
double |
getTotalAllocationValue() |
BigDecimal |
getTotalValue() |
Collection<BidderAllocation<T>> |
getTrades() |
Map<org.spectrumauctions.sats.core.model.Bidder<T>,BidderAllocation<T>> |
getTradesMap()
The Map only includes winning bidders
|
Set<org.spectrumauctions.sats.core.model.Bidder<T>> |
getWinners() |
boolean |
isWinner(org.spectrumauctions.sats.core.model.Bidder bidder) |
String |
toString() |
BidderAllocation |
tradeOf(org.spectrumauctions.sats.core.model.Bidder bidder)
Deprecated.
|
public XORAllocation(Map<org.spectrumauctions.sats.core.model.Bidder<T>,BidderAllocation<T>> trades)
trades - map of winning bidders to allocationspublic double getTotalAllocationValue()
public Collection<BidderAllocation<T>> getTrades()
public Map<org.spectrumauctions.sats.core.model.Bidder<T>,BidderAllocation<T>> getTradesMap()
public boolean isWinner(org.spectrumauctions.sats.core.model.Bidder bidder)
@Deprecated public BidderAllocation tradeOf(org.spectrumauctions.sats.core.model.Bidder bidder)
public Collection<? extends org.spectrumauctions.sats.core.model.Bidder<?>> getBidders()
getBidders in interface Allocation<BidderAllocation<T extends org.spectrumauctions.sats.core.model.Good>>public BidderAllocation<T> getAllocation(org.spectrumauctions.sats.core.model.Bidder<?> bidder)
AllocationgetAllocation in interface Allocation<BidderAllocation<T extends org.spectrumauctions.sats.core.model.Good>>public BigDecimal getTotalValue()
getTotalValue in interface Allocation<BidderAllocation<T extends org.spectrumauctions.sats.core.model.Good>>Copyright © 2018. All rights reserved.