public class USBNAT extends AbstractNegotiationParty
deadlines, rand, timeline, utilitySpace
Constructor and Description |
---|
USBNAT() |
Modifier and Type | Method and Description |
---|---|
void |
addReject(java.lang.Object sender,
Bid b) |
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> list)
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.
|
Bid |
getNash()
Find maximum utility Nash Equilibrium
|
void |
init(AbstractUtilitySpace utilSpace,
Deadline dl,
TimeLineInfo tl,
long randomSeed,
AgentID agentId)
This is the first call made to a NegotiationParty after its
instantiation.
|
void |
receiveMessage(AgentID sender,
Action action)
This method is called when another
NegotiationParty chose an
Action . |
boolean |
rejected(Bid b) |
generateRandomBid, getDescription, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUtility, getUtilitySpace, getUtilityWithDiscount, toString
public void init(AbstractUtilitySpace utilSpace, Deadline dl, TimeLineInfo tl, long randomSeed, AgentID agentId)
NegotiationParty
init
in interface NegotiationParty
init
in class AbstractNegotiationParty
utilSpace
- (a copy of/readonly version of) the
AbstractUtilitySpace
to be used for this session.tl
- The TimeLineInfo
about current session.agentId
- the AgentID
.public Bid getNash()
public Action chooseAction(java.util.List<java.lang.Class<? extends Action>> list)
NegotiationParty
list
- List of all actions possible.Action
.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 addReject(java.lang.Object sender, Bid b)
public boolean rejected(Bid b)