| Package | Description |
|---|---|
| org.jeasy.states.api |
This package contains the public APIs.
|
| org.jeasy.states.core |
This package contains the core implementation of finite state machine.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
EventHandler<E extends Event>
Abstraction for actions to perform when an event is triggered.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEvent
Abstract class for events to which a FSM should react and make transitions.
|
| Modifier and Type | Method and Description |
|---|---|
Event |
FiniteStateMachineException.getEvent()
Get the event triggered when the exception occurred.
|
Event |
FiniteStateMachine.getLastEvent()
Return the last triggered event.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Event> |
Transition.getEventType()
Return fired event type upon which the transition should be made.
|
| Modifier and Type | Method and Description |
|---|---|
State |
FiniteStateMachine.fire(Event event)
Fire an event.
|
| Constructor and Description |
|---|
FiniteStateMachineException(Transition transition,
Event event,
Throwable cause)
Create a new
FiniteStateMachineException. |
| Modifier and Type | Method and Description |
|---|---|
<E extends Event> |
TransitionBuilder.eventHandler(EventHandler<E> eventHandler)
Set the event handler of the transition.
|
| Modifier and Type | Method and Description |
|---|---|
TransitionBuilder |
TransitionBuilder.eventType(Class<? extends Event> eventType)
Set event type upon which the transition should be triggered.
|
Copyright © 2020. All rights reserved.