Package notification
Class ComNetAdaptator
java.lang.Object
notification.ComNetAdaptator
- All Implemented Interfaces:
CommunicationStrategy
This is a subclass of the CommunicationStrategy class.
It overrides the envoyer method for the "CHAT" mode.
This method produces a simple display output and call the send method from ComNet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate utilitaire.ComNetAttribut that contains the ComNet object from utilitaire -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the class that initialize attribut theCom to a ComNet object -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface notification.CommunicationStrategy
isCorrect
-
Field Details
-
theCom
private utilitaire.ComNet theComAttribut that contains the ComNet object from utilitaire
-
-
Constructor Details
-
ComNetAdaptator
public ComNetAdaptator()Constructor for the class that initialize attribut theCom to a ComNet object
-
-
Method Details
-
envoyer
Method for displaying an alert message sent to a client at a given CHAT address and send it throught ComNet.- Specified by:
envoyerin interfaceCommunicationStrategy- Parameters:
clientName- : The name of the client.adresse- : The client's address.message- : The message sent.
-