public class Group14 extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
Group14() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
Each round this method gets called and ask you to accept or offer.
|
java.lang.String |
getDescription()
Just a string describing Group14 Agent
|
void |
init(AbstractUtilitySpace utilSpace,
Deadline dl,
TimeLineInfo tl,
long randomSeed,
AgentID agentId)
This method is called to initialize our agent
|
void |
makeLists(java.util.List<BidDetails> bidList)
Divides the bidList into separate lists filtered for certain Utility
intervals
|
Offer |
maxUtilBid(AdditiveUtilitySpace us)
Returns the bid with the highest Utility for us out of the whole
UtilitySpace
|
Action |
myOffer()
We have to respond with an Action after we consult our acceptance
strategy
|
java.util.List<BidDetails> |
orderListByNash(java.util.List<BidDetails> bidList)
Order the list of bids by descending estimated Nash product
|
void |
receiveMessage(AgentID sender,
Action action)
All offers proposed by the other parties will be received as a message.
|
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 Action chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
validActions
- Either a list containing both accept and offer or only offer.public void receiveMessage(AgentID sender, Action action)
receiveMessage
in interface NegotiationParty
receiveMessage
in class AbstractNegotiationParty
sender
- The party that did the action.action
- The action that party did.public Action myOffer()
public void makeLists(java.util.List<BidDetails> bidList)
bidList
- public java.util.List<BidDetails> orderListByNash(java.util.List<BidDetails> bidList)
bidList
- public Offer maxUtilBid(AdditiveUtilitySpace us)
us
- The UtilitySpace objectpublic java.lang.String getDescription()
getDescription
in interface NegotiationParty
getDescription
in class AbstractNegotiationParty