EndingNegotiator

class scml.oneshot.EndingNegotiator(assume_normalized=True, ufun=None, name=None, parent=None, owner=None, id=None, rational_proposal=True)[source]

Bases: negmas.sao.negotiators.SAONegotiator

Methods Summary

propose(state)

Propose an offer or None to refuse.

respond(state, offer)

Called to respond to an offer.

Methods Documentation

propose(state)[source]

Propose an offer or None to refuse.

Parameters

stateMechanismState giving current state of the negotiation.

Returns

The outcome being proposed or None to refuse to propose

Remarks:
  • This function guarantees that no agents can propose something with a utility value

respond(state, offer)[source]

Called to respond to an offer. This is the method that should be overriden to provide an acceptance strategy.

Parameters
  • state – a MechanismState giving current state of the negotiation.

  • offer – offer being tested

Returns

The response to the offer

Return type

ResponseType

Remarks:
  • The default implementation never ends the negotiation

  • The default implementation asks the negotiator to propose`() and accepts the `offer if its utility was at least as good as the offer that it would have proposed (and above the reserved value).