jadex.micro.examples.helpline
Class HelplineService
java.lang.Object
jadex.commons.service.BasicService
jadex.micro.examples.helpline.HelplineService
- All Implemented Interfaces:
- IRemotable, IInternalService, IService, IHelpline
public class HelplineService
- extends BasicService
- implements IHelpline
Helpline service implementation.
agent
protected HelplineAgent agent
- The agent.
HelplineService
public HelplineService(HelplineAgent agent)
- Create a new helpline service.
addInformation
public void addInformation(String name,
String info)
- Add an information about a person.
- Specified by:
addInformation in interface IHelpline
- Parameters:
name - The person's name.info - The information.
getInformation
public IFuture getInformation(String name)
- Get all locally stored information about a person.
- Specified by:
getInformation in interface IHelpline
- Parameters:
name - The person's name.
- Returns:
- Future that contains the information.
toString
public String toString()
- Get the string representation.
- Overrides:
toString in class Object
- Returns:
- The string representation.
Copyright © 2010. All Rights Reserved.