Cliser

cliser
Class CommunicatorUser

java.lang.Object
  |
  +--cliser.CommunicatorUser
Direct Known Subclasses:
Client, Server, ServiceThread

public abstract class CommunicatorUser
extends java.lang.Object


Method Summary
 Communicator getCommunicator()
          myCommunicator accessor
protected abstract  Communicator initCommunicator()
          abstract method for Communicator initialization
 java.lang.String receive()
          receive() primitive (for convenience, not necessity) PRE: Someone will send me a message via this.getCommunicator()
 void send(java.lang.String aMessage)
          send() primitive (for convenience, not necessity)
protected  void setCommunicator(Communicator aCommunicator)
          myCommunicator mutator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

initCommunicator

protected abstract Communicator initCommunicator()
abstract method for Communicator initialization
Returns:
a Communicator appropriate to the subclass that defines this method.

getCommunicator

public Communicator getCommunicator()
myCommunicator accessor
Returns:
myCommunicator

setCommunicator

protected void setCommunicator(Communicator aCommunicator)
myCommunicator mutator

send

public void send(java.lang.String aMessage)
send() primitive (for convenience, not necessity)

receive

public java.lang.String receive()
receive() primitive (for convenience, not necessity) PRE: Someone will send me a message via this.getCommunicator()
Returns:
the message someone sends me

Cliser

Cliser is open-source freeware distributed under the GNU Public License.