uk.ac.liv.auction.core
Class AscendingAuctioneer

java.lang.Object
  extended byuk.ac.liv.auction.core.AbstractAuctioneer
      extended byuk.ac.liv.auction.core.KAuctioneer
          extended byuk.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

Field Summary
static java.lang.String P_QUANTITY
           
static java.lang.String P_RESERVEPRICE
           
static java.lang.String P_SELLER
           
protected  double reservePrice
          The reservation price.
protected  TradingAgent seller
          The seller.
 
Fields inherited from class uk.ac.liv.auction.core.KAuctioneer
clearingQuote, P_PRICING, pricingPolicy
 
Fields inherited from class uk.ac.liv.auction.core.AbstractAuctioneer
auction, currentQuote, shoutEngine
 
Constructor Summary
AscendingAuctioneer()
           
AscendingAuctioneer(Auction auction, TradingAgent seller, int quantity, double reservePrice)
           
 
Method Summary
 void endOfAuctionProcessing()
           
 void endOfRoundProcessing()
           
 void generateQuote()
           
 void initialise()
           
 void newShout(Shout shout)
          Code for handling a new shout in the auction.
 void setup(ec.util.ParameterDatabase parameters, ec.util.Parameter base)
          Initialise this object from a parameter database.
 boolean shoutsVisible()
          Return true if the shouts of others are visible.
 
Methods inherited from class uk.ac.liv.auction.core.KAuctioneer
askQuote, bidQuote, clear, determineClearingPrice, getK, setK, setPricingPolicy
 
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
 

Field Detail

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
Constructor Detail

AscendingAuctioneer

public AscendingAuctioneer(Auction auction,
                           TradingAgent seller,
                           int quantity,
                           double reservePrice)

AscendingAuctioneer

public AscendingAuctioneer()
Method Detail

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