mcgui
Interface MulticasterUI

All Known Implementing Classes:
GUI

public interface MulticasterUI

Interface that is implemented by the GUI that is used by a Multicaster for deliveries and debug messages to the GUI.


Method Summary
 void debug(java.lang.String string)
          Add a debug message to the GUI
 void deliver(int from, java.lang.String message)
          Deliver a message to the UI (without any additional information)
 void deliver(int from, java.lang.String message, java.lang.String info)
          Deliver a message to the UI
 void enableSending()
          Enables the GUI to start sending messages when all the communications are set up.
 

Method Detail

deliver

void deliver(int from,
             java.lang.String message,
             java.lang.String info)
Deliver a message to the UI

Parameters:
from - The sender of the message
message - The message to be delivered
info - Additional information to be shown to the user about the message. Allowed to be null if no additonal information is to be shown.

deliver

void deliver(int from,
             java.lang.String message)
Deliver a message to the UI (without any additional information)

Parameters:
from - The sender of the message
message - The message to be delivered

debug

void debug(java.lang.String string)
Add a debug message to the GUI

Parameters:
string - The debug message to be shown

enableSending

void enableSending()
Enables the GUI to start sending messages when all the communications are set up.