Transition
public class Transition : @unchecked Sendable
状态转换器
-
有限状态机,只读
Declaration
Swift
public private(set) var machine: StateMachine { get }
-
事件对象,只读
Declaration
Swift
public private(set) var event: Event { get }
-
来源状态,只读
Declaration
Swift
public private(set) var sourceState: State { get }
-
目标状态,只读
Declaration
Swift
public var targetState: State { get }
-
附加参数,只读
Declaration
Swift
public private(set) var object: Any? { get }
-
初始化转换器
Declaration
Swift
public init(in machine: StateMachine, for event: Event, from state: State, object: Any? = nil)