Class TitForTatConcession

java.lang.Object
com.tnsai.coordination.negotiation.strategy.TitForTatConcession
All Implemented Interfaces:
ConcessionStrategy

public final class TitForTatConcession extends Object implements ConcessionStrategy
Tit-for-tat concession strategy - mirrors the opponent's last concession.

If the opponent conceded X in their last move, this strategy concedes approximately the same amount. Falls back to linear if no opponent history.

Since:
0.0.2
  • Constructor Details

    • TitForTatConcession

      public TitForTatConcession()
  • Method Details

    • nextOffer

      public double nextOffer(int round, int maxRounds, double reservationValue, double currentValue, List<NegotiationOffer> history)
      Description copied from interface: ConcessionStrategy
      Computes the next offer value.
      Specified by:
      nextOffer in interface ConcessionStrategy
      Parameters:
      round - current round (1-based)
      maxRounds - maximum rounds
      reservationValue - minimum acceptable value
      currentValue - current offer value
      history - previous offers in this negotiation
      Returns:
      the next offer value