Package jadex.micro.examples.helpline
Class HelplineAgent
- java.lang.Object
-
- jadex.micro.examples.helpline.HelplineAgent
-
public class HelplineAgent extends java.lang.Object
Helpline micro agent.
-
-
Field Summary
Fields Modifier and Type Field Description protected IInternalAccess
agent
The agent.protected MultiCollection<java.lang.String,InformationEntry>
infos
The map of information.
-
Constructor Summary
Constructors Constructor Description HelplineAgent()
-
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.IFuture<java.lang.Void>
agentCreated()
Called once after agent creation.IInternalAccess
getAgent()
Get the agent.java.util.Collection<InformationEntry>
getInformation(java.lang.String name)
Get all locally stored information about a person.
-
-
-
Field Detail
-
agent
protected IInternalAccess agent
The agent.
-
infos
protected MultiCollection<java.lang.String,InformationEntry> infos
The map of information.
-
-
Method Detail
-
agentCreated
public IFuture<java.lang.Void> agentCreated()
Called once after agent creation.
-
addInformation
public 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.
-
getInformation
public 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.
-
getAgent
public IInternalAccess getAgent()
Get the agent.- Returns:
- The agent
-
-