Package jadex.micro.examples.helpline
Class HelplineService
- java.lang.Object
-
- jadex.micro.examples.helpline.HelplineService
-
-
Field Summary
Fields Modifier and Type Field Description protected HelplineAgent
agent
The agent.
-
Constructor Summary
Constructors Constructor Description HelplineService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInformation(java.lang.String name, java.lang.String info)
Add an information about a person.IIntermediateFuture<InformationEntry>
getInformation(java.lang.String name)
Get all locally stored information about a person.java.lang.String
toString()
Get the string representation.
-
-
-
Field Detail
-
agent
protected HelplineAgent agent
The agent.
-
-
Method Detail
-
addInformation
public void addInformation(java.lang.String name, java.lang.String info)
Add an information about a person.- Specified by:
addInformation
in interfaceIHelpline
- Parameters:
name
- The person's name.info
- The information.
-
getInformation
public IIntermediateFuture<InformationEntry> getInformation(java.lang.String name)
Get all locally stored information about a person.- Specified by:
getInformation
in interfaceIHelpline
- Parameters:
name
- The person's name.- Returns:
- Future that contains the information.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-