public final class AggregatedBid extends ArrayBid
AggregatedBid
is the combination of several Bid
of agents (as identified by their agentId's) that
are aggregated into a single bid. This object is immutable and can only be created using the AggregatedBid.Builder
.Modifier and Type | Class and Description |
---|---|
static class |
AggregatedBid.Builder
A Builder that makes it easier to create an
AggregatedBid . |
marketBasis, SMALLEST_DEMAND
Constructor and Description |
---|
AggregatedBid(ArrayBid bid,
java.util.Map<java.lang.String,java.lang.Integer> agentBidReferences) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Map<java.lang.String,java.lang.Integer> |
getAgentBidReferences() |
int |
hashCode() |
java.lang.String |
toString() |
aggregate, calculateIntersection, getDemand, getDemandAt, getMaximumDemand, getMinimumDemand, subtract, toArrayBid, toPointBid, transpose
demandIsEqual, flatDemand, getDemandAt, getMarketBasis
public AggregatedBid(ArrayBid bid, java.util.Map<java.lang.String,java.lang.Integer> agentBidReferences)
public java.util.Map<java.lang.String,java.lang.Integer> getAgentBidReferences()
Map
of agentId to bid number reference.public int hashCode()
ArrayBid
public boolean equals(java.lang.Object obj)
ArrayBid