MechanismRoundResult

class negmas.mechanisms.MechanismRoundResult(broken=False, timedout=False, agreement=None, error=False, error_details='', waiting=False, exceptions=None, times=None)[source]

Bases: object

Represents the results of a negotiation round (step). This is what round() should return.

Attributes Summary

agreement

The agreement if any.

broken

True only if END_NEGOTIATION was selected by one agent

error

True if an error occurred in the mechanism

error_details

Error message

exceptions

A mapping from negotiator ID to a list of exceptions raised by that negotiator in this round

timedout

True if a timeout occurred.

times

A mapping from negotiator ID to the time it consumed during this round

waiting

whether to consider that the round is still running and call the round method again without increasing the step number

Attributes Documentation

agreement: Optional[Union[Collection[tuple], tuple]] = None

The agreement if any. Allows for a single outcome or a collection of outcomes

broken: bool = False

True only if END_NEGOTIATION was selected by one agent

error: bool = False

True if an error occurred in the mechanism

error_details: str = ''

Error message

exceptions: Optional[dict[str, list[str]]] = None

A mapping from negotiator ID to a list of exceptions raised by that negotiator in this round

timedout: bool = False

True if a timeout occurred. Usually not used

times: Optional[dict[str, float]] = None

A mapping from negotiator ID to the time it consumed during this round

waiting: bool = False

whether to consider that the round is still running and call the round method again without increasing the step number