net.sourceforge.jasa.event
Class TransactionExecutedEvent

java.lang.Object
  extended by SimEvent
      extended by net.sourceforge.jasa.event.MarketEvent
          extended by 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.
 
Fields inherited from class net.sourceforge.jasa.event.MarketEvent
auction, pTime, time
 
Constructor Summary
TransactionExecutedEvent()
           
TransactionExecutedEvent(Market auction, int time, Order ask, Order bid, double price, int quantity)
           
 
Method Summary
 Order getAsk()
           
 Order getBid()
           
 double getPrice()
           
 int getQuantity()
           
 java.lang.String toString()
           
 
Methods inherited from class net.sourceforge.jasa.event.MarketEvent
getAuction, getPhysicalTime, getTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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.

Constructor Detail

TransactionExecutedEvent

public TransactionExecutedEvent(Market auction,
                                int time,
                                Order ask,
                                Order bid,
                                double price,
                                int quantity)

TransactionExecutedEvent

public TransactionExecutedEvent()
Method Detail

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