PassThroughSAONegotiator

class negmas.sao.PassThroughSAONegotiator(assume_normalized=True, ufun: Optional[negmas.utilities.UtilityFunction] = None, name: Optional[str] = None, parent: negmas.negotiators.Controller = None, owner: Agent = None, id: Optional[str] = None, rational_proposal=True)[source]

Bases: negmas.sao.SAONegotiator

A negotiator that acts as an end point to a parent Controller.

This negotiator simply calls its controler for everything.

Methods Summary

join(ami, state, *[, ufun, role])

Joins a negotiation.

on_negotiation_end(state)

Calls parent controller

on_negotiation_start(state)

Calls parent controller

propose(state)

Calls parent controller

respond(state, offer)

Calls parent controller

Methods Documentation

join(ami, state, *, ufun=None, role='agent')bool[source]

Joins a negotiation.

Remarks:

This method first gets permission from the parent controller by calling before_join on it and confirming the result is True, it then joins the negotiation and calls after_join of the controller to inform it that joining is completed if joining was successful.

on_negotiation_end(state: negmas.common.MechanismState)None[source]

Calls parent controller

on_negotiation_start(state: negmas.common.MechanismState)None[source]

Calls parent controller

propose(state: negmas.common.MechanismState)Optional[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]][source]

Calls parent controller

respond(state: negmas.common.MechanismState, offer: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]])negmas.outcomes.ResponseType[source]

Calls parent controller