Package jadex.micro.tutorial
Class ChatServiceD2
- java.lang.Object
-
- jadex.micro.tutorial.ChatServiceD2
-
- All Implemented Interfaces:
IChatService
- Direct Known Subclasses:
ChatServiceD3
public class ChatServiceD2 extends java.lang.Object implements IChatService
Chat service implementation.
-
-
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 ChatGuiD2
gui
The user interface.
-
Constructor Summary
Constructors Constructor Description ChatServiceD2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ChatGuiD2
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 ChatGuiD2 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 ChatGuiD2 createGui(IExternalAccess agent)
Create the gui.
-
-