public static final class StateProps.Builder
extends java.lang.Object
StateProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StateProps |
build()
Builds the configured instance.
|
StateProps.Builder |
onEnter(java.util.List<? extends Event> onEnter)
Sets the value of
StateProps.getOnEnter() |
StateProps.Builder |
onExit(java.util.List<? extends Event> onExit)
Sets the value of
StateProps.getOnExit() |
StateProps.Builder |
onInput(java.util.List<? extends Event> onInput)
Sets the value of
StateProps.getOnInput() |
StateProps.Builder |
stateName(java.lang.String stateName)
Sets the value of
StateProps.getStateName() |
public StateProps.Builder stateName(java.lang.String stateName)
StateProps.getStateName()
stateName
- The name of the state. This parameter is required.this
public StateProps.Builder onEnter(java.util.List<? extends Event> onEnter)
StateProps.getOnEnter()
onEnter
- Specifies the events on enter.
The conditions of the events will be evaluated when entering this state.
If the condition of the event evaluates to true
, the actions of the event will be executed.this
public StateProps.Builder onExit(java.util.List<? extends Event> onExit)
StateProps.getOnExit()
onExit
- Specifies the events on exit.
The conditions of the events are evaluated when an exiting this state.
If the condition evaluates to true
, the actions of the event will be executed.this
public StateProps.Builder onInput(java.util.List<? extends Event> onInput)
StateProps.getOnInput()
onInput
- Specifies the events on input.
The conditions of the events will be evaluated when any input is received.
If the condition of the event evaluates to true
, the actions of the event will be executed.this
public StateProps build()
StateProps
java.lang.NullPointerException
- if any required attribute was not provided