Package ai.tock.bot.definition
Class StoryDefinitionBase
-
- All Implemented Interfaces:
-
ai.tock.bot.definition.IntentAware,ai.tock.bot.definition.StoryDefinition
public class StoryDefinitionBase implements StoryDefinition
Default StoryDefinition implementation.
-
-
Field Summary
Fields Modifier and Type Field Description private final Set<StoryStep<out StoryHandlerDefinition>>stepsprivate final Set<UserInterfaceType>unsupportedUserInterfacesprivate final Stringidprivate final Set<Intent>starterIntentsprivate final Set<Intent>intentsprivate final Stringnameprivate final StoryHandlerstoryHandlerprivate final Set<StoryTag>tagsprivate final StoryDefinitionConfigurationstoryDefinitionConfigurationprivate final BooleanmetricStory
-
Constructor Summary
Constructors Constructor Description StoryDefinitionBase(String name, StoryHandler storyHandler, Set<IntentAware> otherStarterIntents, Set<IntentAware> secondaryIntents, List<StoryStep<out StoryHandlerDefinition>> stepsList, UserInterfaceType unsupportedUserInterface, Set<StoryTag> tags, StoryDefinitionConfiguration storyDefinitionConfiguration)
-
Method Summary
Modifier and Type Method Description Set<StoryStep<out StoryHandlerDefinition>>getSteps()The root steps of the story. Set<UserInterfaceType>getUnsupportedUserInterfaces()When this story does not support all UserInterfaceTypes. StringgetId()An unique identifier for a given bot. Set<Intent>getStarterIntents()One or more intents that start the story. Set<Intent>getIntents()The complete list of intents supported by the story. final StringgetName()StoryHandlergetStoryHandler()The story handler of the story. Set<StoryTag>getTags()The story definition tags that specify different story types or roles. final StoryDefinitionConfigurationgetStoryDefinitionConfiguration()Unithandle(BotBus bus)StringtoString()-
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
-
StoryDefinitionBase
StoryDefinitionBase(String name, StoryHandler storyHandler, Set<IntentAware> otherStarterIntents, Set<IntentAware> secondaryIntents, List<StoryStep<out StoryHandlerDefinition>> stepsList, UserInterfaceType unsupportedUserInterface, Set<StoryTag> tags, StoryDefinitionConfiguration storyDefinitionConfiguration)
-
-
Method Detail
-
getSteps
Set<StoryStep<out StoryHandlerDefinition>> getSteps()
The root steps of the story.
-
getUnsupportedUserInterfaces
Set<UserInterfaceType> getUnsupportedUserInterfaces()
When this story does not support all UserInterfaceTypes.
-
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()
The complete list of intents supported by the story.
-
getStoryHandler
StoryHandler getStoryHandler()
The story handler of the story.
-
getTags
Set<StoryTag> getTags()
The story definition tags that specify different story types or roles.
-
getStoryDefinitionConfiguration
final StoryDefinitionConfiguration getStoryDefinitionConfiguration()
-
-
-
-