public class ConsensusVotingHumanAgent extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
ConsensusVotingHumanAgent() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
When this function is called, it is expected that the Party chooses one
of the actions from the possible action list and returns an instance of
the chosen action.
|
SupportedNegotiationSetting |
getSupportedNegotiationSetting() |
void |
init(UtilitySpace utilitySpace,
Deadline deadlines,
Timeline timeline,
long randomSeed,
AgentID id)
One agent will be kept alive over multiple sessions.
|
void |
receiveMessage(AgentID sender,
Action arguments)
This method is called when another
NegotiationParty chose an
Action . |
generateRandomBid, getDescription, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, init, toString
public void init(UtilitySpace utilitySpace, Deadline deadlines, Timeline timeline, long randomSeed, AgentID id)
public void receiveMessage(AgentID sender, Action arguments)
NegotiationParty
NegotiationParty
chose an
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).arguments
- The action performedpublic Action chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
NegotiationParty
possibleActions
- List of all actions possible.Action
.public SupportedNegotiationSetting getSupportedNegotiationSetting()