edu.cuny.cat.trader.strategy
Class GDLStrategy
java.lang.Object
java.util.Observable
edu.cuny.cat.trader.strategy.AbstractStrategy
edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl
edu.cuny.cat.trader.strategy.GDStrategy
edu.cuny.cat.trader.strategy.GDLStrategy
- All Implemented Interfaces:
- AuctionEventListener, FixedQuantityStrategy, Strategy, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Prototypeable, edu.cuny.obj.Resetable, java.io.Serializable, java.lang.Cloneable
public class GDLStrategy
- extends GDStrategy
A modified implementation of the Gjerstad Dickhaut strategy using a linear
interpolation instead of a cubic one in the original
GDStrategy
.
Default Base
- Version:
- $Revision: 1.17 $
- Author:
- Marek Marcinkiewicz
- See Also:
- Serialized Form
Method Summary |
protected void |
getMax(double a1,
double p1,
double a2,
double p2)
looks for the point in [a1, a2] producing max expected profit. |
java.lang.Object |
protoClone()
TODO: need update to correctly clone all the configuration. |
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.Resetable |
reset |
P_DEF_BASE
public static final java.lang.String P_DEF_BASE
- See Also:
- Constant Field Values
GDLStrategy
public GDLStrategy()
protoClone
public java.lang.Object protoClone()
- Description copied from class:
GDStrategy
- TODO: need update to correctly clone all the configuration.
- Specified by:
protoClone
in interface edu.cuny.obj.Prototypeable
- Overrides:
protoClone
in class GDStrategy
getMax
protected void getMax(double a1,
double p1,
double a2,
double p2)
- looks for the point in [a1, a2] producing max expected profit. It simply
checks every point in the range.
- Overrides:
getMax
in class GDStrategy
- Parameters:
a1
- p1
- a2
- p2
-