Contract

class negmas.situated.Contract(partners=<factory>, agreement=None, annotation=<factory>, issues=<factory>, signed_at=-1, executed_at=-1, concluded_at=-1, nullified_at=-1, to_be_signed_at=-1, signatures=<factory>, mechanism_state=None, mechanism_id=None, id=<factory>)[source]

Bases: object

A agreement definition which encapsulates an agreement with partners and extra information

Attributes Summary

agreement

The actual agreement of the negotiation in the form of an Outcome in the Issue space defined by issues

concluded_at

The time-step at which the contract was concluded (but it is still not binding until signed)

executed_at

The time-step at which the contract was executed/breached

mechanism_id

The Id of the mechanism that led to this contract

mechanism_state

The mechanism state at the contract conclusion

nullified_at

The time-step at which the contract was nullified after being signed.

signed_at

The time-step at which the contract was signed

to_be_signed_at

The time-step at which the contract should be signed

Attributes Documentation

agreement: Outcome | OutcomeSpace | None = None

The actual agreement of the negotiation in the form of an Outcome in the Issue space defined by issues

concluded_at: int = -1

The time-step at which the contract was concluded (but it is still not binding until signed)

executed_at: int = -1

The time-step at which the contract was executed/breached

mechanism_id: Optional[str] = None

The Id of the mechanism that led to this contract

mechanism_state: Optional[MechanismState] = None

The mechanism state at the contract conclusion

nullified_at: int = -1

The time-step at which the contract was nullified after being signed. That can happen if a partner declares bankruptcy

signed_at: int = -1

The time-step at which the contract was signed

to_be_signed_at: int = -1

The time-step at which the contract should be signed