Package jadex.micro.tutorial
Class ChatServiceD1
- java.lang.Object
-
- jadex.micro.tutorial.ChatServiceD1
-
- All Implemented Interfaces:
IChatService
public class ChatServiceD1 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.
-
Constructor Summary
Constructors Constructor Description ChatServiceD1()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
message(java.lang.String sender, java.lang.String text)
Receives a chat message.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.
-
-
Method Detail
-
startService
public IFuture<java.lang.Void> startService()
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.
-
-