public class Group2 extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
Group2() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> actions)
The method asks to specify an action to send to the opponents.
|
AgentID |
getPartyId()
Returns the agent id.
|
void |
init(AbstractUtilitySpace utilSpace,
Deadline dl,
TimeLineInfo tl,
long randomSeed,
AgentID agentId)
Initializes maxBid, alpha, opponentModels collections and trainingBids
collection.
|
void |
receiveMessage(AgentID sender,
Action arguments)
Informs the agent that the opponent just performed the action.
|
generateRandomBid, getDescription, getNumberOfParties, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, toString
public AgentID getPartyId()
getPartyId
in class AbstractNegotiationParty
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 receiveMessage(AgentID sender, Action arguments)
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).arguments
- The action performedpublic Action chooseAction(java.util.List<java.lang.Class<? extends Action>> actions)
actions
- List of all actions possible.Action
.