edu.cuny.cat.trader.strategy
Class ZIPStrategy

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.AdaptiveStrategyImpl
                  extended by edu.cuny.cat.trader.strategy.MomentumStrategy
                      extended by edu.cuny.cat.trader.strategy.ZIPStrategy
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

public class ZIPStrategy
extends MomentumStrategy
implements edu.cuny.obj.Prototypeable

An implementation of the Zero-Intelligence-Plus (ZIP) strategy. See:

"Minimal Intelligence Agents for Bargaining Behaviours in Market-based Environments" Dave Cliff 1997.

Version:
$Revision: 1.13 $
Author:
Steve Phelps
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.cuny.cat.trader.strategy.MomentumStrategy
absolutePerterbationDistribution, currentPrice, initialMarginDistribution, lastShout, lastShoutAccepted, lastShoutPrice, learner, P_DEF_BASE, P_LEARNER, P_SCALING, relativePerterbationDistribution, scaling
 
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
ZIPStrategy()
           
ZIPStrategy(AbstractTradingAgent agent)
           
 
Method Summary
protected  void adjustMargin()
           
protected  void buyerStrategy()
           
 java.lang.Object protoClone()
           
protected  void sellerStrategy()
           
 
Methods inherited from class edu.cuny.cat.trader.strategy.MomentumStrategy
adjustMargin, calculatePrice, eventOccurred, getCurrentPrice, getLastShout, getLearner, getScaling, initMargin, isLastShoutAccepted, modifyShout, perterb, processDayClosed, processLastShout, requiresAuctionHistory, setLearner, setMargin, setScaling, setup, shoutPosted, targetMargin, toString, transactionPosted
 
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
determineQuantity, modifyShout, setAgent
 

Constructor Detail

ZIPStrategy

public ZIPStrategy()

ZIPStrategy

public ZIPStrategy(AbstractTradingAgent agent)
Method Detail

protoClone

public java.lang.Object protoClone()
Specified by:
protoClone in interface edu.cuny.obj.Prototypeable
Overrides:
protoClone in class AbstractStrategy

adjustMargin

protected void adjustMargin()
Specified by:
adjustMargin in class MomentumStrategy

sellerStrategy

protected void sellerStrategy()

buyerStrategy

protected void buyerStrategy()