Package jadex.bdi.planlib.protocols
Interface IOfferGenerator
-
- All Known Implementing Classes:
ExponentialPriceCalculator,LinearPriceCalculator
public interface IOfferGeneratorThe interface for calculating offers of auctions (e.g. typically prices or sth. similar)- See Also:
LinearPriceCalculator,ExponentialPriceCalculator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ComparablegetCurrentOffer()Returns the current offer for the round.java.lang.ComparablegetLastOffer()Returns the offer for the last round.java.lang.ComparablegetLimitOffer()Returns the limit offer to be reached in order to terminate successfully.intgetRound()Get the round.java.lang.ComparablegetStartOffer()Returns the start offer for the auction.voidsetNextRound()Increase the round.
-
-
-
Method Detail
-
getCurrentOffer
java.lang.Comparable getCurrentOffer()
Returns the current offer for the round.- Returns:
- The current offer.
-
getLastOffer
java.lang.Comparable getLastOffer()
Returns the offer for the last round.- Returns:
- The last offer.
-
getLimitOffer
java.lang.Comparable getLimitOffer()
Returns the limit offer to be reached in order to terminate successfully.- Returns:
- Minimal/maximal offer for this auction to terminate.
-
getStartOffer
java.lang.Comparable getStartOffer()
Returns the start offer for the auction.- Returns:
- Start offer.
-
getRound
int getRound()
Get the round.- Returns:
- The round.
-
setNextRound
void setNextRound()
Increase the round.
-
-