edu.cuny.cat.market.quoting
Class QuotingPolicy

java.lang.Object
  extended by edu.cuny.cat.market.AuctioneerPolicy
      extended by edu.cuny.cat.market.quoting.QuotingPolicy
All Implemented Interfaces:
AuctionEventListener, edu.cuny.config.param.Parameterizable, edu.cuny.obj.Resetable
Direct Known Subclasses:
DoubleSidedQuotingPolicy, SingleSidedQuotingPolicy

public abstract class QuotingPolicy
extends AuctioneerPolicy

The interface defined for the method of quote generation.

Version:
$Revision: 1.5 $
Author:
Jinzhong Niu

Field Summary
 
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy
auctioneer
 
Constructor Summary
QuotingPolicy()
           
 
Method Summary
abstract  double askQuote(ShoutEngine shoutEngine)
          gets the ask quote
abstract  double bidQuote(ShoutEngine shoutEngine)
          gets the bid quote
 double midQuote(ShoutEngine shoutEngine)
           
 
Methods inherited from class edu.cuny.cat.market.AuctioneerPolicy
eventOccurred, getAuctioneer, initialize, reset, setAuctioneer, setup, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QuotingPolicy

public QuotingPolicy()
Method Detail

askQuote

public abstract double askQuote(ShoutEngine shoutEngine)
gets the ask quote

Parameters:
shoutEngine - the shout engine processing shouts
Returns:
ask quote

bidQuote

public abstract double bidQuote(ShoutEngine shoutEngine)
gets the bid quote

Parameters:
shoutEngine - the shout engine processing shouts
Returns:
bid quote

midQuote

public double midQuote(ShoutEngine shoutEngine)
Parameters:
shoutEngine - the shout engine processing shouts
Returns:
the mid point between the ask quote and the bid quote.