public class Group7 extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
Group7()
Constructor for this agent
|
Modifier and Type | Method and Description |
---|---|
boolean |
acceptWithProbability() |
void |
adjustToughness()
Adjust the toughness of this agent according to the toughness of
opponents
|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
Function which gets called if it is our turn to bid / accept / decline
|
Bid |
firstBid()
Returns the bid to be performed as the first bid
|
Offer |
generateOffer(Bid bid)
Logs the bid, adds the bid to the BidHistory, generates an offer with the
bid.
|
double |
getAdditionalToughnessNumberOfParties()
Get less toughness according to the number parties
|
java.lang.String |
getDescription() |
void |
init(AbstractUtilitySpace utilSpace,
Deadline dl,
TimeLineInfo tl,
long randomSeed,
AgentID agentId)
Initiates the agent
|
double |
minUtility()
Returns the minimum acceptable utility of this agent according to the
time and toughness
|
Bid |
normalBid()
Returns a bid corresponding to the minimum utility
|
void |
populateBidSpace()
Populates the bidSpace with 1000 bids above the minimum minimum utility
|
double |
probAcceptance() |
void |
receiveMessage(AgentID sender,
Action action)
Function that is called when a message is received by one of the
opponents
|
Bid |
regularBidMaxOpponentUtilityEstimation()
Returns a bid corresponding to the agents dynamic minimum utility and the
highest average estimated utility for the opponents
|
generateRandomBid, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, toString
public void init(AbstractUtilitySpace utilSpace, Deadline dl, TimeLineInfo tl, long randomSeed, AgentID agentId)
init
in interface NegotiationParty
init
in class AbstractNegotiationParty
utilSpace
- (a copy of/readonly version of) the
AbstractUtilitySpace
to be used for this session.tl
- The TimeLineInfo
about current session.agentId
- the AgentID
.public void populateBidSpace()
public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
validActions
- List of all actions possible.public double probAcceptance()
public boolean acceptWithProbability()
public Bid firstBid()
public Bid regularBidMaxOpponentUtilityEstimation()
public Bid normalBid()
public Offer generateOffer(Bid bid)
bid
- public double minUtility()
public void adjustToughness()
public double getAdditionalToughnessNumberOfParties()
public void receiveMessage(AgentID sender, Action action)
receiveMessage
in interface NegotiationParty
receiveMessage
in class AbstractNegotiationParty
sender
- The initiator of the action.This is either the AgentID, or
null if the sender is not an agent (e.g., the protocol).action
- The action performedpublic java.lang.String getDescription()
getDescription
in interface NegotiationParty
getDescription
in class AbstractNegotiationParty