Package jadex.micro.tutorial
Class ChatServiceD5
- java.lang.Object
-
- jadex.micro.tutorial.ChatServiceD5
-
- All Implemented Interfaces:
IChatService
public class ChatServiceD5 extends java.lang.Object implements IChatService
The chat service.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected IClockService
clock
The clock service.protected java.text.DateFormat
format
The time format.protected ChatGuiD5
gui
The user interface.
-
Constructor Summary
Constructors Constructor Description ChatServiceD5()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ChatGuiD5
createGui(IExternalAccess agent)
Create the gui.void
message(java.lang.String sender, java.lang.String text)
Receives a chat message.void
shutdownService()
Init the service.IFuture<java.lang.Void>
startService()
Init the service.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
clock
protected IClockService clock
The clock service.
-
format
protected java.text.DateFormat format
The time format.
-
gui
protected ChatGuiD5 gui
The user interface.
-
-
Method Detail
-
startService
public IFuture<java.lang.Void> startService()
Init the service.
-
shutdownService
public void shutdownService()
Init the service.
-
message
public void message(java.lang.String sender, java.lang.String text)
Receives a chat message.- Specified by:
message
in interfaceIChatService
- Parameters:
sender
- The sender's name.text
- The message text.
-
createGui
protected ChatGuiD5 createGui(IExternalAccess agent)
Create the gui.
-
-