public class GenericAllocation<T extends GenericDefinition<S>,S extends Good> extends Object implements Allocation<S>
| Modifier and Type | Class and Description |
|---|---|
static class |
GenericAllocation.Builder<G extends GenericDefinition<T>,T extends Good> |
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.ImmutableMap<Bidder<S>,GenericValue<T,S>> |
values |
| Constructor and Description |
|---|
GenericAllocation(GenericAllocation.Builder<T,S> builder) |
| Modifier and Type | Method and Description |
|---|---|
Bundle<S> |
getAllocation(Bidder<S> bidder)
Returns information about the goods allocated to a specific bidder
|
Allocation<S> |
getAllocationWithTrueValues() |
GenericValue<T,S> |
getGenericAllocation(Bidder<S> bidder) |
com.google.common.collect.ImmutableMap<T,Integer> |
getQuantities(Bidder<S> bidder) |
BigDecimal |
getTotalValue() |
BigDecimal |
getTradeValue(Bidder<S> bidder) |
Collection<Bidder<S>> |
getWinners() |
protected final com.google.common.collect.ImmutableMap<Bidder<S extends Good>,GenericValue<T extends GenericDefinition<S>,S extends Good>> values
public GenericAllocation(GenericAllocation.Builder<T,S> builder)
public com.google.common.collect.ImmutableMap<T,Integer> getQuantities(Bidder<S> bidder)
public Bundle<S> getAllocation(Bidder<S> bidder)
AllocationgetAllocation in interface Allocation<S extends Good>public GenericValue<T,S> getGenericAllocation(Bidder<S> bidder)
public Collection<Bidder<S>> getWinners()
getWinners in interface Allocation<S extends Good>public BigDecimal getTotalValue()
getTotalValue in interface Allocation<S extends Good>public BigDecimal getTradeValue(Bidder<S> bidder)
getTradeValue in interface Allocation<S extends Good>public Allocation<S> getAllocationWithTrueValues()
getAllocationWithTrueValues in interface Allocation<S extends Good>Copyright © 2018. All rights reserved.