uk.ac.liv.auction.core
Class KAuctioneer
java.lang.Object
uk.ac.liv.auction.core.AbstractAuctioneer
uk.ac.liv.auction.core.KAuctioneer
- All Implemented Interfaces:
- Auctioneer, java.lang.Cloneable, Parameterizable, ParameterizablePricing, Prototypeable, QuoteProvider, Resetable, java.io.Serializable
- Direct Known Subclasses:
- AscendingAuctioneer, KContinuousDoubleAuctioneer, KDoubleAuctioneer
- public abstract class KAuctioneer
- extends AbstractAuctioneer
- implements java.io.Serializable, ParameterizablePricing, Parameterizable
Abstract superclass for auctioneers who set transaction-price
according to the parameter k.
Parameters
base.pricing
class inherits uk.ac.liv.auction.KPricingPolicy |
(the pricing policy to use) |
- Version:
- $Revision: 1.8 $
- Author:
- Steve Phelps
- See Also:
- Serialized Form
| Methods inherited from class uk.ac.liv.auction.core.AbstractAuctioneer |
askIterator, bidIterator, endOfDayProcessing, generateQuote, getAuction, getQuote, initialise, newAsk, newBid, newShout, printState, protoClone, removeShout, reset, setAuction |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
clearingQuote
protected MarketQuote clearingQuote
pricingPolicy
protected KPricingPolicy pricingPolicy
P_PRICING
public static final java.lang.String P_PRICING
- See Also:
- Constant Field Values
KAuctioneer
public KAuctioneer(Auction auction,
KPricingPolicy pricingPolicy)
KAuctioneer
public KAuctioneer(KPricingPolicy pricingPolicy)
KAuctioneer
public KAuctioneer()
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
setK
public void setK(double k)
- Specified by:
setK in interface ParameterizablePricing
getK
public double getK()
- Specified by:
getK in interface ParameterizablePricing
setPricingPolicy
public void setPricingPolicy(KPricingPolicy pricingPolicy)
clear
public void clear()
- Description copied from interface:
Auctioneer
- Perform the clearing operation for the auction;
match buyers with sellers and inform the auction
of any deals.
- Specified by:
clear in interface Auctioneer
determineClearingPrice
public double determineClearingPrice(Shout bid,
Shout ask)
bidQuote
protected double bidQuote()
askQuote
protected double askQuote()