uk.ac.liv.auction.core
Class KAuctioneer

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

Field Summary
protected  MarketQuote clearingQuote
           
static java.lang.String P_PRICING
           
protected  KPricingPolicy pricingPolicy
           
 
Fields inherited from class uk.ac.liv.auction.core.AbstractAuctioneer
auction, currentQuote, shoutEngine
 
Constructor Summary
KAuctioneer()
           
KAuctioneer(Auction auction, KPricingPolicy pricingPolicy)
           
KAuctioneer(KPricingPolicy pricingPolicy)
           
 
Method Summary
protected  double askQuote()
           
protected  double bidQuote()
           
 void clear()
          Perform the clearing operation for the auction; match buyers with sellers and inform the auction of any deals.
 double determineClearingPrice(Shout bid, Shout ask)
           
 double getK()
           
 void setK(double k)
           
 void setPricingPolicy(KPricingPolicy pricingPolicy)
           
 void setup(ec.util.ParameterDatabase parameters, ec.util.Parameter base)
          Initialise this object from a parameter database.
 
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
 
Methods inherited from interface uk.ac.liv.auction.core.Auctioneer
endOfAuctionProcessing, endOfRoundProcessing, shoutsVisible
 

Field Detail

clearingQuote

protected MarketQuote clearingQuote

pricingPolicy

protected KPricingPolicy pricingPolicy

P_PRICING

public static final java.lang.String P_PRICING
See Also:
Constant Field Values
Constructor Detail

KAuctioneer

public KAuctioneer(Auction auction,
                   KPricingPolicy pricingPolicy)

KAuctioneer

public KAuctioneer(KPricingPolicy pricingPolicy)

KAuctioneer

public KAuctioneer()
Method Detail

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()