net.sourceforge.jasa.market.auctioneer
Class ClearingHouseAuctioneer

java.lang.Object
  extended by net.sourceforge.jasa.market.auctioneer.AbstractAuctioneer
      extended by net.sourceforge.jasa.market.auctioneer.TransparentAuctioneer
          extended by net.sourceforge.jasa.market.auctioneer.ClearingHouseAuctioneer
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, MarketEventListener, Auctioneer, QuoteProvider
Direct Known Subclasses:
PeriodicClearingHouseAuctioneer

public class ClearingHouseAuctioneer
extends TransparentAuctioneer
implements java.io.Serializable

An auctioneer for a clearing house market. The clearing operation is performed at the end of every round.

See Also:
Serialized Form
 

Field Summary
protected  ZeroFundsAccount account
           
 
Fields inherited from class net.sourceforge.jasa.market.auctioneer.TransparentAuctioneer
acceptedShouts, lastAsk, lastBid, lastShout
 
Fields inherited from class net.sourceforge.jasa.market.auctioneer.AbstractAuctioneer
clearingPolicy, clearingQuote, currentQuote, market, orderBook, pricingPolicy
 
Constructor Summary
ClearingHouseAuctioneer(Market auction)
           
 
Method Summary
 void generateQuote()
           
 Account getAccount()
          Get the account which holds any budget surplus or deficit for the auctioneer.
 void onRoundClosed()
           
 
Methods inherited from class net.sourceforge.jasa.market.auctioneer.TransparentAuctioneer
getLastAsk, getLastBid, getLastShout, newShoutInternal, orderFilled, recordMatch, reset, shoutsVisible, transactionsOccurred
 
Methods inherited from class net.sourceforge.jasa.market.auctioneer.AbstractAuctioneer
askIterator, askQuote, bidIterator, bidQuote, checkShoutValidity, clear, clear, clear, determineClearingPrice, eventOccurred, getClearingPolicy, getClearingQuote, getMarket, getOrderBook, getPricingPolicy, getQuote, getUnmatchedAsks, getUnmatchedBids, initialise, newOrder, onEndOfDay, printState, protoClone, removeOrder, setClearingPolicy, setClearingQuote, setMarket, setOrderBook, setPricingPolicy, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

account

protected ZeroFundsAccount account
Constructor Detail

ClearingHouseAuctioneer

public ClearingHouseAuctioneer(Market auction)
Method Detail

generateQuote

public void generateQuote()
Specified by:
generateQuote in class AbstractAuctioneer

onRoundClosed

public void onRoundClosed()
Overrides:
onRoundClosed in class TransparentAuctioneer

getAccount

public Account getAccount()
Description copied from interface: Auctioneer
Get the account which holds any budget surplus or deficit for the auctioneer. This is useful when implementing non-budget-balanced mechanisms.

Specified by:
getAccount in interface Auctioneer