Condition

class negmas.situated.Condition(name, issues, ufuns, partner_types, index=0, partner_params=None, roles=None, annotation=None, scored_indices=None)[source]

Bases: object

A representation of a negotiation scenario in which a negotiator can be evaluated

Attributes Summary

annotation

Any extra annotation to add to the mechanism.

index

The index of the negotiator being evaluated in the list of negotiators passed to the mechanism

partner_params

Any parameters used to construct partners (must be the same length as partner_types)

roles

Roles of all negotiators (including the negotiator being evaluated) in order

scored_indices

Indices of negotiators to be scored in this negotiation.

Methods Summary

from_dict(d)

to_dict()

Attributes Documentation

annotation: dict[str, Any] | None = None

Any extra annotation to add to the mechanism.

index: int = 0

The index of the negotiator being evaluated in the list of negotiators passed to the mechanism

partner_params: tuple[dict[str, Any] | None, ...] | None = None

Any parameters used to construct partners (must be the same length as partner_types)

roles: tuple[str, ...] | None = None

Roles of all negotiators (including the negotiator being evaluated) in order

scored_indices: tuple[int, ...] | None = None

Indices of negotiators to be scored in this negotiation. None is equivalent to [self.index]

Methods Documentation

classmethod from_dict(d)[source]
to_dict()[source]