public class StoryDefinitionConfigurationStep
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
| Constructor and Description |
|---|
StoryDefinitionConfigurationStep(java.lang.String name,
Intent intent,
Intent targetIntent,
java.util.List<? extends ai.tock.bot.admin.answer.AnswerConfiguration> answers,
AnswerConfigurationType currentType,
java.lang.String userSentence,
java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> children,
int level)
A
interface StoryStep configuration in a class StoryDefinitionConfiguration. |
StoryDefinitionConfigurationStep(StoryStep<?> step) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
component1()
The name of the step.
|
Intent |
component2()
The intent used to reach the step
|
Intent |
component3()
The optional intent to switch to when the step is reached.
|
java.util.List<ai.tock.bot.admin.answer.AnswerConfiguration> |
component4()
The answers available.
|
AnswerConfigurationType |
component5()
The type of answer configuration.
|
java.lang.String |
component6()
The user sentence sample.
|
java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> |
component7()
The children of the steps
|
int |
component8()
The level of the step.
|
StoryDefinitionConfigurationStep |
copy(java.lang.String name,
Intent intent,
Intent targetIntent,
java.util.List<? extends ai.tock.bot.admin.answer.AnswerConfiguration> answers,
AnswerConfigurationType currentType,
java.lang.String userSentence,
java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> children,
int level)
A
interface StoryStep configuration in a class StoryDefinitionConfiguration. |
boolean |
equals(java.lang.Object p) |
java.util.List<java.lang.String> |
findNextSteps(StoryDefinitionConfiguration story) |
java.util.List<ai.tock.bot.admin.answer.AnswerConfiguration> |
getAnswers()
The answers available.
|
java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> |
getChildren()
The children of the steps
|
AnswerConfigurationType |
getCurrentType()
The type of answer configuration.
|
Intent |
getIntent()
The intent used to reach the step
|
int |
getLevel()
The level of the step.
|
java.lang.String |
getName()
The name of the step.
|
Intent |
getTargetIntent()
The optional intent to switch to when the step is reached.
|
java.lang.String |
getUserSentence()
The user sentence sample.
|
int |
hashCode() |
StoryStep<ai.tock.bot.definition.StoryHandlerDefinition> |
toStoryStep() |
java.lang.String |
toString() |
public StoryDefinitionConfigurationStep(@NotNull
java.lang.String name,
@Nullable
Intent intent,
@Nullable
Intent targetIntent,
@NotNull
java.util.List<? extends ai.tock.bot.admin.answer.AnswerConfiguration> answers,
@NotNull
AnswerConfigurationType currentType,
@NotNull
java.lang.String userSentence,
@NotNull
java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> children,
int level)
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
name - The name of the step.intent - The intent used to reach the step - mandatory if an answer is set, or if there is a targetIntent.targetIntent - The optional intent to switch to when the step is reached.answers - The answers available.currentType - The type of answer configuration.userSentence - The user sentence sample.children - The children of the stepslevel - The level of the step.interface StoryStep,
class StoryDefinitionConfigurationpublic StoryDefinitionConfigurationStep(@NotNull
StoryStep<?> step)
@NotNull public StoryStep<ai.tock.bot.definition.StoryHandlerDefinition> toStoryStep()
@NotNull
public java.util.List<java.lang.String> findNextSteps(@NotNull
StoryDefinitionConfiguration story)
@NotNull public java.lang.String getName()
The name of the step.
@Nullable public Intent getIntent()
The intent used to reach the step
- mandatory if an answer is set, or if there is a targetIntent.
@Nullable public Intent getTargetIntent()
The optional intent to switch to when the step is reached.
@NotNull public java.util.List<ai.tock.bot.admin.answer.AnswerConfiguration> getAnswers()
The answers available.
@NotNull public AnswerConfigurationType getCurrentType()
The type of answer configuration.
@NotNull public java.lang.String getUserSentence()
The user sentence sample.
@NotNull public java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> getChildren()
The children of the steps
public int getLevel()
The level of the step.
@NotNull public java.lang.String component1()
The name of the step.
@Nullable public Intent component2()
The intent used to reach the step
- mandatory if an answer is set, or if there is a targetIntent.
@Nullable public Intent component3()
The optional intent to switch to when the step is reached.
@NotNull public java.util.List<ai.tock.bot.admin.answer.AnswerConfiguration> component4()
The answers available.
@NotNull public AnswerConfigurationType component5()
The type of answer configuration.
@NotNull public java.lang.String component6()
The user sentence sample.
@NotNull public java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> component7()
The children of the steps
public int component8()
The level of the step.
@NotNull public StoryDefinitionConfigurationStep copy(@NotNull java.lang.String name, @Nullable Intent intent, @Nullable Intent targetIntent, @NotNull java.util.List<? extends ai.tock.bot.admin.answer.AnswerConfiguration> answers, @NotNull AnswerConfigurationType currentType, @NotNull java.lang.String userSentence, @NotNull java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> children, int level)
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)