Opc.Ua.Server.StateMachine.UpdateCollapsedSubstate C# (CSharp) Method

UpdateCollapsedSubstate() protected method

Updates the collapses substate name for the state machine.
protected UpdateCollapsedSubstate ( ) : void
return void
        protected virtual void UpdateCollapsedSubstate()
        {
            StateMachine parent = (StateMachine)FindContainer(typeof(StateMachine));

            if (parent != null)
            {
                parent.UpdateCollapsedSubstate();
                return;
            }

            if (this.CurrentState.EffectiveDisplayNameSpecified)
            {            
                this.CurrentState.EffectiveDisplayName.Value = GetCollapsedSubstate();
            }
        }

Usage Example

コード例 #1
0
        /// <summary>
        /// Updates the collapses substate name for the state machine.
        /// </summary>
        protected virtual void UpdateCollapsedSubstate()
        {
            StateMachine parent = (StateMachine)FindContainer(typeof(StateMachine));

            if (parent != null)
            {
                parent.UpdateCollapsedSubstate();
                return;
            }

            if (this.CurrentState.EffectiveDisplayNameSpecified)
            {
                this.CurrentState.EffectiveDisplayName.Value = GetCollapsedSubstate();
            }
        }