public void SetActivation(GateParam param)
        {
            var index = Params.Input.IndexOf(param);

            _inputState[index] = 1;
            if (_inputState.All(x => x == 1))
            {
                _state      = GateState.Activated;
                _inputState = new int[Params.Input.Count];
            }
        }
 public IGH_Param CreateParameter(GH_ParameterSide side, int index)
 {
     if (side == GH_ParameterSide.Output)
     {
         var param = new Param_GenericObject {
             Access = GH_ParamAccess.tree
         };
         return(param);
     }
     else
     {
         var param = new GateParam {
             Access = GH_ParamAccess.tree
         };
         return(param);
     }
 }