public class UINegotiationParty extends AbstractNegotiationParty
deadlines, partyId, rand, timeline, utilitySpace
Constructor and Description |
---|
UINegotiationParty(UtilitySpace utilitySpace,
java.util.Map<DeadlineType,java.lang.Object> deadlines,
Timeline timeline,
long randomSeed)
One agent will be kept alive over multiple sessions.
|
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class> possibleActions)
When this class 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 |
receiveMessage(java.lang.Object sender,
Action arguments)
This method is called when an observable action is performed.
|
generateRandomBid, getPartyId, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, setPartyId, toString
public UINegotiationParty(UtilitySpace utilitySpace, java.util.Map<DeadlineType,java.lang.Object> deadlines, Timeline timeline, long randomSeed)
public void receiveMessage(java.lang.Object sender, Action arguments)
NegotiationParty
Protocol.getActionListeners(List)
sender
- The initiator of the actionarguments
- The action performedpublic Action chooseAction(java.util.List<java.lang.Class> possibleActions)
NegotiationParty
NegotiationParty
is in the
Protocol.getRoundStructure(List, negotiator.session.Session)
.possibleActions
- List of all actions possible.public SupportedNegotiationSetting getSupportedNegotiationSetting()