edu.cuny.cat.market.matching
Class SplineThetaShoutEngineWithNumberedParam

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.SplineThetaShoutEngine
                      extended by edu.cuny.cat.market.matching.SplineThetaShoutEngineWithNumberedParam
All Implemented Interfaces:
AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable

public class SplineThetaShoutEngineWithNumberedParam
extends SplineThetaShoutEngine

An parameterized version of SplineThetaShoutEngine where thetas are enumerated as numeric values separately in the parameter database.

Parameters

base .n
3 <= int
the number of knot points for interpolating
base .i
-1<=double<=1
the ith knot point for interpolating

Version:
$Revision: 1.4 $
Author:
Jinzhong Niu

Field Summary
static java.lang.String P_NUM
           
protected  double[] paramThetas
           
 
Fields inherited from class edu.cuny.cat.market.matching.SplineThetaShoutEngine
spline, thetas
 
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
SplineThetaShoutEngineWithNumberedParam()
           
 
Method Summary
 void initialize()
          initializes after parameters are set via either setters, constructors, or parameter files.
 void setParamThetas(double[] paramThetas)
           
 void setup(edu.cuny.config.param.ParameterDatabase parameters, edu.cuny.config.param.Parameter base)
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cuny.cat.market.matching.SplineThetaShoutEngine
eventOccurred, setThetas, setupSpline
 
Methods inherited from class edu.cuny.cat.market.matching.ThetaShoutEngine
calculateEquilibriumQuantity, calculateMatchingQuantity, calculateUnorderlyQuantity, getDemandAboveLowestAsk, getOrderly, getTheta, matchShouts, setOrderly, setTheta, 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, setAuctioneer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

P_NUM

public static final java.lang.String P_NUM
See Also:
Constant Field Values

paramThetas

protected double[] paramThetas
Constructor Detail

SplineThetaShoutEngineWithNumberedParam

public SplineThetaShoutEngineWithNumberedParam()
Method Detail

setup

public void setup(edu.cuny.config.param.ParameterDatabase parameters,
                  edu.cuny.config.param.Parameter base)
Specified by:
setup in interface edu.cuny.config.param.Parameterizable
Overrides:
setup in class ThetaShoutEngine

initialize

public void initialize()
Description copied from class: AuctioneerPolicy
initializes after parameters are set via either setters, constructors, or parameter files.

Overrides:
initialize in class AuctioneerPolicy

setParamThetas

public void setParamThetas(double[] paramThetas)

toString

public java.lang.String toString()
Overrides:
toString in class SplineThetaShoutEngine