edu.cuny.cat.market.pricing
Class ScheduleBalancingPricingPolicy

java.lang.Object
  extended by edu.cuny.cat.market.AuctioneerPolicy
      extended by edu.cuny.cat.market.pricing.PricingPolicy
          extended by edu.cuny.cat.market.pricing.KPricingPolicy
              extended by edu.cuny.cat.market.pricing.DiscriminatoryPricingPolicy
                  extended by edu.cuny.cat.market.pricing.ScheduleBalancingPricingPolicy
All Implemented Interfaces:
AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable

public class ScheduleBalancingPricingPolicy
extends DiscriminatoryPricingPolicy

A KPricingPolicy that adjusts the value of k such that the type of shouts that is outnumbered by the other type is favored. This aims to balance the scheduels of demand and supply so as to avoid low transaction success rate. The more asks than bids, the closer k to 0, or otherwise the closer to 1.

TODO: An exponential function is currently used to generate k. The function however is not symmetric for demand and supply. A new function should be used instead.

Version:
$Revision: 1.6 $
Author:
Jinzhong Niu

Field Summary
protected  int numOfAsks
           
protected  int numOfBids
           
 
Fields inherited from class edu.cuny.cat.market.pricing.KPricingPolicy
DEFAULT_K, k, P_DEF_BASE, P_K
 
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy
auctioneer
 
Constructor Summary
ScheduleBalancingPricingPolicy()
           
ScheduleBalancingPricingPolicy(double k)
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
 
Methods inherited from class edu.cuny.cat.market.pricing.DiscriminatoryPricingPolicy
determineClearingPrice
 
Methods inherited from class edu.cuny.cat.market.pricing.KPricingPolicy
getK, kInterval, setK, setup, toString
 
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy
getAuctioneer, initialize, reset, setAuctioneer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numOfAsks

protected int numOfAsks

numOfBids

protected int numOfBids
Constructor Detail

ScheduleBalancingPricingPolicy

public ScheduleBalancingPricingPolicy()

ScheduleBalancingPricingPolicy

public ScheduleBalancingPricingPolicy(double k)
Method Detail

eventOccurred

public void eventOccurred(AuctionEvent event)
Specified by:
eventOccurred in interface AuctionEventListener
Overrides:
eventOccurred in class AuctioneerPolicy