# call statemachine.install() to instantiate the statemachinetype (with or without optional nodes)
awaitmystatemachine.install(optionals=True)
# the FiniteStateMachine provides helperclasses for states and transition each class is a representation of the state- and transition-variabletype
# "def __init__(self, name, id=0, node=None):"
# if the state node already exist for example from xml model you can assign it here aswell as if its a substate this is importent for the change of the state
state1=mystatemachine.State("Idle","S-Id-1",1)
# adds the state (StateType) to the statemachine childs - this is mandatory for the FiniteStateMachine!
awaitmystatemachine.add_state(state1,state_type=ua.NodeId(2309,0))#this is a init state -> InitialStateType: ua.NodeId(2309, 0)
# call statemachine.install() to instantiate the statemachinetype (with or without optional nodes)
awaitmystatemachine.install(optionals=True)
# the StateMachine provides helperclasses for states and transition each class is a representation of the state- and transition-variabletype
# "def __init__(self, name, id=0, node=None):"
# if the state node already exist for example from xml model you can assign it here aswell as if its a substate this is importent for the change of the state
state1=mystatemachine.State("Idle","S-Id-1",1)
# adds the state (StateType) to the statemachine childs - this is optional!
awaitmystatemachine.add_state(state1,state_type=ua.NodeId(2309,0))#this is a init state -> InitialStateType: ua.NodeId(2309, 0)