uk.ac.liv.auction.core
Class UniformPricingPolicy

java.lang.Object
  extended byuk.ac.liv.auction.core.KPricingPolicy
      extended byuk.ac.liv.auction.core.UniformPricingPolicy
All Implemented Interfaces:
Parameterizable, PricingPolicy, java.io.Serializable

public class UniformPricingPolicy
extends KPricingPolicy
implements java.io.Serializable

A pricing policy in which we set the transaction price in the interval between the ask quote and the bid quote as determined by the parameter k. The pricing policy is uniform in the sense that individual bid and ask prices are ignored, thus all agents performing transactions in the clearing operation will pay the same price.

Version:
$Revision: 1.7 $
Author:
Steve Phelps
See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.liv.auction.core.KPricingPolicy
k, P_K
 
Constructor Summary
UniformPricingPolicy()
           
UniformPricingPolicy(double k)
           
 
Method Summary
 double determineClearingPrice(Shout bid, Shout ask, MarketQuote clearingQuote)
           
 
Methods inherited from class uk.ac.liv.auction.core.KPricingPolicy
getK, kInterval, setK, setup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformPricingPolicy

public UniformPricingPolicy()

UniformPricingPolicy

public UniformPricingPolicy(double k)
Method Detail

determineClearingPrice

public double determineClearingPrice(Shout bid,
                                     Shout ask,
                                     MarketQuote clearingQuote)
Specified by:
determineClearingPrice in interface PricingPolicy