edu.cuny.cat.trader.strategy
Interface Strategy

All Superinterfaces:
AuctionEventListener, java.lang.Cloneable, edu.cuny.obj.Prototypeable, edu.cuny.obj.Resetable
All Known Subinterfaces:
AdaptiveStrategy, FixedQuantityStrategy
All Known Implementing Classes:
AbstractStrategy, AdaptiveStrategyImpl, DiscreteLearnerStrategy, FixedQuantityStrategyImpl, GDLStrategy, GDStrategy, MomentumStrategy, PriestVanTolStrategy, PureSimpleStrategy, RandomConstrainedStrategy, StimuliResponseStrategy, TruthTellingStrategy, ZIPStrategy, ZIQStrategy

public interface Strategy
extends edu.cuny.obj.Prototypeable, AuctionEventListener

Classes implementing this interface define trading strategies for round-robin traders.

Version:
$Revision: 1.11 $
Author:
Steve Phelps

Method Summary
 int determineQuantity()
           
 Shout modifyShout(Shout shout)
          Modify the trader's current shout according to the trading strategy being implemented.
 boolean requiresAuctionHistory()
           
 void setAgent(AbstractTradingAgent agent)
           
 
Methods inherited from interface edu.cuny.obj.Prototypeable
protoClone
 
Methods inherited from interface edu.cuny.obj.Resetable
reset
 
Methods inherited from interface edu.cuny.cat.event.AuctionEventListener
eventOccurred
 

Method Detail

modifyShout

Shout modifyShout(Shout shout)
Modify the trader's current shout according to the trading strategy being implemented.

Parameters:
shout - The shout to be updated
Returns:
The new shout, or null if no shout is to be placed.

setAgent

void setAgent(AbstractTradingAgent agent)

determineQuantity

int determineQuantity()

requiresAuctionHistory

boolean requiresAuctionHistory()