public class Group18 extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
Group18() |
Modifier and Type | Method and Description |
---|---|
Action |
AcceptStrategy(java.util.List<java.lang.Class<? extends Action>> validActions,
Action upcomingBid) |
Action |
BiddingStrategy() |
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
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.
|
java.lang.String |
getDescription() |
void |
initializeBidList() |
void |
receiveMessage(AgentID sender,
Action action)
This method is called when another
NegotiationParty chose an
Action . |
void |
UpdateOpponentModel(AgentID sender,
Action action) |
generateRandomBid, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, init, toString
public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> validActions)
NegotiationParty
validActions
- List of all actions possible.Action
.public Action BiddingStrategy()
public Action AcceptStrategy(java.util.List<java.lang.Class<? extends Action>> validActions, Action upcomingBid)
public void receiveMessage(AgentID sender, Action action)
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).action
- The action performedpublic void initializeBidList()
public java.lang.String getDescription()
getDescription
in interface NegotiationParty
getDescription
in class AbstractNegotiationParty