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