public abstract class SimilarityAgent extends SouthamptonAgent
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> |
bestOpponentBidUtilityHistory
The best bids (in terms of our utility) that we have seen from the
opponent.
|
protected double |
utility0
The utility (to us) of the first bid made by the opponent.
|
protected double |
utility1
The expected utility (to us) of the final bid made by the opponent.
|
acceptMultiplier, bidSpace, MAXIMUM_ASPIRATION, myLastAction, myLastBid, myPreviousBids, opponentBids, opponentIsHardHead, opponentModel, opponentPreviousBid
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace
Constructor and Description |
---|
SimilarityAgent() |
Modifier and Type | Method and Description |
---|---|
protected Bid |
getRandomBidInRange(double lowerBound,
double upperBound)
Get a random bid in a given utility range.
|
protected abstract double |
getTargetUtility(double myUtility,
double opponentUtility) |
java.lang.String |
getVersion()
Gets the version number.
|
void |
init()
This method is called by the protocol every time before starting a new
session after the internalInit method is called.
|
protected Bid |
proposeInitialBid()
Propose the initial bid.
|
protected Bid |
proposeNextBid(Bid opponentBid)
Propose the next bid.
|
chooseAction, finalize, getAgentNo, log, ReceiveMessage
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getSupportedNegotiationSetting, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep
protected java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory
protected double utility0
protected final double utility1
public void init()
Agent
init
in class SouthamptonAgent
public java.lang.String getVersion()
SouthamptonAgent
getVersion
in class SouthamptonAgent
protected Bid proposeInitialBid()
SouthamptonAgent
proposeInitialBid
in class SouthamptonAgent
protected Bid proposeNextBid(Bid opponentBid)
SouthamptonAgent
proposeNextBid
in class SouthamptonAgent
opponentBid
- The bid that has just been made by the opponent.protected abstract double getTargetUtility(double myUtility, double opponentUtility)
protected Bid getRandomBidInRange(double lowerBound, double upperBound) throws java.lang.Exception
SouthamptonAgent
getRandomBidInRange
in class SouthamptonAgent
lowerBound
- The lower bound on utility.upperBound
- The upper bound on utility.java.lang.Exception