public interface NegotiationParty
NegotiationParty
will replace
Agent
as party can be used for bilateral as well as multilateral cases. If
you are using a protocol that inherits from Protocol
you
should also use NegotiationParty
and not Agent
.Modifier and Type | Method and Description |
---|---|
Action |
chooseAction(java.util.List<java.lang.Class> possibleActions)
When this class 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.
|
AgentID |
getPartyId()
Gets the agent's unique id
Each agent should contain a (unique) id.
|
Timeline |
getTimeLine()
Gets the timeline for this agent.
|
double |
getUtility(Bid bid)
Gets the agents utility for a given bid.
|
UtilitySpace |
getUtilitySpace()
Gets the agent's utility space.
|
double |
getUtilityWithDiscount(Bid bid)
Gets the agents utility for a given bid, taking into account a discount factor if present.
|
void |
receiveMessage(java.lang.Object sender,
Action arguments)
This method is called when an observable action is performed.
|
void |
setPartyId(AgentID id)
Sets the agent's unique id
Each agent should contain a (unique) id.
|
Action chooseAction(java.util.List<java.lang.Class> possibleActions)
NegotiationParty
is in the
Protocol.getRoundStructure(List, negotiator.session.Session)
.possibleActions
- List of all actions possible.void receiveMessage(java.lang.Object sender, Action arguments)
Protocol.getActionListeners(List)
sender
- The initiator of the actionarguments
- The action performeddouble getUtility(Bid bid)
bid
- The bid to get the utility ofdouble getUtilityWithDiscount(Bid bid)
bid
- The bid to get the utility ofUtilitySpace getUtilitySpace()
Timeline getTimeLine()
AgentID getPartyId()
void setPartyId(AgentID id)
id
- The new id for this agent.