public class BidHistory extends java.lang.Object implements java.lang.Iterable<BidDetails>
Constructor and Description |
---|
BidHistory() |
BidHistory(BidHistory b) |
BidHistory(UtilitySpace u)
Pretends all bids in the domain were made on t = 0.
|
Modifier and Type | Method and Description |
---|---|
void |
add(BidDetails b) |
BidHistory |
filterBetween(double minU,
double maxU,
double minT,
double maxT) |
BidHistory |
filterBetweenTime(double minT,
double maxT) |
double |
getAverageUtility() |
Bid |
getBestBid()
Gets the best bid for me.
|
BidDetails |
getBestBidDetails()
Gets the details of the best bid for me.
|
BidHistory |
getBestBidHistory(int n)
Gets the history part of the best n (or less) bids for me.
|
BidDetails |
getBidDetailsOfUtility(double u)
Get the
BidDetails of the Bid with utility closest to u. |
BidHistory |
getCopySortedToUtility() |
BidDetails |
getFirstBidDetails() |
java.util.List<BidDetails> |
getHistory() |
Bid |
getLastBid() |
BidDetails |
getLastBidDetails() |
double |
getMaximumUtility() |
double |
getMinimumUtility() |
BidDetails |
getRandom() |
BidDetails |
getRandom(java.util.Random r) |
Bid |
getSecondLastBid() |
java.util.Iterator<BidDetails> |
iterator() |
int |
size() |
void |
sortToUtility() |
java.lang.String |
toString() |
public BidHistory()
public BidHistory(BidHistory b)
public BidHistory(UtilitySpace u)
public BidHistory filterBetweenTime(double minT, double maxT)
public BidHistory filterBetween(double minU, double maxU, double minT, double maxT)
public void add(BidDetails b)
public BidDetails getLastBidDetails()
public BidDetails getFirstBidDetails()
public Bid getLastBid()
public Bid getSecondLastBid()
public int size()
public java.util.List<BidDetails> getHistory()
public BidDetails getBidDetailsOfUtility(double u)
BidDetails
of the Bid
with utility closest to u.public double getMaximumUtility()
public double getMinimumUtility()
public Bid getBestBid()
public BidDetails getBestBidDetails()
public BidHistory getBestBidHistory(int n)
public BidDetails getRandom()
public BidDetails getRandom(java.util.Random r)
public double getAverageUtility()
public void sortToUtility()
public BidHistory getCopySortedToUtility()
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Iterator<BidDetails> iterator()
iterator
in interface java.lang.Iterable<BidDetails>