uk.ac.liv.auction.core
Class AscendingAuctioneer
java.lang.Object
uk.ac.liv.auction.core.AbstractAuctioneer
uk.ac.liv.auction.core.KAuctioneer
uk.ac.liv.auction.core.AscendingAuctioneer
- All Implemented Interfaces:
- Auctioneer, java.lang.Cloneable, Parameterizable, ParameterizablePricing, Prototypeable, QuoteProvider, Resetable, java.io.Serializable
- public class AscendingAuctioneer
- extends KAuctioneer
- implements java.io.Serializable
Auctioneer for standard multi-unit english ascending auction.
- See Also:
- Serialized Form
| Methods inherited from class uk.ac.liv.auction.core.AbstractAuctioneer |
askIterator, bidIterator, endOfDayProcessing, getAuction, getQuote, newAsk, newBid, printState, protoClone, removeShout, reset, setAuction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reservePrice
protected double reservePrice
- The reservation price.
seller
protected TradingAgent seller
- The seller.
P_RESERVEPRICE
public static final java.lang.String P_RESERVEPRICE
- See Also:
- Constant Field Values
P_QUANTITY
public static final java.lang.String P_QUANTITY
- See Also:
- Constant Field Values
P_SELLER
public static final java.lang.String P_SELLER
- See Also:
- Constant Field Values
AscendingAuctioneer
public AscendingAuctioneer(Auction auction,
TradingAgent seller,
int quantity,
double reservePrice)
AscendingAuctioneer
public AscendingAuctioneer()
initialise
public void initialise()
- Overrides:
initialise in class AbstractAuctioneer
setup
public void setup(ec.util.ParameterDatabase parameters,
ec.util.Parameter base)
- Description copied from interface:
Parameterizable
- Initialise this object from a parameter database.
- Specified by:
setup in interface Parameterizable- Overrides:
setup in class KAuctioneer
endOfRoundProcessing
public void endOfRoundProcessing()
- Specified by:
endOfRoundProcessing in interface Auctioneer
endOfAuctionProcessing
public void endOfAuctionProcessing()
- Specified by:
endOfAuctionProcessing in interface Auctioneer
generateQuote
public void generateQuote()
- Specified by:
generateQuote in class AbstractAuctioneer
newShout
public void newShout(Shout shout)
throws IllegalShoutException
- Description copied from class:
AbstractAuctioneer
- Code for handling a new shout in the auction.
Subclasses should override this method if they wish
to provide different handling for different auction rules.
- Specified by:
newShout in interface Auctioneer- Overrides:
newShout in class AbstractAuctioneer
- Parameters:
shout - The new shout to be processed
- Throws:
IllegalShoutException - Thrown if the shout is invalid in some way.
shoutsVisible
public boolean shoutsVisible()
- Description copied from interface:
Auctioneer
- Return true if the shouts of others are visible.
- Specified by:
shoutsVisible in interface Auctioneer