DefaultTransition

open class DefaultTransition<E : Event>(val name: String?, val eventMatcher: EventMatcher<E>, val type: TransitionType, sourceState: IState, val metaInfo: MetaInfo?) : InternalTransition<E>

Constructors

Link copied to clipboard
constructor(name: String?, eventMatcher: EventMatcher<E>, type: TransitionType, metaInfo: MetaInfo?, sourceState: IState, targetState: IState?)
constructor(name: String?, eventMatcher: EventMatcher<E>, type: TransitionType, metaInfo: MetaInfo?, sourceState: IState, targetStateDirectionProducer: TransitionDirectionProducer<E>)
constructor(name: String?, eventMatcher: EventMatcher<E>, type: TransitionType, sourceState: IState, metaInfo: MetaInfo?)

Properties

Link copied to clipboard
open override var argument: Any?

This parameter may be used to pass arbitrary data with a transition to targetState. This argument may be set from transition listener. Such transition must have only one listener that sets the argument.

Link copied to clipboard
open override val eventMatcher: EventMatcher<E>
Link copied to clipboard
Link copied to clipboard
open override val metaInfo: MetaInfo?
Link copied to clipboard
open override val name: String?
Link copied to clipboard
open override val sourceState: InternalState
Link copied to clipboard
open override val type: TransitionType

Functions

Link copied to clipboard
open suspend override fun accept(visitor: CoVisitor)
open override fun accept(visitor: Visitor)
Link copied to clipboard
open override fun <L : Transition.Listener> addListener(listener: L): L
Link copied to clipboard
open suspend override fun isMatchingEvent(event: Event): Boolean

Checks if the event matches this Transition

Link copied to clipboard
inline fun <E : Event> Transition<E>.onComplete(crossinline block: suspend (activeStates: Set<IState>, TransitionParams<E>) -> Unit): Transition.Listener
Link copied to clipboard
inline fun <E : Event> Transition<E>.onTriggered(crossinline block: suspend (TransitionParams<E>) -> Unit): Transition.Listener
Link copied to clipboard
open override fun removeListener(listener: Transition.Listener)
Link copied to clipboard
open override fun toString(): String