public class RandomFiftyFiftyNegotiationParty extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
RandomFiftyFiftyNegotiationParty() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
If placing offers: do random offer if voting: accept/reject with a 50%
chance on both
|
void |
receiveMessage(AgentID sender,
Action arguments)
Processes action messages received by a given sender.
|
generateRandomBid, getDescription, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, init, toString
public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
possibleActions
- List of all actions possible.public void receiveMessage(AgentID sender, Action arguments)
receiveMessage
in interface NegotiationParty
receiveMessage
in class AbstractNegotiationParty
sender
- The initiator of the actionarguments
- The action performed