net.sourceforge.jasa.agent
Interface TradingStrategy

All Superinterfaces:
MarketEventListener
All Known Subinterfaces:
AdaptiveStrategy, FixedQuantityStrategy
All Known Implementing Classes:
AbstractTradingStrategy, AdaptiveStrategyImpl, BeatTheQuoteStrategy, DiscreteLearnerStrategy, EquilibriumPriceStrategy, EstimatedEPStrategy, FixedDirectionStrategy, FixedPriceStrategy, FixedQuantityStrategyImpl, GDLStrategy, GDQStrategy, GDStrategy, KaplanStrategy, MarkupStrategyDecorator, MDPStrategy, MomentumStrategy, PriestVanTolStrategy, ProportionalMarkupStrategy, PureSimpleStrategy, RandomConstrainedStrategy, RandomUnconstrainedStrategy, SimpleMarkupStrategy, SimpleMomentumStrategy, StimuliResponseStrategy, TruthTellingStrategy, ZIPStrategy

public interface TradingStrategy
extends MarketEventListener

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

 

Method Summary
 int determineQuantity(Market auction)
           
 void initialise()
           
 boolean isBuy(Market auction)
           
 Order modifyOrder(Order shout, Market auction)
          Modify the trader's current shout according to the trading strategy being implemented.
 void setAgent(AbstractTradingAgent agent)
           
 void subscribeToEvents(EventScheduler scheduler)
           
 

Method Detail

modifyOrder

Order modifyOrder(Order shout,
                  Market auction)
Modify the trader's current shout according to the trading strategy being implemented.

Parameters:
shout - The shout to be updated
market - The market in which this strategy is being employed
Returns:
The new shout, or null if no shout is to be placed.

setAgent

void setAgent(AbstractTradingAgent agent)

determineQuantity

int determineQuantity(Market auction)

initialise

void initialise()

subscribeToEvents

void subscribeToEvents(EventScheduler scheduler)

isBuy

boolean isBuy(Market auction)