| Modifier and Type | Method and Description |
|---|---|
static StateMachineBuilder<Object,Object,Object,Void,GenericStateMachine> |
StateMachineBuilder.create()
Creates a new Builder that builds a state machine which accepts any kinds
of objects as States, Events, etc.
|
static <S,E,T,M extends SimpleStateMachine<S,E,T>> |
StateMachineBuilder.create(Class<M> iface)
Creates a new builder that builds state machines from an interface
definition.
|
static <S,E> StateMachineBuilder<S,E,E,Void,SimpleStateMachine<S,E,E>> |
StateMachineBuilder.create(Class<S> states,
Class<E> events)
Creates a new Builder that builds simple state machines.
|
static <S,E,T> StateMachineBuilder<S,E,T,Void,SimpleStateMachine<S,E,T>> |
StateMachineBuilder.create(Class<S> states,
Class<E> events,
Class<T> eventTypes)
Creates a new builder that builds state machines with a distinct event
type.
|
static <S,E,T,C,M extends StateMachineWithContext<S,E,T,C>> |
StateMachineBuilder.createWithContext(Class<M> iface)
Creates a builder that builds state machines with a distinct event type and
a computational context from an interface definition.
|
static <S,E,T,C> StateMachineBuilder<S,E,E,C,StateMachineWithContext<S,E,E,C>> |
StateMachineBuilder.createWithContext(Class<S> states,
Class<E> events,
Class<C> context)
Creates a builder that builds state machines with a computational context.
|
static <S,E,T,C> StateMachineBuilder<S,E,T,C,StateMachineWithContext<S,E,T,C>> |
StateMachineBuilder.createWithContext(Class<S> states,
Class<E> events,
Class<T> eventTypes,
Class<C> context)
Creates a builder that builds state machines with a distinct event type and
a computational context.
|
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withCatchall(S from,
S to) |
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withEventTypeClassifier(EventTypeClassifier<E,T> eventTypeClassifier) |
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withFallback(S from,
S to) |
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withInitialState(S initialState) |
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withListener(StateMachineListener<S,E,T,C> listener)
Define a new listener.
|
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withTransition(S from,
T on,
S to)
Define a new transition.
|
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withTransition(S from,
T on,
S to,
Guard<E,C> guard)
Define a new transition guarded by a
Guard. |
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withTransition(S from,
T on,
S to,
String guard)
Define a new transition guarded by an MVEL expression.
|
StateMachineBuilder<S,E,T,C,M> |
StateMachineBuilder.withTransitions(Transition.TransitionBuilder2<S,T>... transitions)
Defines a bunch of new Transitions using
Transition.from(Object). |
Copyright © 2015. All rights reserved.