| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cuny.cat.market.AuctioneerPolicy
edu.cuny.cat.market.accepting.ShoutAcceptingPolicy
edu.cuny.cat.market.accepting.OnlyNewShoutDecidingAcceptingPolicy
edu.cuny.cat.market.accepting.QuoteBeatingAcceptingPolicy
edu.cuny.cat.market.accepting.EquilibriumBeatingAcceptingPolicy
public class EquilibriumBeatingAcceptingPolicy
implements the shout-accepting rule under which a shout must be more competitive than an estimated equilibrium.
The equilibrium is estimated through some learning algorithm, e.g. sliding-window-average learning and widrowhoff learning, by training with transaction prices.
Parameters
| base.delta double >= 0 (0 by default)  | 
 (an absolute amount to relax the restriction on shouts) | 
| base.learner name of class, implementing MimicryLearner | 
 (the learning algorithm for estimating the equilibrium price) | 
Default Base
| equilibrium_beating_accepting | 
| Field Summary | |
|---|---|
protected static IllegalShoutException | 
askException
 | 
protected static IllegalShoutException | 
bidException
Reusable exceptions for performance  | 
protected  double | 
delta
A parameter used to adjust the equilibrium price estimate so as to relax the restriction.  | 
static java.lang.String | 
EST_EQUILIBRIUM_PRICE
 | 
protected  double | 
expectedHighestAsk
 | 
protected  double | 
expectedLowestBid
 | 
protected  edu.cuny.ai.learning.MimicryLearner | 
learner
 | 
static java.lang.String | 
P_DEF_BASE
 | 
static java.lang.String | 
P_DELTA
 | 
static java.lang.String | 
P_LEARNER
 | 
| Fields inherited from class edu.cuny.cat.market.accepting.QuoteBeatingAcceptingPolicy | 
|---|
DISCLAIMER | 
| Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy | 
|---|
auctioneer | 
| Constructor Summary | |
|---|---|
EquilibriumBeatingAcceptingPolicy()
 | 
|
| Method Summary | |
|---|---|
protected  void | 
askNotAnImprovementException()
 | 
protected  void | 
bidNotAnImprovementException()
 | 
 void | 
check(Shout shout)
checks whether  | 
 void | 
eventOccurred(AuctionEvent event)
 | 
 double | 
getDelta()
 | 
 edu.cuny.ai.learning.MimicryLearner | 
getLearner()
 | 
 void | 
reset()
resets the state to be the same as the policy is created and initialized.  | 
 void | 
setDelta(double delta)
 | 
 void | 
setLearner(edu.cuny.ai.learning.MimicryLearner learner)
 | 
 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.accepting.OnlyNewShoutDecidingAcceptingPolicy | 
|---|
check | 
| 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 | 
|---|
protected static IllegalShoutException bidException
protected static IllegalShoutException askException
protected double expectedHighestAsk
protected double expectedLowestBid
protected double delta
public static final java.lang.String P_DELTA
protected edu.cuny.ai.learning.MimicryLearner learner
public static final java.lang.String P_LEARNER
public static final java.lang.String P_DEF_BASE
public static final java.lang.String EST_EQUILIBRIUM_PRICE
| Constructor Detail | 
|---|
public EquilibriumBeatingAcceptingPolicy()
| Method Detail | 
|---|
public void setup(edu.cuny.config.param.ParameterDatabase parameters,
                  edu.cuny.config.param.Parameter base)
setup in interface edu.cuny.config.param.Parameterizablesetup in class AuctioneerPolicypublic void reset()
AuctioneerPolicy
reset in interface edu.cuny.obj.Resetablereset in class AuctioneerPolicy
public void check(Shout shout)
           throws IllegalShoutException
shout
can beat the estimated equilibrium.
check in class QuoteBeatingAcceptingPolicyshout - the shout being checked.
IllegalShoutException
protected void bidNotAnImprovementException()
                                     throws IllegalShoutException
IllegalShoutException
protected void askNotAnImprovementException()
                                     throws IllegalShoutException
IllegalShoutExceptionpublic void eventOccurred(AuctionEvent event)
eventOccurred in interface AuctionEventListenereventOccurred in class AuctioneerPolicypublic void setDelta(double delta)
public double getDelta()
public edu.cuny.ai.learning.MimicryLearner getLearner()
public void setLearner(edu.cuny.ai.learning.MimicryLearner learner)
public java.lang.String toString()
toString in class AuctioneerPolicy
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||