Class HelplineAgent
- java.lang.Object
- 
- jadex.micro.examples.helplinemega.HelplineAgent
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected IInternalAccessagentThe agent.protected java.util.Set<InformationEntry>infosThe information about the person.protected java.lang.StringpersonThe name of the person of interest.
 - 
Constructor SummaryConstructors Constructor Description HelplineAgent()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IFuture<java.lang.Void>addInformation(java.lang.String info)Add new information about a person, e.g.IFuture<java.lang.Void>forwardInformation(InformationEntry entry)Forward existing information to this service, e.g.IFuture<java.util.Set<InformationEntry>>getInformation()Receive all locally stored information about a person (i.e.protected voidpostInformation(InformationEntry entry)Asynchronously post new information to interested parties.IIntermediateFuture<InformationEntry>searchInformation()Search for information about a person in the network (i.e.
 
- 
- 
- 
Field Detail- 
personprotected java.lang.String person The name of the person of interest.
 - 
agentprotected IInternalAccess agent The agent.
 - 
infosprotected java.util.Set<InformationEntry> infos The information about the person.
 
- 
 - 
Method Detail- 
addInformationpublic IFuture<java.lang.Void> addInformation(java.lang.String info) Add new information about a person, e.g. from GUI.- Specified by:
- addInformationin interface- IHelpline
- Parameters:
- info- The information text.
 
 - 
getInformationpublic IFuture<java.util.Set<InformationEntry>> getInformation() Receive all locally stored information about a person (i.e. pull).- Specified by:
- getInformationin interface- IHelpline
- Returns:
- Future that contains all currently known information in a set of records.
 
 - 
forwardInformationpublic IFuture<java.lang.Void> forwardInformation(InformationEntry entry) Forward existing information to this service, e.g. from other helpline nodes (i.e. push).- Specified by:
- forwardInformationin interface- IHelpline
- Parameters:
- entry- The information record.
 
 - 
searchInformationpublic IIntermediateFuture<InformationEntry> searchInformation() Search for information about a person in the network (i.e. pull). The information is stored locally.- Specified by:
- searchInformationin interface- IHelpline
- Returns:
- All information that can currently be found.
 
 - 
postInformationprotected void postInformation(InformationEntry entry) Asynchronously post new information to interested parties.- Parameters:
- entry- The new information.
 
 
- 
 
-