RepeatFinalOfferOnly

class negmas.gb.RepeatFinalOfferOnly(n: int = 9223372036854775807)[source]

Bases: LocalOfferingConstraint

Attributes Summary

n

Methods Summary

__call__(state, history)

Base class for all offering constaints

eval_globally(source, state, history)

Attributes Documentation

n: int

Methods Documentation

__call__(state: ThreadState, history: list[ThreadState]) bool[source]

Base class for all offering constaints

Parameters:
  • offer (Outcome) – Outcome to be checked for validity

  • history (list[GBState]) – History of past states

Returns:

bool

eval_globally(source: str, state: GBState, history: list[GBState])