Breach

class negmas.situated.Breach(contract, perpetrator, type, victims=NOTHING, level=1.0, step=-1, id=NOTHING)[source]

Bases: object

Attributes Summary

contract

The agreement being breached

id

Object name

level

Breach level defaulting to full breach (a number between 0 and 1)

perpetrator

ID of the agent committing the breach

step

The simulation step at which the breach occurred

type

refusal, product, money, penalty.

victims

Specific victims of the breach.

Methods Summary

as_dict()

Attributes Documentation

contract: Contract

The agreement being breached

id: str

Object name

level: float

Breach level defaulting to full breach (a number between 0 and 1)

perpetrator: str

ID of the agent committing the breach

step: int

The simulation step at which the breach occurred

type: str

refusal, product, money, penalty.

Type:

The type of the breach. Can be one of

victims: list[str]

Specific victims of the breach. If not given all partners in the agreement (except perpetrator) are considered victims

Methods Documentation

as_dict()[source]