net.sourceforge.jasa.event
Class TransactionExecutedEvent
java.lang.Object
SimEvent
net.sourceforge.jasa.event.MarketEvent
net.sourceforge.jasa.event.TransactionExecutedEvent
public class TransactionExecutedEvent
- extends MarketEvent
An event that is fired every time an order is fulfilled.
-
-
Field Summary |
protected Order |
ask
The offers that led to this transaction. |
protected Order |
bid
The offers that led to this transaction. |
protected double |
price
The price at which the good was sold for. |
protected int |
quantity
The quantity of the good that was sold. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ask
protected Order ask
- The offers that led to this transaction.
bid
protected Order bid
- The offers that led to this transaction.
price
protected double price
- The price at which the good was sold for.
quantity
protected int quantity
- The quantity of the good that was sold.
TransactionExecutedEvent
public TransactionExecutedEvent(Market auction,
int time,
Order ask,
Order bid,
double price,
int quantity)
TransactionExecutedEvent
public TransactionExecutedEvent()
getAsk
public Order getAsk()
getBid
public Order getBid()
getPrice
public double getPrice()
getQuantity
public int getQuantity()
toString
public java.lang.String toString()
- Overrides:
toString
in class MarketEvent