jadex.micro.examples.chat
Class ChatService

java.lang.Object
  extended by jadex.commons.service.BasicService
      extended by jadex.micro.examples.chat.ChatService
All Implemented Interfaces:
IRemotable, IInternalService, IService, IChatService

public class ChatService
extends BasicService
implements IChatService


Field Summary
protected  IMicroExternalAccess agent
          The agent.
protected  List listeners
          The listeners.
 
Fields inherited from class jadex.commons.service.BasicService
idcnt, properties, shutdowned, sid, started, startfutures
 
Fields inherited from interface jadex.commons.service.IService
EMPTY_SERVICES
 
Constructor Summary
ChatService(IExternalAccess agent)
          Create a new helpline service.
 
Method Summary
 void addChangeListener(IChangeListener listener)
          Add a change listener.
 void hear(String name, String text)
          Hear something.
 void removeChangeListener(IChangeListener listener)
          Remove a change listener.
 void tell(String name, String text)
          Tell something.
 String toString()
          Get the string representation.
 
Methods inherited from class jadex.commons.service.BasicService
createServiceIdentifier, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, shutdownService, signalStarted, startService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jadex.commons.service.IService
getPropertyMap, getServiceIdentifier, signalStarted
 

Field Detail

agent

protected IMicroExternalAccess agent
The agent.


listeners

protected List listeners
The listeners.

Constructor Detail

ChatService

public ChatService(IExternalAccess agent)
Create a new helpline service.

Method Detail

tell

public void tell(String name,
                 String text)
Tell something.

Parameters:
name - The name.
text - The text.

hear

public void hear(String name,
                 String text)
Hear something.

Specified by:
hear in interface IChatService
Parameters:
name - The name.
text - The text.

addChangeListener

public void addChangeListener(IChangeListener listener)
Add a change listener.


removeChangeListener

public void removeChangeListener(IChangeListener listener)
Remove a change listener.


toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
The string representation.


Copyright © 2010. All Rights Reserved.