net.sourceforge.jasa.market.auctioneer
Class TransparentAuctioneer

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

public abstract class TransparentAuctioneer
extends AbstractAuctioneer

See Also:
Serialized Form
 

Field Summary
protected  java.util.HashSet<Order> acceptedShouts
          The set of shouts that have been matched in the current round.
protected  Order lastAsk
           
protected  Order lastBid
           
protected  Order lastShout
           
 
Fields inherited from class net.sourceforge.jasa.market.auctioneer.AbstractAuctioneer
clearingPolicy, clearingQuote, currentQuote, market, orderBook, pricingPolicy
 
Constructor Summary
TransparentAuctioneer(Market auction)
           
 
Method Summary
 Order getLastAsk()
           
 Order getLastBid()
           
 Order getLastShout()
           
protected  void newShoutInternal(Order shout)
           
 void onRoundClosed()
           
 boolean orderFilled(Order shout)
           
 void recordMatch(Order ask, Order bid)
           
 void reset()
           
 boolean shoutsVisible()
          Return true if the shouts of others are visible.
 boolean transactionsOccurred()
           
 
Methods inherited from class net.sourceforge.jasa.market.auctioneer.AbstractAuctioneer
askIterator, askQuote, bidIterator, bidQuote, checkShoutValidity, clear, clear, clear, determineClearingPrice, eventOccurred, generateQuote, 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
 
Methods inherited from interface net.sourceforge.jasa.market.auctioneer.Auctioneer
getAccount
 

Field Detail

acceptedShouts

protected java.util.HashSet<Order> acceptedShouts
The set of shouts that have been matched in the current round.


lastAsk

protected Order lastAsk

lastBid

protected Order lastBid

lastShout

protected Order lastShout
Constructor Detail

TransparentAuctioneer

public TransparentAuctioneer(Market auction)
Method Detail

shoutsVisible

public boolean shoutsVisible()
Description copied from interface: Auctioneer
Return true if the shouts of others are visible.


recordMatch

public void recordMatch(Order ask,
                        Order bid)
Overrides:
recordMatch in class AbstractAuctioneer

newShoutInternal

protected void newShoutInternal(Order shout)
                         throws DuplicateShoutException
Overrides:
newShoutInternal in class AbstractAuctioneer
Throws:
DuplicateShoutException

orderFilled

public boolean orderFilled(Order shout)
                    throws ShoutsNotVisibleException
Throws:
ShoutsNotVisibleException

transactionsOccurred

public boolean transactionsOccurred()
                             throws ShoutsNotVisibleException
Throws:
ShoutsNotVisibleException

onRoundClosed

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

reset

public void reset()
Overrides:
reset in class AbstractAuctioneer

getLastAsk

public Order getLastAsk()

getLastBid

public Order getLastBid()

getLastShout

public Order getLastShout()