public class HelplineAgent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected jadex.bridge.IInternalAccess |
agent
The agent.
|
protected jadex.commons.collection.MultiCollection<java.lang.String,InformationEntry> |
infos
The map of information.
|
Constructor and Description |
---|
HelplineAgent() |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(java.lang.String name,
java.lang.String info)
Add an information about a person.
|
jadex.commons.future.IFuture<java.lang.Void> |
agentCreated()
Called once after agent creation.
|
jadex.bridge.IInternalAccess |
getAgent()
Get the agent.
|
java.util.Collection<InformationEntry> |
getInformation(java.lang.String name)
Get all locally stored information about a person.
|
protected jadex.bridge.IInternalAccess agent
protected jadex.commons.collection.MultiCollection<java.lang.String,InformationEntry> infos
public jadex.commons.future.IFuture<java.lang.Void> agentCreated()
public void addInformation(java.lang.String name, java.lang.String info)
name
- The person's name.info
- The information.public java.util.Collection<InformationEntry> getInformation(java.lang.String name)
name
- The person's name.public jadex.bridge.IInternalAccess getAgent()