edu.cuny.cat.market.quoting
Class SingleSidedQuotingPolicy

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

public class SingleSidedQuotingPolicy
extends QuotingPolicy

A quoting policy that sets the market quotes based on the boundary unmatched ask and bid in the auction's shout engine. It is named so because it uses only the competitive side to determine a market quote in contrast to the method in DoubleSidedQuotingPolicy.

Version:
$Revision: 1.4 $
Author:
Jinzhong Niu

Field Summary
 
Fields inherited from class edu.cuny.cat.market.AuctioneerPolicy
auctioneer
 
Constructor Summary
SingleSidedQuotingPolicy()
           
 
Method Summary
 double askQuote(ShoutEngine shoutEngine)
          gets the ask quote as the lowest unmatched ask.
 double bidQuote(ShoutEngine shoutEngine)
          gets the bid quote as the highest unmatched bid.
 
Methods inherited from class edu.cuny.cat.market.quoting.QuotingPolicy
midQuote
 
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

SingleSidedQuotingPolicy

public SingleSidedQuotingPolicy()
Method Detail

askQuote

public double askQuote(ShoutEngine shoutEngine)
gets the ask quote as the lowest unmatched ask.

Specified by:
askQuote in class QuotingPolicy
Parameters:
shoutEngine - the shout engine processing shouts
Returns:
ask quote

bidQuote

public double bidQuote(ShoutEngine shoutEngine)
gets the bid quote as the highest unmatched bid.

Specified by:
bidQuote in class QuotingPolicy
Parameters:
shoutEngine - the shout engine processing shouts
Returns:
bid quote