Package jadex.micro.examples.helpline
Class HelplineAgent
- java.lang.Object
- 
- jadex.micro.examples.helpline.HelplineAgent
 
- 
 public class HelplineAgent extends java.lang.ObjectHelpline micro agent.
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected MultiCollection<java.lang.String,InformationEntry>infosThe map of information.
 - 
Constructor SummaryConstructors Constructor Description HelplineAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInformation(java.lang.String name, java.lang.String info)Add an information about a person.IFuture<java.lang.Void>agentCreated()Called once after agent creation.IInternalAccessgetAgent()Get the agent.java.util.Collection<InformationEntry>getInformation(java.lang.String name)Get all locally stored information about a person.
 
- 
- 
- 
Field Detail- 
agentprotected IInternalAccess agent The agent.
 - 
infosprotected MultiCollection<java.lang.String,InformationEntry> infos The map of information.
 
- 
 - 
Method Detail- 
agentCreatedpublic IFuture<java.lang.Void> agentCreated() Called once after agent creation.
 - 
addInformationpublic void addInformation(java.lang.String name, java.lang.String info)Add an information about a person.- Parameters:
- name- The person's name.
- info- The information.
 
 - 
getInformationpublic java.util.Collection<InformationEntry> getInformation(java.lang.String name) Get all locally stored information about a person.- Parameters:
- name- The person's name.
- Returns:
- Future that contains the information.
 
 - 
getAgentpublic IInternalAccess getAgent() Get the agent.- Returns:
- The agent
 
 
- 
 
-