edu.cuny.cat.market.pricing
Class ScheduleBalancingPricingPolicy
java.lang.Object
  
edu.cuny.cat.market.AuctioneerPolicy
      
edu.cuny.cat.market.pricing.PricingPolicy
          
edu.cuny.cat.market.pricing.KPricingPolicy
              
edu.cuny.cat.market.pricing.DiscriminatoryPricingPolicy
                  
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
 
 
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
 
numOfAsks
protected int numOfAsks
numOfBids
protected int numOfBids
ScheduleBalancingPricingPolicy
public ScheduleBalancingPricingPolicy()
ScheduleBalancingPricingPolicy
public ScheduleBalancingPricingPolicy(double k)
eventOccurred
public void eventOccurred(AuctionEvent event)
- Specified by:
 eventOccurred in interface AuctionEventListener- Overrides:
 eventOccurred in class AuctioneerPolicy