MechanismStepResult
- class negmas.mechanisms.MechanismStepResult(state, completed=True, broken=False, timedout=False, agreement=None, error=False, error_details='', waiting=False, exceptions=None, times=None)[source]
Bases:
Generic
[TState
]Represents the results of a negotiation step.
This is what
round()
should return.Attributes Summary
The agreement if any.
True only if END_NEGOTIATION was selected by one negotiator.
Whether the current round is completed or not.
True if an error occurred in the mechanism.
Error message.
A mapping from negotiator ID to a list of exceptions raised by that negotiator in this round.
The returned state.
True if a timeout occurred.
A mapping from negotiator ID to the time it consumed during this round.
Whether to consider that the round is still running and call the round method again without increasing the step number.
Attributes Documentation
-
agreement:
tuple
|None
The agreement if any. Allows for a single outcome or a collection of outcomes.
-
exceptions:
dict
[str
,list
[str
]] |None
A mapping from negotiator ID to a list of exceptions raised by that negotiator in this round.
-
state:
TypeVar
(TState
, bound=MechanismState
) The returned state.
-
agreement: