public class BidPoint
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
BidPoint(Bid bid,
java.lang.Double... utility)
Create a BidPoint by given the bid and the tuple of utilities for that
bid.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
Bid |
getBid()
Bid from which the utilities are represented.
|
double |
getDistance(BidPoint other)
Returns the distance between this BidPoint and another BidPoint.
|
double |
getSocialWelfare() |
java.lang.Double |
getUtility(int index)
Returns the utility of the bid for the i'th agent (agent A = 0, etc.).
|
java.lang.Double |
getUtilityA()
Returns the utility of the bid for agent A.
|
java.lang.Double |
getUtilityB()
Returns the utility of the bid for agent B.
|
int |
hashCode() |
boolean |
isStrictlyDominatedBy(BidPoint other)
Returns true if this BidPoint is strictly dominated by another BidPoint.
|
java.lang.String |
toString() |
public BidPoint(Bid bid, java.lang.Double... utility)
bid - from which the utilities are stored.utility - tuple of utilities of the bid.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to which this object is compared.public int hashCode()
hashCode in class java.lang.Objectpublic Bid getBid()
public java.lang.Double getUtility(int index)
index - of the agent of which the utility should be returned.public java.lang.Double getUtilityA()
public java.lang.Double getUtilityB()
public boolean isStrictlyDominatedBy(BidPoint other)
other - BidPoint.public double getDistance(BidPoint other)
other - bidpoint to which the distance is calculated.public double getSocialWelfare()