public class AcceptingNegotiationParty extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
AcceptingNegotiationParty() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
If offer was proposed: Accept offer, otherwise: Propose random offer
|
void |
receiveMessage(AgentID sender,
Action arguments)
We ignore any messages received.
|
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