Kfsm Versions Save

Finite State Machine in Kotlin

release-0.9.6

4 years ago

This release adds support for typed parameters and return-types. All events will only receive one optional parameter of the same type and an optional return value all the same type.

release-0.9.5

4 years ago

This build renames a few DSL functions and will break existing code.

state -> whenState transition -> onEvent entry -> onEntry exit -> onExit pushTransition -> onEventPush popTransition -> onEventPop initial -> initialState initialMap -> initialStates

release-0.9.4

4 years ago

Previously state machine events had to be an enum class. This restriction has now been removed. The constructor of the builder does not require a set of valid events of the specific type. The events will be stored in sets or be used as keys in maps, they require correct implementations of equals and hashCode. Enums, primitive types and data classes are all good candidates.

The documentation has been updated with a packet reader example.

release-0.9.3

4 years ago

Files moved and companion objects moved. File renamed.

release-0.9.2

4 years ago

This release includes the following:

  • Externalizing state
  • Documentation improvement
  • Refactoring of instance creation

release-0.9.1

4 years ago

The following features have been added:

  • Named state maps
  • Push / pop transitions
  • Automatic transitions

release-0.8.0

4 years ago

Improve the DSL by rename on to transition