Android代码-StateMachine

时间:2022-08-25 21:15:37
【文件属性】:

文件名称:Android代码-StateMachine

文件大小:206KB

文件格式:ZIP

更新时间:2022-08-25 21:15:37

Android代码

StateMachine A Kotlin DSL for finite state machine. StateMachine is used in Scarlet Usage In this example, we create a StateMachine from the following state diagram. Define states, event, and side effects: sealed class State { object Solid : State() object Liquid : State() object Gas : State() } sealed class Event { object OnMelted : Event() object OnFroze : Event() object OnVaporized : Event() object OnCondensed : Event() } sealed class SideEffect { object L


【文件预览】:
StateMachine-master
----gradlew(5KB)
----settings.gradle(36B)
----src()
--------test()
--------main()
----KotlinStyle.xml(23KB)
----example()
--------activity-diagram.png(142KB)
----LICENSE(1KB)
----gradle()
--------wrapper()
----README.md(4KB)
----gradlew.bat(2KB)
----gradle.properties(628B)
----.gitignore(844B)
----build.gradle(924B)

网友评论