Package jadex.micro.tutorial.a3
Class ChatAgent
java.lang.Object
jadex.micro.tutorial.a3.ChatAgent
- All Implemented Interfaces:
IChatService
Chat micro agent provides a basic chat service.
This example shows how a simple chat user interface can be provided via swing.
The ui interacts with the agent via the external access (as all external threads).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
agent
protected jadex.core.IComponent agentThe underlying micro agent. -
gui
-
-
Constructor Details
-
ChatAgent
public ChatAgent()
-
-
Method Details
-
onStart
protected void onStart() -
end
protected void end() -
message
Receives a chat message.- Specified by:
message
in interfaceIChatService
- Parameters:
sender
- The sender's name.text
- The message text.
-
main
Start the example.- Throws:
InterruptedException
-