uk.ac.liv.auction.zi
Class ZIPStrategy

java.lang.Object
  extended byuk.ac.liv.auction.agent.AbstractStrategy
      extended byuk.ac.liv.auction.agent.FixedQuantityStrategyImpl
          extended byuk.ac.liv.auction.agent.AdaptiveStrategyImpl
              extended byuk.ac.liv.auction.agent.MomentumStrategy
                  extended byuk.ac.liv.auction.zi.ZIPStrategy
All Implemented Interfaces:
AdaptiveStrategy, AuctionEventListener, java.lang.Cloneable, FixedQuantityStrategy, Parameterizable, Prototypeable, Resetable, java.io.Serializable, Strategy

public class ZIPStrategy
extends MomentumStrategy
implements 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.25 $
Author:
Steve Phelps
See Also:
Serialized Form

Field Summary
 
Fields inherited from class uk.ac.liv.auction.agent.MomentumStrategy
currentPrice, initialMarginDistribution, lastShout, lastShoutAccepted, learner, P_LEARNER, P_SCALING, perterbationDistribution, scaling, trAskPrice, trBidPrice, trPrice
 
Fields inherited from class uk.ac.liv.auction.agent.AbstractStrategy
agent, auction, currentShout
 
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 uk.ac.liv.auction.agent.MomentumStrategy
adjustMargin, agentPolled, calculatePrice, endOfRound, eventOccurred, getCurrentPrice, getLastShout, getLearner, getScaling, getTrAskPrice, getTrBidPrice, getTrPrice, initialise, isLastShoutAccepted, modifyShout, perterb, setLearner, setMargin, setup, shoutPlaced, targetMargin, transactionExecuted
 
Methods inherited from class uk.ac.liv.auction.agent.FixedQuantityStrategyImpl
determineQuantity, getQuantity, setQuantity
 
Methods inherited from class uk.ac.liv.auction.agent.AbstractStrategy
getAgent, modifyShout, reset, setAgent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface uk.ac.liv.util.Resetable
reset
 
Methods inherited from interface uk.ac.liv.auction.agent.Strategy
determineQuantity, modifyShout, setAgent
 

Constructor Detail

ZIPStrategy

public ZIPStrategy(AbstractTradingAgent agent)

ZIPStrategy

public ZIPStrategy()
Method Detail

protoClone

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

adjustMargin

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

sellerStrategy

protected void sellerStrategy()

buyerStrategy

protected void buyerStrategy()