public class BidHistoryTracker
extends java.lang.Object
Constructor and Description |
---|
BidHistoryTracker()
The constructor that just creates the empty ArrayLists.
|
Modifier and Type | Method and Description |
---|---|
void |
addOpponentAction(Action action)
This function accepts an Action and saves the Bid (if the Action is an Offer).
|
void |
addOwnBid(Bid bid)
This function accepts a bid and saves it as a bid of the agent.
|
boolean |
bidAlreadyDoneByMyself(Bid bid)
Returns true iff we have offered the parameter bid ourself
|
int |
getConsecutiveBidsDifferent()
Returns the number of consecutive bids in which this opponent has given
us a previously unoffered bid
|
Bid |
getLastOpponentBid()
Give the last bid offered by the opponent.
|
Bid |
getLastOwnBid()
Gives the last bid we did ourselves.
|
int |
getNumberOfOpponentBids()
Returns the number of bids we have received from our opponent
|
int |
getOurStallingCoefficient()
Returns the number of consecutive bids we have done that were non-unique
|
public BidHistoryTracker()
public void addOpponentAction(Action action)
action
- The opponent's action.public void addOwnBid(Bid bid)
bid
- The bid of myself.public Bid getLastOpponentBid()
public Bid getLastOwnBid()
public boolean bidAlreadyDoneByMyself(Bid bid)
bid
- Bidpublic int getNumberOfOpponentBids()
public int getConsecutiveBidsDifferent()
public int getOurStallingCoefficient()