Class LinearConcession
java.lang.Object
com.tnsai.coordination.negotiation.strategy.LinearConcession
- All Implemented Interfaces:
ConcessionStrategy
Linear concession strategy - concedes at a constant rate per round.
The offer decreases linearly from the current value toward the reservation value over the remaining rounds.
- Since:
- 0.0.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublenextOffer(int round, int maxRounds, double reservationValue, double currentValue, List<NegotiationOffer> history) Computes the next offer value.
-
Constructor Details
-
LinearConcession
public LinearConcession()
-
-
Method Details
-
nextOffer
public double nextOffer(int round, int maxRounds, double reservationValue, double currentValue, List<NegotiationOffer> history) Description copied from interface:ConcessionStrategyComputes the next offer value.- Specified by:
nextOfferin interfaceConcessionStrategy- 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
-