public class StoryDefinitionBase implements StoryDefinition
Default interface StoryDefinition implementation.
interface StoryDefinitionpublic StoryDefinitionBase(@NotNull
java.lang.String name,
@NotNull
StoryHandler storyHandler,
@NotNull
java.util.Set<? extends ai.tock.bot.definition.IntentAware> otherStarterIntents,
@NotNull
java.util.Set<? extends ai.tock.bot.definition.IntentAware> secondaryIntents,
@NotNull
java.util.List<? extends ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition>> stepsList,
@Nullable
ai.tock.translator.UserInterfaceType unsupportedUserInterface)
Default interface StoryDefinition implementation.
storyHandler - The story handler of the story.interface StoryDefinition@NotNull public java.util.Set<ai.tock.bot.definition.StoryStep> getSteps()
The root steps of the story.
@NotNull public java.util.Set<ai.tock.translator.UserInterfaceType> getUnsupportedUserInterfaces()
When this story does not support all UserInterfaceTypes.
@NotNull public java.lang.String getId()
An unique identifier for a given bot.
@NotNull public java.util.Set<ai.tock.bot.definition.Intent> getStarterIntents()
One or more intents that start the story. Usually, you don't have the same starter intent in two different story definition.
@NotNull public java.util.Set<ai.tock.bot.definition.Intent> getIntents()
The complete list of intents supported by the story.
public void handle(@NotNull
BotBus bus)
@NotNull public java.lang.String getName()
@NotNull public StoryHandler getStoryHandler()
The story handler of the story.