SAONMI
- class negmas.sao.SAONMI(id, n_outcomes, outcome_space, time_limit, step_time_limit, negotiator_time_limit, n_steps, dynamic_entry, max_n_agents, annotation=<factory>, end_on_no_response=True, publish_proposer=True, publish_n_acceptances=False)[source]
Bases:
negmas.common.NegotiatorMechanismInterface
Attributes Summary
Gets the IDs of all agents owning all negotiators
Gets the names of all agents owning all negotiators
Returns the
outcome_space
as aCartesianOutcomeSpace
or raises aValueError
if that was not possible.Syntactic sugar for state.n_negotiators
Gets the IDs of all negotiators
Gets the namess of all negotiators
All outcomes for discrete outcome spaces or None for continuous outcome spaces.
Returns the parameters used to initialize the mechanism.
- rtype
The protocol requirements
Access the current state of the mechanism.
Methods Summary
asdict
()Converts the object to a dict containing all fields
discrete_outcome_space
([levels, max_cardinality])Returns a stable discrete version of the given outcome-space
discrete_outcomes
([max_cardinality])A discrete set of outcomes that spans the outcome space
keys
()random_outcomes
([n])A set of random outcomes from the outcome-space of this negotiation
values
()Attributes Documentation
- cartesian_outcome_space
Returns the
outcome_space
as aCartesianOutcomeSpace
or raises aValueError
if that was not possible.Remarks:
Useful for negotiators that only work with
CartesianOutcomeSpace
s (i.e.GeniusNegotiator
)
- Return type
- outcomes
All outcomes for discrete outcome spaces or None for continuous outcome spaces. See
discrete_outcomes
- Return type
Iterable[Outcome] | None
- params
Returns the parameters used to initialize the mechanism.
- participants
- Return type
- requirements
The protocol requirements
- Return type
- Returns
A dict of str/Any pairs giving the requirements
- state
Access the current state of the mechanism.
Remarks:
Whenever a method receives a
AgentMechanismInterface
object, it can always access the current state of the protocol by accessing this property.
- Return type
Methods Documentation
- asdict()
Converts the object to a dict containing all fields
- discrete_outcome_space(levels=5, max_cardinality=100000)
Returns a stable discrete version of the given outcome-space
- Return type
- discrete_outcomes(max_cardinality=inf)
A discrete set of outcomes that spans the outcome space
- keys()
- random_outcomes(n=1)
A set of random outcomes from the outcome-space of this negotiation
- values()