Constructor and Description |
---|
UTBid(Bid bid,
double utility)
Creates a UTBid-object which stores a bid with it's corresponding
utility.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(UTBid utbid)
compareTo is used to compare UTbids.
|
boolean |
getAlreadyOffered()
checks whether the bid has already been made
|
Bid |
getBid()
Method which returns the bid.
|
double |
getUtility()
Method which returns the utility.
|
void |
setAlreadyOffered(boolean offered)
sets the the bid as offered or not
|
void |
setBid(Bid bid)
Method which sets the bid.
|
void |
setUtility(double utility)
Method which sets the utility.
|
public UTBid(Bid bid, double utility)
bid
- of an agentutility
- of the bidpublic Bid getBid()
public void setBid(Bid bid)
bid
- public double getUtility()
public void setUtility(double utility)
utility
- public boolean getAlreadyOffered()
public void setAlreadyOffered(boolean offered)
offered
-