edu.cuny.cat.trader.strategy
Class DiscreteLearnerStrategy
java.lang.Object
java.util.Observable
edu.cuny.cat.trader.strategy.AbstractStrategy
edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl
edu.cuny.cat.trader.strategy.AdaptiveStrategyImpl
edu.cuny.cat.trader.strategy.DiscreteLearnerStrategy
- All Implemented Interfaces:
- AuctionEventListener, AdaptiveStrategy, FixedQuantityStrategy, Strategy, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Prototypeable, edu.cuny.obj.Resetable, java.io.Serializable, java.lang.Cloneable
- Direct Known Subclasses:
- StimuliResponseStrategy
public abstract class DiscreteLearnerStrategy
- extends AdaptiveStrategyImpl
- implements java.io.Serializable
A class representing a strategy in which we adapt our bids using a discrete
learning algorithm.
Parameters
base.markupscale
double >= 0 |
(scaling factor by which to multiply the output from the
learner) |
Default Base
discrete_learner_strategy |
- Version:
- $Revision: 1.15 $
- Author:
- Steve Phelps
- See Also:
- Serialized Form
Field Summary |
protected double |
markupScale
A scaling factor used to multiply-up the output from the learning
algorithm. |
static java.lang.String |
P_DEF_BASE
|
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.cuny.obj.Prototypeable |
protoClone |
Methods inherited from interface edu.cuny.obj.Resetable |
reset |
markupScale
protected double markupScale
- A scaling factor used to multiply-up the output from the learning
algorithm.
P_DEF_BASE
public static final java.lang.String P_DEF_BASE
- See Also:
- Constant Field Values
DiscreteLearnerStrategy
public DiscreteLearnerStrategy()
DiscreteLearnerStrategy
public DiscreteLearnerStrategy(AbstractTradingAgent agent)
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 FixedQuantityStrategyImpl
eventOccurred
public void eventOccurred(AuctionEvent event)
- Specified by:
eventOccurred
in interface AuctionEventListener
- Overrides:
eventOccurred
in class AdaptiveStrategyImpl
modifyShout
public boolean modifyShout(Shout.MutableShout shout)
- Description copied from class:
AbstractStrategy
- Modify the price and quantity of the given shout according to this
strategy.
- Overrides:
modifyShout
in class FixedQuantityStrategyImpl
- Returns:
- false if no shout is to be placed at this time
getMarkupScale
public double getMarkupScale()
setMarkupScale
public void setMarkupScale(double markupScale)
act
public abstract int act()
- Generate an action from the learning algorithm.
learn
public abstract void learn()
- Perform learning.
toString
public java.lang.String toString()
- Overrides:
toString
in class FixedQuantityStrategyImpl