public class DiscreteIssueProcessor
extends java.lang.Object
Constructor and Description |
---|
DiscreteIssueProcessor(Domain d)
Creates a DiscreteIssueProcessor for a domain.
|
DiscreteIssueProcessor(UtilitySpace u,
Domain d)
Creates a DiscreteIssueProcessor for a domain, given a certain utility.
|
Modifier and Type | Method and Description |
---|---|
void |
adaptWeightsByBid(Bid currentBid,
double time)
Adapts the different issue weights according to the current bid the opponent has made.
|
java.util.ArrayList<IssueDiscrete> |
getIssueList() |
java.util.ArrayList<IssueDiscrete> |
getOrderedIssueList()
Gives a descending list of the issues ordered by weight, so the highest weighted issue is first in the list
|
double |
getStubbornness()
Gives the stubbornness of the opponent; closer to 1 is more stubborn.
|
double |
getWeightByIssue(IssueDiscrete i)
Gives the weight that belongs to the given issue
|
java.lang.String |
toString() |
public DiscreteIssueProcessor(Domain d)
d
- The domainpublic DiscreteIssueProcessor(UtilitySpace u, Domain d)
u
- d
- public java.util.ArrayList<IssueDiscrete> getIssueList()
public void adaptWeightsByBid(Bid currentBid, double time)
currentBid
- Bid done by the opponenttime
- Time at which the bid was donepublic java.util.ArrayList<IssueDiscrete> getOrderedIssueList()
public double getWeightByIssue(IssueDiscrete i)
i
- Issue for which the weight is requiredpublic double getStubbornness()
public java.lang.String toString()
toString
in class java.lang.Object