public class ChatServiceD5 extends java.lang.Object implements IChatService
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The agent.
|
protected jadex.bridge.service.types.clock.IClockService |
clock
The clock service.
|
protected java.text.DateFormat |
format
The time format.
|
protected ChatGuiD5 |
gui
The user interface.
|
Constructor and Description |
---|
ChatServiceD5() |
Modifier and Type | Method and Description |
---|---|
protected ChatGuiD5 |
createGui(jadex.bridge.IExternalAccess agent)
Create the gui.
|
void |
message(java.lang.String sender,
java.lang.String text)
Receives a chat message.
|
void |
shutdownService()
Init the service.
|
jadex.commons.future.IFuture<java.lang.Void> |
startService()
Init the service.
|
protected jadex.bridge.IInternalAccess agent
protected jadex.bridge.service.types.clock.IClockService clock
protected java.text.DateFormat format
protected ChatGuiD5 gui
public jadex.commons.future.IFuture<java.lang.Void> startService()
public void shutdownService()
public void message(java.lang.String sender, java.lang.String text)
message
in interface IChatService
sender
- The sender's name.text
- The message text.protected ChatGuiD5 createGui(jadex.bridge.IExternalAccess agent)