RepeatLastOfferOnly

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

Bases: LocalOfferingConstraint

Attributes Summary

n

Methods Summary

__call__(state, history)

Base class for all offering constaints

eval(state, history)

eval_globally(source, state, history)

Attributes Documentation

n: int

Methods Documentation

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

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(state: ThreadState, history: list[ThreadState]) bool[source]
eval_globally(source: str, state: GBState, history: list[GBState])