Interface ConcessionStrategy
- All Known Implementing Classes:
ExponentialConcession,LinearConcession,TimeDependentConcession,TitForTatConcession
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy for computing the next offer value during negotiation.
Implementations decide how much to concede each round based on the current round, reservation value, and negotiation history.
- Since:
- 0.0.2
-
Method Summary
Modifier and TypeMethodDescriptiondoublenextOffer(int round, int maxRounds, double reservationValue, double currentValue, List<NegotiationOffer> history) Computes the next offer value.
-
Method Details
-
nextOffer
double nextOffer(int round, int maxRounds, double reservationValue, double currentValue, List<NegotiationOffer> history) Computes the next offer value.- Parameters:
round- current round (1-based)maxRounds- maximum roundsreservationValue- minimum acceptable valuecurrentValue- current offer valuehistory- previous offers in this negotiation- Returns:
- the next offer value
-