net.sf.cscc
Interface CommunicationEventObserver

All Known Implementing Classes:
ChatServer, ChatClient, Client, Server, TestClient5, TestClient, TestServer, TestServer4, CommunicationEventReceiver, TestClient2, TestServer1, TestClient3, TestServer5, TestClient6, TestServer3, TestClient1, TestServer6, TestServer2, TestClient4

public interface CommunicationEventObserver

This interface has to be implemented by observers which want to be notified about the communication events that occurred.

Author
Silvio Meier (SM)

Copyright
Silvio Meier, Tobias Reinhard, 2003

History
2003-05-14 SM First Version
2003-05-14 SM working on additional methods and events,
correction of some comments.
2003-05-20 TR Comments corrected

Version
$Date: 2007/07/02 21:26:17 $, $Author: reode_orm $, $Revision: 1.2 $


Method Summary
 void receiveEvent(CommunicationEvent ce)
          This interface method is called by objects of the type CommunicationEventObservable.
 

Method Detail

receiveEvent

public void receiveEvent(CommunicationEvent ce)
This interface method is called by objects of the type CommunicationEventObservable. The implementing class of this interface has to register at an instance of of the class CommunicationEventObservable to get notifications about new communication events in the event queue. This is done by calling the method ServerConnectionManager.addObserver(CommunicationEventObserver o) for observing the communication events of the server, respectively the method ClientConnectionManager.addObserver(CommunicationEventObserver o) for the communication events of the client.
Pre
ce != null
Post
true
Parameters:
ce - CommunicationEvent which is delivered to the implementor of this interface (ie. the observer).



Copyright © 2003, Silvio Meier and Tobias Reinhard. All Rights Reserved.