
net.pechorina.kairos.automat.builder.TransitionConfigurer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kairos-automat Show documentation
Show all versions of kairos-automat Show documentation
Kairos Automat is a finite-state machine library
The newest version!
package net.pechorina.kairos.automat.builder
class TransitionConfigurer {
internal var transitionConfigs: MutableList> = arrayListOf()
fun withExternal(): ExternalTransitionConfig {
val config = ExternalTransitionConfig(transitionConfigurer = this)
this.transitionConfigs.add(config)
return config
}
fun withTransition(vararg transitionConfig: TransitionConfig): TransitionConfigurer {
transitionConfigs.addAll(transitionConfig)
return this
}
}