edu.cuny.cat.market.matching
Class AdaptiveThetaShoutEngine

java.lang.Object
  extended by edu.cuny.cat.market.AuctioneerPolicy
      extended by edu.cuny.cat.market.matching.ShoutEngine
          extended by edu.cuny.cat.market.matching.LazyMaxVolumeShoutEngine
              extended by edu.cuny.cat.market.matching.ThetaShoutEngine
                  extended by edu.cuny.cat.market.matching.AdaptiveThetaShoutEngine
All Implemented Interfaces:
AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable

public class AdaptiveThetaShoutEngine
extends ThetaShoutEngine

An adaptive version of ThetaShoutEngine in which theta starts at 0 and increases in the later rounds of a day so as to increase transaction volume and avoid making intra-marginal traders extremely unhappy at the same time.

Version:
$Revision: 1.4 $
Author:
Jinzhong Niu

Field Summary
protected  int dayLen
           
static int START_DAY
           
protected  int startRound
           
 
Fields inherited from class edu.cuny.cat.market.matching.ThetaShoutEngine
DEFAULT_THETA, orderly, P_DEF_BASE, P_ORDERLY, P_THETA, theta
 
Fields inherited from class edu.cuny.cat.market.matching.LazyMaxVolumeShoutEngine
asks, bids, bIn, bOut, matchingVolume, sIn, sOut, uniform
 
Fields inherited from class edu.cuny.cat.market.matching.ShoutEngine
AscendingOrder, DescendingOrder
 
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy
auctioneer
 
Constructor Summary
AdaptiveThetaShoutEngine()
           
 
Method Summary
 void eventOccurred(AuctionEvent event)
           
 
Methods inherited from class edu.cuny.cat.market.matching.ThetaShoutEngine
calculateEquilibriumQuantity, calculateMatchingQuantity, calculateUnorderlyQuantity, getDemandAboveLowestAsk, getOrderly, getTheta, matchShouts, setOrderly, setTheta, setup, toString, validateTheta
 
Methods inherited from class edu.cuny.cat.market.matching.LazyMaxVolumeShoutEngine
ascendingAskIterator, askIterator, bidIterator, descendingBidIterator, distributeShouts, distributeShoutsFromHead, distributeShoutsFromTail, getHighestMatchedAsk, getHighestUnmatchedBid, getLowestMatchedBid, getLowestUnmatchedAsk, getMatchedAsks, getMatchedBids, getMatchedVolume, getNumOfMatchedAsks, getNumOfMatchedBids, getNumOfUnmatchedAsks, getNumOfUnmatchedBids, getUnmatchedAsks, getUnmatchedBids, getUnmatchedDemand, getUnmatchedSupply, matchedAskIterator, matchedBidIterator, newShout, prettyPrint, printState, randomizeMatches, removeShout, reset, updateMatchedShouts
 
Methods inherited from class edu.cuny.cat.market.matching.ShoutEngine
getMatchedShouts
 
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy
getAuctioneer, initialize, setAuctioneer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

START_DAY

public static final int START_DAY
See Also:
Constant Field Values

dayLen

protected int dayLen

startRound

protected int startRound
Constructor Detail

AdaptiveThetaShoutEngine

public AdaptiveThetaShoutEngine()
Method Detail

eventOccurred

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