public class SimpleStoryDefinition implements StoryDefinition
Simple implementation of interface StoryDefinition.
interface StoryDefinitionpublic SimpleStoryDefinition(@NotNull
java.lang.String id,
@NotNull
StoryHandler storyHandler,
@NotNull
java.util.Set<ai.tock.bot.definition.Intent> starterIntents,
@NotNull
java.util.Set<ai.tock.bot.definition.Intent> intents,
@NotNull
java.util.Set<? extends ai.tock.bot.definition.StoryStep<ai.tock.bot.definition.StoryHandlerDefinition>> steps,
@NotNull
java.util.Set<? extends ai.tock.translator.UserInterfaceType> unsupportedUserInterfaces)
Simple implementation of interface StoryDefinition.
id - An unique identifier for a given bot.storyHandler - The story handler of the story.starterIntents - One or more intents that start the story.Usually, you don't have the same starter intent in two different story definition.intents - starter intents + other intents supported by the story.steps - The root steps of the story.unsupportedUserInterfaces - When this story does not support all UserInterfaceTypes.interface StoryDefinitionpublic SimpleStoryDefinition(@NotNull
java.lang.String id,
@NotNull
StoryHandler storyHandler,
@NotNull
StoryStep<T>[] steps,
@NotNull
java.util.Set<? extends ai.tock.bot.definition.IntentAware> starterIntents,
@NotNull
java.util.Set<? extends ai.tock.bot.definition.IntentAware> intents,
@NotNull
java.util.Set<? extends ai.tock.translator.UserInterfaceType> unsupportedUserInterfaces)
@NotNull public java.lang.String getId()
An unique identifier for a given bot.
@NotNull public StoryHandler getStoryHandler()
The story handler of the story.
@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()
starter intents
+ other intents supported by the story.
@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.