net.sourceforge.jasa.market.auctioneer
Class TransparentAuctioneer
java.lang.Object
net.sourceforge.jasa.market.auctioneer.AbstractAuctioneer
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
-
-
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 |
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
TransparentAuctioneer
public TransparentAuctioneer(Market auction)
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()