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 SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected IClockServiceclockThe clock service.protected java.text.DateFormatformatThe time format.protected ChatGuiD2guiThe user interface.
 - 
Constructor SummaryConstructors Constructor Description ChatServiceD2()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ChatGuiD2createGui(IExternalAccess agent)Create the gui.voidmessage(java.lang.String sender, java.lang.String text)Receives a chat message.voidshutdownService()Init the service.IFuture<java.lang.Void>startService()Init the service.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
clockprotected IClockService clock The clock service.
 - 
formatprotected java.text.DateFormat format The time format.
 - 
guiprotected ChatGuiD2 gui The user interface.
 
- 
 - 
Method Detail- 
startServicepublic IFuture<java.lang.Void> startService() Init the service.
 - 
shutdownServicepublic void shutdownService() Init the service.
 - 
messagepublic void message(java.lang.String sender, java.lang.String text)Receives a chat message.- Specified by:
- messagein interface- IChatService
- Parameters:
- sender- The sender's name.
- text- The message text.
 
 - 
createGuiprotected ChatGuiD2 createGui(IExternalAccess agent) Create the gui.
 
- 
 
-