Automatak.Simulator.DNP3.ChannelNode.GetNodeState C# (CSharp) Method

GetNodeState() static private method

static private GetNodeState ( ChannelState state ) : NodeState
state ChannelState
return NodeState
        static NodeState GetNodeState(ChannelState state)
        {
            switch (state)
            {
                case(ChannelState.OPENING):
                    return NodeState.Inactive;
                case (ChannelState.WAITING):
                    return NodeState.Failed;
                case (ChannelState.OPEN):
                    return NodeState.Active;
                default:
                    return NodeState.Inactive;
            }
        }