public abstract class Party
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<AgentParameterVariable,AgentParamValue> |
parametervalues
Deprecated.
|
protected AgentID |
partyID
Deprecated.
|
protected java.util.ArrayList<java.lang.Integer> |
partyListenerIndices
Deprecated.
|
protected java.util.Random |
randomnr
Deprecated.
|
protected UtilitySpace |
utilitySpace
Deprecated.
|
Constructor and Description |
---|
Party()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addPartyListenerIndex(int index)
Deprecated.
|
abstract Action |
chooseAction(java.util.ArrayList<java.lang.Class> validActions)
Deprecated.
|
void |
cleanUp()
Deprecated.
This function cleans up the remainders of the agent: open windows etc.
|
protected Bid |
generateRandomBid()
Deprecated.
|
DeadlineType |
getDeadlineType()
Deprecated.
|
java.util.HashMap<AgentParameterVariable,AgentParamValue> |
getParametervalues()
Deprecated.
|
AgentID |
getPartyID()
Deprecated.
|
java.util.ArrayList<java.lang.Integer> |
getPartyListenerIndices()
Deprecated.
|
protected Value |
getRandomValue(Issue currentIssue)
Deprecated.
|
int |
getRound()
Deprecated.
|
int |
getSessionNo()
Deprecated.
|
Timeline |
getTimeline()
Deprecated.
|
int |
getTotalRoundOrTime()
Deprecated.
|
double |
getUtility(Bid bid)
Deprecated.
A convenience method to get the undiscounted utility of a bid.
|
UtilitySpace |
getUtilitySpace()
Deprecated.
|
double |
getUtilityWithDiscount(Bid bid)
Deprecated.
|
static java.lang.String |
getVersion()
Deprecated.
|
void |
init()
Deprecated.
This method is called by the environment (SessionRunner) every time
before starting a new session after the internalInit method is called.
|
void |
internalInit(int sessionNo,
DeadlineType deadlineType,
int totalRoundOrTime,
UtilitySpace us,
java.util.HashMap<AgentParameterVariable,AgentParamValue> params)
Deprecated.
This method is called by the SessionRunner to initialize the agent with a
new session information.
|
abstract void |
ReceiveMessage(Action opponentAction)
Deprecated.
|
void |
setDeadlineType(DeadlineType deadlineType)
Deprecated.
|
void |
setParametervalues(java.util.HashMap<AgentParameterVariable,AgentParamValue> parametervalues)
Deprecated.
|
void |
setPartyID(AgentID partyID)
Deprecated.
|
void |
setPartyListenerIndices(java.util.ArrayList<java.lang.Integer> partyListenerIndices)
Deprecated.
|
void |
setRound(int round)
Deprecated.
|
void |
setSessionNo(int sessionNo)
Deprecated.
|
void |
setTimeline(Timeline timeline)
Deprecated.
|
void |
setTotalRoundOrTime(int totalRoundOrTime)
Deprecated.
|
void |
setUtilitySpace(AdditiveUtilitySpace utilitySpace)
Deprecated.
|
protected AgentID partyID
protected UtilitySpace utilitySpace
protected java.util.HashMap<AgentParameterVariable,AgentParamValue> parametervalues
protected java.util.ArrayList<java.lang.Integer> partyListenerIndices
protected java.util.Random randomnr
public static java.lang.String getVersion()
public AgentID getPartyID()
public void setPartyID(AgentID partyID)
public UtilitySpace getUtilitySpace()
public void setUtilitySpace(AdditiveUtilitySpace utilitySpace)
public java.util.HashMap<AgentParameterVariable,AgentParamValue> getParametervalues()
public void setParametervalues(java.util.HashMap<AgentParameterVariable,AgentParamValue> parametervalues)
public void init()
public final void internalInit(int sessionNo, DeadlineType deadlineType, int totalRoundOrTime, UtilitySpace us, java.util.HashMap<AgentParameterVariable,AgentParamValue> params)
us
- utility space of the agent for the sessionparams
- parameters of the agentpublic void cleanUp()
public double getUtility(Bid bid)
public double getUtilityWithDiscount(Bid bid)
bid
- the bid to compute the discounted value forpublic abstract void ReceiveMessage(Action opponentAction)
public abstract Action chooseAction(java.util.ArrayList<java.lang.Class> validActions)
public java.util.ArrayList<java.lang.Integer> getPartyListenerIndices()
public void setPartyListenerIndices(java.util.ArrayList<java.lang.Integer> partyListenerIndices)
public void addPartyListenerIndex(int index)
public int getSessionNo()
public void setSessionNo(int sessionNo)
public int getTotalRoundOrTime()
public void setTotalRoundOrTime(int totalRoundOrTime)
public DeadlineType getDeadlineType()
public void setDeadlineType(DeadlineType deadlineType)
public Timeline getTimeline()
public void setTimeline(Timeline timeline)
public int getRound()
public void setRound(int round)
protected Value getRandomValue(Issue currentIssue) throws java.lang.Exception
java.lang.Exception
protected Bid generateRandomBid() throws java.lang.Exception
java.lang.Exception