code: @Override
      public void setParameters(Object[] params) throws CDKException {
          if (params.length > 3) throw new CDKException("PartialPiChargeDescriptor only expects three parameter");
  
          if (!(params[0] instanceof Integer)) throw new CDKException("The parameter must be of type Integer");
          maxIterations = (Integer) params[0];
  
          if (params.length > 1 && params[1] != null) {
              if (!(params[1] instanceof Boolean)) throw new CDKException("The parameter must be of type Boolean");
              lpeChecker = (Boolean) params[1];
          }
  
          if (params.length > 2 && params[2] != null) {
              if (!(params[2] instanceof Integer)) throw new CDKException("The parameter must be of type Integer");
              maxResonStruc = (Integer) params[2];
          }
      }
docs: Sets the parameters attribute of the PiElectronegativityDescriptor
  object
  
  @param  params            The number of maximum iterations. 1= maxIterations. 2= maxResonStruc.
  @exception  CDKException  Description of the Exception