edu.cuny.cat.event
Class ClientStateUpdatedEvent

java.lang.Object
  extended by edu.cuny.cat.event.AuctionEvent
      extended by edu.cuny.cat.event.ClientStateUpdatedEvent
All Implemented Interfaces:
edu.cuny.event.Event<AuctionEventListener>

public class ClientStateUpdatedEvent
extends AuctionEvent

An event that is fired when the status of a catp client is updated. For example, the catp server lost the connection with a client.

Please note that this event has not yet used.

Version:
$Revision: 1.6 $
Author:
Jinzhong Niu

Field Summary
protected  AccountHolder client
           
protected  ClientState currentState
           
protected  ClientState previousState
           
protected  AuctionEvent triggeringEvent
           
 
Fields inherited from class edu.cuny.cat.event.AuctionEvent
time
 
Constructor Summary
ClientStateUpdatedEvent(AccountHolder client, ClientState status)
           
ClientStateUpdatedEvent(AccountHolder client, ClientState currentState, AuctionEvent triggeringEvent)
           
ClientStateUpdatedEvent(AccountHolder client, ClientState previousState, ClientState currentState, AuctionEvent triggeringEvent)
           
 
Method Summary
 AccountHolder getClient()
           
 ClientState getCurrentState()
           
 ClientState getPreviousState()
           
 AuctionEvent getTriggeringEvent()
           
 java.lang.String toString()
           
 
Methods inherited from class edu.cuny.cat.event.AuctionEvent
getDay, getRound, getTick, getTime, notify, setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

client

protected AccountHolder client

currentState

protected ClientState currentState

previousState

protected ClientState previousState

triggeringEvent

protected AuctionEvent triggeringEvent
Constructor Detail

ClientStateUpdatedEvent

public ClientStateUpdatedEvent(AccountHolder client,
                               ClientState status)

ClientStateUpdatedEvent

public ClientStateUpdatedEvent(AccountHolder client,
                               ClientState currentState,
                               AuctionEvent triggeringEvent)

ClientStateUpdatedEvent

public ClientStateUpdatedEvent(AccountHolder client,
                               ClientState previousState,
                               ClientState currentState,
                               AuctionEvent triggeringEvent)
Method Detail

getClient

public AccountHolder getClient()

getCurrentState

public ClientState getCurrentState()

getPreviousState

public ClientState getPreviousState()

getTriggeringEvent

public AuctionEvent getTriggeringEvent()

toString

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