Package notification

Class XmessCommunication

java.lang.Object
notification.XmessCommunication
All Implemented Interfaces:
CommunicationStrategy

class XmessCommunication extends Object implements CommunicationStrategy
This is a subclass of the CommunicationStrategy class. It overrides the envoyer method for the "Xmess" mode. This method produces a simple display output.
  • Constructor Details

    • XmessCommunication

      XmessCommunication()
  • Method Details

    • envoyer

      public void envoyer(String clientName, String adresse, String message)
      Method for displaying an alert message sent to a client at a given Xmess address.
      Specified by:
      envoyer in interface CommunicationStrategy
      Parameters:
      clientName - : The name of the client.
      adresse - : The client's address.
      message - : The message sent.