Class HelplineService

  • All Implemented Interfaces:
    IHelpline

    public class HelplineService
    extends java.lang.Object
    implements IHelpline
    Helpline service implementation.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HelplineService

        public HelplineService()
    • Method Detail

      • addInformation

        public void addInformation​(java.lang.String name,
                                   java.lang.String info)
        Add an information about a person.
        Specified by:
        addInformation in interface IHelpline
        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 interface IHelpline
        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 class java.lang.Object
        Returns:
        The string representation.