tree_builders library
Provides support for defining state trees.
Classes
-
Channel<
P> -
Indicates that a value of type
Pmust be provided when entering a state. -
ContinuationMessageActionBuilder<
M, T> -
ContinuationMessageActionWithDataBuilder<
M, D, T> -
ContinuationMessageHandlerBuilder<
M, T> -
ContinuationWithDataMessageHandlerBuilder<
M, D, T> -
DataMessageHandlerBuilder<
M, D> -
DataStateBuilder<
D> -
Provides methods for describing the behavior of a data state carrying a value of type
D. - DotFormatter
- Generates a description of a StateTreeBuilder in Graphviz DOT graph format.
- FinalStateBuilder
- Provides methods for describing the behavior of a final state in a state tree.
- InitialChild
- Describes the initial child state of a parent state.
-
InitialData<
D> -
Provides an initial value for a data state that carries a value of type
D. -
MessageActionBuilder<
M> - Provides methods for describing actions that can be taken while a state handles a message.
-
MessageActionWithDataBuilder<
M, D> -
MessageHandlerBuilder<
M> -
Provides methods for describing how a state behaves in response to a message of type
M. -
MessageHandlerWhenBuilder<
M> -
MessageHandlerWhenResultBuilder<
M, T> -
MessageHandlerWhenResultWithDataBuilder<
M, D, T> -
MessageHandlerWhenWithContextBuilder<
M, T> -
MessageHandlerWhenWithDataAndContextBuilder<
M, D, T> -
MessageHandlerWhenWithDataBuilder<
M, D> - StateBuilder
- Provides methods for describing the behavior of a state.
- StateTreeBuilder
- Provides methods to describe a state tree.
- StateTreeFormatter
- Defines methods for writing a textual description of the state tree represented by a StateTreeBuilder.
- TransitionHandlerBuilder
- Provides methods for describing how a state behaves during a transition.
-
TransitionHandlerBuilderWithData<
D> -
TransitionHandlerBuilderWithDataAndPayload<
D, P> -
TransitionHandlerBuilderWithPayload<
P> - TransitionHandlerWhenBuilder
-
TransitionHandlerWhenWithDataBuilder<
D> - TreeBuildContext
- Provides contextual information while a state tree is being constructed, and factory methods for creating tree nodes.
Enums
- ActionResult
- Describes the message processing result of runnin an action with MessageHandlerBuilder.action.
Functions
-
emptyDataState<
D> (DataStateBuilder< D> builder) → void - A function that adds no behavior to a data state.
-
emptyFinalState(
FinalStateBuilder builder) → void - A function that adds no behavior to a final state.
-
emptyState(
StateBuilder builder) → void - A function that adds no behavior to a state.