public class AC_InoxAgent extends AcceptanceStrategy
helper, offeringStrategy, opponentModel
negotiationSession
Constructor and Description |
---|
AC_InoxAgent()
Empty constructor.
|
AC_InoxAgent(NegotiationSession negoSession,
OfferingStrategy strat,
OpponentModel oppModel)
Regular constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
acceptUtil(double t)
Method that returns the minimal utility at which we accept an
opponents offer.
|
Actions |
determineAcceptability()
Method which returns the action selected by this acceptance strategy.
|
void |
endNegotiation(NegotiationResult result)
Method used for saving results between sessions.
|
void |
init(NegotiationSession negoSession,
OfferingStrategy strat,
OpponentModel oppModel,
java.util.HashMap<java.lang.String,java.lang.Double> parameters)
Initialization function.
|
isMAC, loadData, printParameters, setOpponentUtilitySpace, storeData
endSession, getParameters, init
public AC_InoxAgent()
public AC_InoxAgent(NegotiationSession negoSession, OfferingStrategy strat, OpponentModel oppModel)
public void init(NegotiationSession negoSession, OfferingStrategy strat, OpponentModel oppModel, java.util.HashMap<java.lang.String,java.lang.Double> parameters) throws java.lang.Exception
init
in class AcceptanceStrategy
negoSession
- state of the negotiation.strat
- of the agent.parameters
- of the acceptance strategy.java.lang.Exception
- thrown when initializing the acceptance strategy fails.public Actions determineAcceptability()
determineAcceptability
in class AcceptanceStrategy
public double acceptUtil(double t)
t
- Normalized current time in the negotiationpublic void endNegotiation(NegotiationResult result)