uk.ac.liv.auction.core
Class MarketQuote
java.lang.Object
uk.ac.liv.auction.core.MarketQuote
- All Implemented Interfaces:
- java.io.Serializable
- public class MarketQuote
- extends java.lang.Object
- implements java.io.Serializable
A price quote summarising the current state of an auction.
- Version:
- $Revision: 1.13 $
- Author:
- Steve Phelps
- See Also:
- Serialized Form
|
Field Summary |
protected double |
ask
The current ask-quote. |
protected double |
bid
The current bid-quote. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ask
protected double ask
- The current ask-quote.
Buyers need to beat this in order for their offers to get matched.
bid
protected double bid
- The current bid-quote.
Sellers need to ask less than this in order for their offers to get matched.
MarketQuote
public MarketQuote(double ask,
double bid)
MarketQuote
public MarketQuote(Shout ask,
Shout bid)
setAsk
public void setAsk(double ask)
setBid
public void setBid(double bid)
getAsk
public double getAsk()
getBid
public double getBid()
toString
public java.lang.String toString()