OneshotDoNothingAgent

class scml.oneshot.OneshotDoNothingAgent(owner=None, ufun=None, name=None)[source]

Bases: scml.OneShotAgent

An agent that does nothing.

Remarks:

Note that this agent will lose money whenever it is at the edges (i.e. it is an input or an output agent trading in raw material or final product).

Methods Summary

propose(negotiator_id, state)

Proposes an offer to one of the partners.

respond(negotiator_id, state, offer)

Responds to an offer from one of the partners.

Methods Documentation

propose(negotiator_id, state)[source]

Proposes an offer to one of the partners.

Parameters
  • negotiator_id – ID of the negotiator (and partner)

  • state – Mechanism state including current step

Returns

an outcome to offer.

respond(negotiator_id, state, offer)[source]

Responds to an offer from one of the partners.

Parameters
  • negotiator_id – ID of the negotiator (and partner)

  • state – Mechanism state including current step

  • offer – The offer received.

Returns

A response type which can either be reject, accept, or end negotiation.

Remarks:

default behavior is to accept only if the current offer is the same or has a higher utility compared with what the agent would have proposed in the given state and reject otherwise