public class BoaParty extends AbstractNegotiationParty
BoaPartyRepItem . not for inclusion in a repository or extending.
This is converted from BOAagentBilateral and TheBOAagent
For more information, see: Baarslag T., Hindriks K.V., Hendrikx M.,
Dirkzwager A., Jonker C.M. Decoupling Negotiating Agents to Explore the Space
of Negotiation Strategies. Proceedings of The Fifth International Workshop on
Agent-based Complex Automated Negotiations (ACAN 2012), 2012.
https://homepages.cwi.nl/~baarslag/pub/Decoupling_Negotiating_Agents_to_Explore_the_Space_of_Negotiation_Strategies_ACAN_2012.pdf| Modifier and Type | Field and Description |
|---|---|
protected AcceptanceStrategy |
acceptConditions
Decides when to accept
|
protected NegotiationSession |
negotiationSession
Links to the negotiation domain
|
protected OfferingStrategy |
offeringStrategy
Decides what to offer
|
protected OMStrategy |
omStrategy
Selects which bid to send when using an opponent model
|
protected OpponentModel |
opponentModel
Approximates the utility of a bid for the opponent
|
protected OutcomeSpace |
outcomeSpace
Contains the space of possible bids
|
java.util.ArrayList<Pair<Bid,java.lang.String>> |
savedOutcomes
Store
Multi_AcceptanceCondition outcomes |
rand, timeline, userModel, utilitySpace| Constructor and Description |
|---|
BoaParty(AcceptanceStrategy ac,
java.util.Map<java.lang.String,java.lang.Double> acParams,
OfferingStrategy os,
java.util.Map<java.lang.String,java.lang.Double> osParams,
OpponentModel om,
java.util.Map<java.lang.String,java.lang.Double> omParams,
OMStrategy oms,
java.util.Map<java.lang.String,java.lang.Double> omsParams)
Stores all relevant values for initializing the components.
|
| Modifier and Type | Method and Description |
|---|---|
Action |
chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
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.
|
void |
cleanUp()
Clears the agent's variables.
|
void |
endSession(NegotiationResult result)
Method that first calls the endSession method of each component to
receiveMessage the session data and then stores the session data if it is
not empty and is changed.
|
AcceptanceStrategy |
getAcceptanceStrategy()
Returns the acceptance strategy of the agent.
|
java.lang.String |
getDescription() |
OfferingStrategy |
getOfferingStrategy()
Returns the offering strategy of the agent.
|
OpponentModel |
getOpponentModel()
Returns the opponent model of the agent.
|
void |
init(NegotiationInfo info)
Initializes the party, informing it of many negotiation details.
|
void |
receiveMessage(AgentID sender,
Action opponentAction)
This method is called to inform the party that another
NegotiationParty chose an Action. |
estimateUtilitySpace, generateRandomBid, getData, getDeadlines, getDomain, getLastReceivedAction, getNumberOfParties, getPartyId, getProtocol, getRandomValue, getTimeLine, getUserModel, getUtility, getUtilitySpace, getUtilityWithDiscount, isUncertain, negotiationEnded, toStringprotected AcceptanceStrategy acceptConditions
protected OfferingStrategy offeringStrategy
protected OpponentModel opponentModel
protected OMStrategy omStrategy
protected NegotiationSession negotiationSession
public java.util.ArrayList<Pair<Bid,java.lang.String>> savedOutcomes
Multi_AcceptanceCondition outcomesprotected OutcomeSpace outcomeSpace
public BoaParty(AcceptanceStrategy ac, java.util.Map<java.lang.String,java.lang.Double> acParams, OfferingStrategy os, java.util.Map<java.lang.String,java.lang.Double> osParams, OpponentModel om, java.util.Map<java.lang.String,java.lang.Double> omParams, OMStrategy oms, java.util.Map<java.lang.String,java.lang.Double> omsParams)
ac - acParams - os - osParams - om - omParams - oms - omsParams - public void init(NegotiationInfo info)
NegotiationPartyinit in interface NegotiationPartyinit in class AbstractNegotiationPartyinfo - information about the negotiation that this party is part of.public void receiveMessage(AgentID sender, Action opponentAction)
NegotiationPartyNegotiationParty chose an Action.receiveMessage in interface NegotiationPartyreceiveMessage in class AbstractNegotiationPartysender - The initiator of the action.This is either the AgentID, or
null if the sender is not an agent (e.g., the protocol).opponentAction - The action performedpublic Action chooseAction(java.util.List<java.lang.Class<? extends Action>> possibleActions)
NegotiationPartypossibleActions - List of all actions possible.Action.public OfferingStrategy getOfferingStrategy()
public OpponentModel getOpponentModel()
public AcceptanceStrategy getAcceptanceStrategy()
public void endSession(NegotiationResult result)
public void cleanUp()
public java.lang.String getDescription()