support.Ticker
Class TickerEvent
java.lang.Object
|
+--support.Ticker.TickerEvent
- Direct Known Subclasses:
- BoughtEvent, BuyEvent, CancelEvent, SellEvent, SoldEvent, SpreadEvent
- public abstract class TickerEvent
- extends java.lang.Object
|
Method Summary |
int |
id()
|
int |
price()
|
static java.lang.String |
printInt(int toprint,
int width,
char fill)
hacks around the lack of printf; stolen from StandardOps.java
in Flight. |
static java.lang.String |
printString(java.lang.String toprint,
int width,
char fill)
also hacks printf: this does the equivalent of %14s |
static java.lang.String |
printStringRight(java.lang.String toprint,
int width,
char fill)
also hacks printf: this does the equivalent of %-14s |
void |
setID(int id)
|
void |
setPrice(int price)
|
void |
setSize(int size)
|
int |
size()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
id
public int id()
- Returns:
- The event identification number
size
public int size()
- Returns:
- The number of shares involved
price
public int price()
- Returns:
- The proposed price for the shares
setID
public void setID(int id)
setSize
public void setSize(int size)
setPrice
public void setPrice(int price)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
printInt
public static java.lang.String printInt(int toprint,
int width,
char fill)
- hacks around the lack of printf; stolen from StandardOps.java
in Flight.
printStringRight
public static java.lang.String printStringRight(java.lang.String toprint,
int width,
char fill)
- also hacks printf: this does the equivalent of %-14s
printString
public static java.lang.String printString(java.lang.String toprint,
int width,
char fill)
- also hacks printf: this does the equivalent of %14s