MechanismRoundResult

class negmas.mechanisms.MechanismRoundResult(broken: bool = False, timedout: bool = False, agreement: Union[Collection[ForwardRef(‘Outcome’)], ForwardRef(‘Outcome’), NoneType] = None, error: bool = False, error_details: str = '', waiting: bool = False, exceptions: Optional[Dict[str, List[str]]] = None, times: Optional[Dict[str, float]] = None)[source]

Bases: object

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[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]], negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]] = 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