public class EventState
State in event scope.
public EventState(@NotNull
java.util.List<ai.tock.bot.engine.dialog.EntityValue> entityValues,
boolean testEvent,
@Nullable
ConnectorType targetConnectorType,
@Nullable
ai.tock.translator.UserInterfaceType userInterface,
@Nullable
java.lang.String intent,
@Nullable
java.lang.String step)
State in event scope.
entityValues - The entity values.testEvent - Is it a "test" event - flag used by automatic tests.targetConnectorType - The target connector type - usually the source connector but not always.userInterface - The user interface - if different of default interface of class ConnectorType.intent - The current intent of the action.step - The current step.public EventState()
State in event scope.
@NotNull
public java.util.List<ai.tock.bot.engine.dialog.EntityValue> getEntity(@NotNull
java.lang.String role)
@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> getEntityValues()
The entity values.
public boolean getTestEvent()
Is it a
"test" event - flag used by automatic tests.
public void setTestEvent(boolean p)
Is it a
"test" event - flag used by automatic tests.
p - Is it a "test" event - flag used by automatic tests.@Nullable public ConnectorType getTargetConnectorType()
The target connector type
- usually the source connector but not always.
public void setTargetConnectorType(@Nullable
ConnectorType p)
The target connector type
- usually the source connector but not always.
p - The target connector type - usually the source connector but not always.@Nullable public ai.tock.translator.UserInterfaceType getUserInterface()
The user interface
- if different of default interface of class ConnectorType.
class ConnectorTypepublic void setUserInterface(@Nullable
ai.tock.translator.UserInterfaceType p)
The user interface
- if different of default interface of class ConnectorType.
p - The user interface - if different of default interface of class ConnectorType.class ConnectorType@Nullable public java.lang.String getIntent()
The current intent of the action.
public void setIntent(@Nullable
java.lang.String p)
The current intent of the action.
p - The current intent of the action.@Nullable public java.lang.String getStep()
The current step.
public void setStep(@Nullable
java.lang.String p)
The current step.
p - The current step.@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> component1()
The entity values.
public boolean component2()
Is it a
"test" event - flag used by automatic tests.
@Nullable public ConnectorType component3()
The target connector type
- usually the source connector but not always.
@Nullable public ai.tock.translator.UserInterfaceType component4()
The user interface
- if different of default interface of class ConnectorType.
class ConnectorType@Nullable public java.lang.String component5()
The current intent of the action.
@Nullable public java.lang.String component6()
The current step.
@NotNull public EventState copy(@NotNull java.util.List<ai.tock.bot.engine.dialog.EntityValue> entityValues, boolean testEvent, @Nullable ConnectorType targetConnectorType, @Nullable ai.tock.translator.UserInterfaceType userInterface, @Nullable java.lang.String intent, @Nullable java.lang.String step)
State in event scope.
@NotNull public java.lang.String toString()
public int hashCode()
public boolean equals(@Nullable
java.lang.Object p)