public class CounterOfferHumanNegotiationParty extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
CounterOfferHumanNegotiationParty() |
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,
TimeLineInfo 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, toString
public void init(UtilitySpace utilitySpace, Deadline deadlines, TimeLineInfo timeline, long randomSeed, AgentID id)
init
in interface NegotiationParty
init
in class AbstractNegotiationParty
utilitySpace
- (a copy of/readonly version of) the UtilitySpace
to be
used for this session.timeline
- The TimeLineInfo
about current session.id
- the AgentID
.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()