ks.server.interfaces
Interface ICommunicator

All Known Implementing Classes:
CommunicationAgent

public interface ICommunicator

Provides basic communication capability. Entity provides capability to write an object that will be read by some other entity. Entity provides capability to read an object and return it. The writing and reading take place over networked streams and so there will be issues regarding reads and writes. The order in which these read/writes take place is incredibly important, but is outside of the control of this interface.


Method Summary
 java.lang.Object readObject()
          Blocks for an object to be read from remote entity.
 boolean writeObject(java.lang.Object o)
          Writes an object to be retrieved by a remote entity.
 

Method Detail

writeObject

public boolean writeObject(java.lang.Object o)
Writes an object to be retrieved by a remote entity.

Parameters:
o - Object to be written.

readObject

public java.lang.Object readObject()
Blocks for an object to be read from remote entity.

Returns:
Object read or null if an exception occured.