public class Group22 extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
Group22() |
Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
The actions that come in from opponents are checked if they are an
offer/accept.
|
java.lang.String |
getDescription() |
boolean |
isAcceptable() |
boolean |
isAcceptable(double utility) |
void |
receiveMessage(AgentID sender,
Action action)
All offers proposed by the other parties will be received as a message.
|
generateRandomBid, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, init, toString
public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
validActions
- Either a list containing both accept and offer or only offer.public boolean isAcceptable(double utility)
public boolean isAcceptable()
public void receiveMessage(AgentID sender, Action action)
receiveMessage
in interface NegotiationParty
receiveMessage
in class AbstractNegotiationParty
sender
- The party that did the action.action
- The action that party did.public java.lang.String getDescription()
getDescription
in interface NegotiationParty
getDescription
in class AbstractNegotiationParty