Class StandardMessageGenerator
java.lang.Object
rs.edu.raf.dsw.rudok.app.observer.IObserver
rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
rs.edu.raf.dsw.rudok.app.observer.IPublisher
rs.edu.raf.dsw.rudok.app.messagegenerator.IMessageGenerator
rs.edu.raf.dsw.rudok.app.messagegenerator.standard.StandardMessageGenerator
public class StandardMessageGenerator extends IMessageGenerator
Standard message generator
Standard implementation of theIMessageGenerator
service.-
Nested Class Summary
Nested classes/interfaces inherited from class rs.edu.raf.dsw.rudok.app.messagegenerator.IMessageGenerator
IMessageGenerator.Message, IMessageGenerator.Type
-
Constructor Summary
Constructors Constructor Description StandardMessageGenerator()
-
Method Summary
Modifier and Type Method Description void
send(String content, IMessageGenerator.Type type, String timestamp)
Sends the message with the given content, type and timestamp.Methods inherited from class rs.edu.raf.dsw.rudok.app.messagegenerator.IMessageGenerator
error, log, send, warning
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisher
addObserver, getObservers, publish, removeObserver, setObservers
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IPublisherGlobal
addObserverGlobal, getObserversGlobal, removeObserverGlobal
Methods inherited from class rs.edu.raf.dsw.rudok.app.observer.IObserver
addPublisher, getPublishers, receive, removePublisher, setPublishers
-
Constructor Details
-
StandardMessageGenerator
public StandardMessageGenerator()
-
-
Method Details
-
send
Description copied from class:IMessageGenerator
Sends the message with the given content, type and timestamp.- Specified by:
send
in classIMessageGenerator
- Parameters:
content
- Message content.type
- Message type.timestamp
- Message timestamp.
-