Interface StoryHandler

  • All Implemented Interfaces:

    
    public interface StoryHandler
    
                        

    Receive a sentence or action, and send the answer.

    Story handlers should usually not directly extend this class, but instead extend StoryHandlerBase.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Unit handle(BotBus bus) Receive a message from the bus.
      Double support(BotBus bus) What is the probability of bot support for the current request?
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • handle

         abstract Unit handle(BotBus bus)

        Receive a message from the bus.

        Parameters:
        bus - the bus used to get the message and send the answer
      • support

         Double support(BotBus bus)

        What is the probability of bot support for the current request?

        Returns:

        a probability between 0.0 (not supported) and 1.0 (supported!)