edu.cuny.cat.event
Class AuctionEvent

java.lang.Object
  extended by edu.cuny.cat.event.AuctionEvent
All Implemented Interfaces:
edu.cuny.event.Event<AuctionEventListener>
Direct Known Subclasses:
AvailableMarketsAnnouncedEvent, AvailableTradersAnnouncedEvent, ClientStateUpdatedEvent, DayClosedEvent, DayInitPassEvent, DayOpenedEvent, DayOpeningEvent, DayStatPassEvent, FeesAnnouncedEvent, FundTransferEvent, GameOverEvent, GameStartedEvent, GameStartingEvent, IdAssignedEvent, PrivateValueAssignedEvent, ProfitAnnouncedEvent, RegisteredTradersAnnouncedEvent, RegistrationEvent, RoundClosedEvent, RoundClosingEvent, RoundOpenedEvent, RoundStatPassEvent, ShoutPlacedEvent, ShoutPostedEvent, ShoutReceivedEvent, ShoutRejectedEvent, SimulationOverEvent, SimulationStartedEvent, SpecialistCheckInEvent, SubscriptionEvent, TraderCheckInEvent, TransactionExecutedEvent, TransactionPostedEvent, TransactionRejectedEvent

public abstract class AuctionEvent
extends java.lang.Object
implements edu.cuny.event.Event<AuctionEventListener>

Superclass for all types of auction event.

Each auction event carries a time stamp, including current day, current round, and how many ticks into the round.

Version:
$Revision: 1.11 $
Author:
Jinzhong Niu

Field Summary
protected  int[] time
           
 
Constructor Summary
AuctionEvent()
           
 
Method Summary
 int getDay()
           
 int getRound()
           
 int getTick()
           
 int[] getTime()
           
 void notify(AuctionEventListener listener)
           
 void setTime(int[] time)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

time

protected int[] time
Constructor Detail

AuctionEvent

public AuctionEvent()
Method Detail

setTime

public void setTime(int[] time)

getTime

public int[] getTime()

getDay

public int getDay()

getRound

public int getRound()

getTick

public int getTick()

notify

public void notify(AuctionEventListener listener)
Specified by:
notify in interface edu.cuny.event.Event<AuctionEventListener>

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object