edu.cuny.cat.trader.marketselection
Class AdaptiveMarketSelectionStrategy
java.lang.Object
java.util.Observable
edu.cuny.cat.trader.marketselection.AbstractMarketSelectionStrategy
edu.cuny.cat.trader.marketselection.AdaptiveMarketSelectionStrategy
- All Implemented Interfaces:
- edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
- Direct Known Subclasses:
- StimuliResponseMarketSelectionStrategy
public class AdaptiveMarketSelectionStrategy
- extends AbstractMarketSelectionStrategy
An adaptive market selection strategy using a discrete learner, which learns
and makes decision on choosing market.
Parameters
base.learner
name of class, implementing
DiscreteLearner |
(the learning algorithm to adapt market selection) |
Default Base
adaptive_market_selection_strategy |
- Version:
- $Revision: 1.19 $
- Author:
- Jinzhong Niu
Field Summary |
protected edu.cuny.ai.learning.DiscreteLearner |
learner
|
static java.lang.String |
P_DEF_BASE
|
static java.lang.String |
P_LEARNER
|
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 |
P_LEARNER
public static final java.lang.String P_LEARNER
- See Also:
- Constant Field Values
P_DEF_BASE
public static final java.lang.String P_DEF_BASE
- See Also:
- Constant Field Values
learner
protected edu.cuny.ai.learning.DiscreteLearner learner
AdaptiveMarketSelectionStrategy
public AdaptiveMarketSelectionStrategy()
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 AbstractMarketSelectionStrategy
reset
public void reset()
- Specified by:
reset
in interface edu.cuny.obj.Resetable
- Overrides:
reset
in class AbstractMarketSelectionStrategy
setupMarkets
protected void setupMarkets(java.util.Collection<Specialist> marketColl)
- Description copied from class:
AbstractMarketSelectionStrategy
- initiates specialists traders may register with in the game.
- Overrides:
setupMarkets
in class AbstractMarketSelectionStrategy
- Parameters:
marketColl
- the collection of specialists participating in the game
selectMarket
public void selectMarket()
- Description copied from class:
AbstractMarketSelectionStrategy
- selects a specialist from the list of active ones in the game, which is
stored in
AbstractMarketSelectionStrategy.activeMarkets
.
- Specified by:
selectMarket
in class AbstractMarketSelectionStrategy
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractMarketSelectionStrategy