Contract

class negmas.situated.Contract(partners: List[str] = <factory>, agreement: Optional[Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]]] = None, annotation: Dict[str, Any] = <factory>, issues: List[negmas.outcomes.Issue] = <factory>, signed_at: int = -1, executed_at: int = -1, concluded_at: int = -1, nullified_at: int = -1, to_be_signed_at: int = -1, signatures: Dict[str, Optional[str]] = <factory>, mechanism_state: Optional[negmas.common.MechanismState] = None, mechanism_id: Optional[str] = None, id: str = <factory>)[source]

Bases: negmas.outcomes.OutcomeType

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: Union[negmas.outcomes.OutcomeType, Tuple[Union[int, float, str, list]], Dict[Union[int, str], Union[int, float, str, list]]] = 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[negmas.common.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