ks.server.interfaces
Interface IOutput


public interface IOutput

Interface for server components to communicate with users at their client.


Method Summary
 void broadcast(java.util.Enumeration users, Message m)
          Broadcasts message to the given set of users (EXCEPT self).
 void broadcast(Message m)
          Broadcast Message to all active users EXCEPT self.
 void connectUser(java.lang.String userName, ICommunicator agent)
          Register with the communicator the means to interact with a user.
 void output(Message m)
          Output message.
 

Method Detail

broadcast

public void broadcast(Message m)
Broadcast Message to all active users EXCEPT self.

Parameters:
m - Message

broadcast

public void broadcast(java.util.Enumeration users,
                      Message m)
Broadcasts message to the given set of users (EXCEPT self).

Parameters:
users - Enumeration an Enumeration of User objects to deliver message to
m - Message the Message to be delivered to the client.

connectUser

public void connectUser(java.lang.String userName,
                        ICommunicator agent)
Register with the communicator the means to interact with a user.

Parameters:
userName - user for whom communication is being managed.
agent - ICommunicator object managing the communication

output

public void output(Message m)
Output message.

The routing of the message is determined by the message's attributes.