net.sourceforge.jasa.event
Class MarketEvent

java.lang.Object
  extended by SimEvent
      extended by net.sourceforge.jasa.event.MarketEvent
Direct Known Subclasses:
AgentPolledEvent, EndOfDayEvent, MarketClosedEvent, MarketOpenEvent, OrderPlacedEvent, OrderReceivedEvent, RoundClosingEvent, TransactionExecutedEvent

public abstract class MarketEvent
extends SimEvent

Superclass for all types of market event.

 

Field Summary
protected  Market auction
          The market that this event occurred in.
protected  long pTime
          The physical time at which this event occurred.
protected  int time
          The time at which this event occurred.
 
Constructor Summary
MarketEvent(Market auction, int time)
           
 
Method Summary
 Market getAuction()
          Get the market that this event occured in.
 long getPhysicalTime()
           
 int getTime()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

auction

protected Market auction
The market that this event occurred in.


time

protected int time
The time at which this event occurred.


pTime

protected long pTime
The physical time at which this event occurred.

Constructor Detail

MarketEvent

public MarketEvent(Market auction,
                   int time)
Method Detail

getAuction

public Market getAuction()
Get the market that this event occured in.


getPhysicalTime

public long getPhysicalTime()

getTime

public int getTime()

toString

public java.lang.String toString()