Package ai.tock.bot.definition
Class SimpleStoryDefinition
-
- All Implemented Interfaces:
-
ai.tock.bot.definition.IntentAware,ai.tock.bot.definition.StoryDefinition
public class SimpleStoryDefinition implements StoryDefinition
Simple implementation of StoryDefinition.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final StoryHandlerstoryHandlerprivate final Set<Intent>starterIntentsprivate final Set<Intent>intentsprivate final Set<StoryStep<StoryHandlerDefinition>>stepsprivate final Set<UserInterfaceType>unsupportedUserInterfacesprivate final Set<StoryTag>tagsprivate final BooleanmetricStory
-
Constructor Summary
Constructors Constructor Description SimpleStoryDefinition(String id, StoryHandler storyHandler, Array<out StoryStep<StoryHandlerDefinition>> steps, Set<IntentAware> starterIntents, Set<IntentAware> intents, Set<UserInterfaceType> unsupportedUserInterfaces)SimpleStoryDefinition(String id, StoryHandler storyHandler, Set<Intent> starterIntents, Set<Intent> intents, Set<StoryStep<StoryHandlerDefinition>> steps, Set<UserInterfaceType> unsupportedUserInterfaces, Set<StoryTag> tags)
-
Method Summary
Modifier and Type Method Description StringgetId()An unique identifier for a given bot. StoryHandlergetStoryHandler()The story handler of the story. Set<Intent>getStarterIntents()One or more intents that start the story. Set<Intent>getIntents()starter intents + other intents supported by the story. Set<StoryStep<StoryHandlerDefinition>>getSteps()The root steps of the story. Set<UserInterfaceType>getUnsupportedUserInterfaces()When this story does not support all UserInterfaceTypes. Set<StoryTag>getTags()The story definition tags that specify different story types or roles. -
Methods inherited from class ai.tock.bot.definition.StoryDefinition
allSteps, getMetricStory, hasTag, isStarterIntent, mainIntent, supportIntent, wrappedIntent -
Methods inherited from class ai.tock.bot.definition.IntentAware
intentWithoutNamespace, wrap -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SimpleStoryDefinition
SimpleStoryDefinition(String id, StoryHandler storyHandler, Array<out StoryStep<StoryHandlerDefinition>> steps, Set<IntentAware> starterIntents, Set<IntentAware> intents, Set<UserInterfaceType> unsupportedUserInterfaces)
-
-
Method Detail
-
getStoryHandler
StoryHandler getStoryHandler()
The story handler of the story.
-
getStarterIntents
Set<Intent> getStarterIntents()
One or more intents that start the story. Usually, you don't have the same starter intent in two different story definition.
-
getIntents
Set<Intent> getIntents()
starter intents + other intents supported by the story.
-
getSteps
Set<StoryStep<StoryHandlerDefinition>> getSteps()
The root steps of the story.
-
getUnsupportedUserInterfaces
Set<UserInterfaceType> getUnsupportedUserInterfaces()
When this story does not support all UserInterfaceTypes.
-
-
-
-