code: @Override
      public void setParameters(Object[] params) throws CDKException {
          if (params.length > 2) throw new CDKException("ToleranceRangeRule expects only two parameter");
  
          if (!(params[0] instanceof Double)) throw new CDKException("The parameter 0 must be of type Double");
  
          if (!(params[1] instanceof Double)) throw new CDKException("The parameter 1 must be of type Double");
  
          mass = (Double) params[0];
          tolerance = (Double) params[1];
      }
docs: Sets the parameters attribute of the ToleranceRangeRule object.
  
  @param params          The new parameters value
  @throws CDKException   Description of the Exception
  
  @see                   #getParameters