code: @Override
      public void setParameters(Object[] params) throws CDKException {
          if (params.length != 1) throw new CDKException("ElementRule expects one parameters");
  
          if (!(params[0] == null || params[0] instanceof MolecularFormulaRange))
              throw new CDKException("The parameter must be of type MolecularFormulaExpand");
  
          mfRange = (MolecularFormulaRange) params[0];
      }
docs: Sets the parameters attribute of the ElementRule object.
  
  @param params          The new parameters value
  @throws CDKException   Description of the Exception
  
  @see                   #getParameters