edu.cuny.cat.trader.strategy
Class GDLStrategy

java.lang.Object
  extended by java.util.Observable
      extended by edu.cuny.cat.trader.strategy.AbstractStrategy
          extended by edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl
              extended by edu.cuny.cat.trader.strategy.GDStrategy
                  extended by 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

gdl_strategy

Version:
$Revision: 1.17 $
Author:
Marek Marcinkiewicz
See Also:
Serialized Form

Field Summary
static java.lang.String P_DEF_BASE
           
 
Fields inherited from class edu.cuny.cat.trader.strategy.GDStrategy
DEFAULT_MAX_PRICE, historicalReport, max, maxPoint, maxPrice, maxProb, MIN_INTERPOLATION_POINTS, P_HISTORY, P_MAXPRICE
 
Fields inherited from class edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl
quantity
 
Fields inherited from class edu.cuny.cat.trader.strategy.AbstractStrategy
agent, currentShout, MIN_PRICE_DIFFERENCE
 
Constructor Summary
GDLStrategy()
           
 
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 edu.cuny.cat.trader.strategy.GDStrategy
calculateProbability, eventOccurred, getHistoricalReport, modifyShout, requiresAuctionHistory, setup, toString
 
Methods inherited from class edu.cuny.cat.trader.strategy.FixedQuantityStrategyImpl
determineQuantity, getQuantity, setQuantity
 
Methods inherited from class edu.cuny.cat.trader.strategy.AbstractStrategy
getAgent, initialize, modifyShout, reset, setAgent
 
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
 
Methods inherited from interface edu.cuny.cat.trader.strategy.Strategy
modifyShout, setAgent
 

Field Detail

P_DEF_BASE

public static final java.lang.String P_DEF_BASE
See Also:
Constant Field Values
Constructor Detail

GDLStrategy

public GDLStrategy()
Method Detail

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 -