code: @Override
      public void setParameters(Object[] params) throws CDKException {
          if (params.length != 2) {
              throw new CDKException("RotatableBondsCount expects two parameters");
          }
          if (!(params[0] instanceof Boolean) || !(params[1] instanceof Boolean)) {
              throw new CDKException("The parameters must be of type Boolean");
          }
          // ok, all should be fine
          includeTerminals = (Boolean) params[0];
          excludeAmides = (Boolean) params[1];
      }
docs: Sets the parameters attribute of the RotatableBondsCountDescriptor object
  
  @param  params            a boolean true means that terminal atoms must be included in the count
  @exception  CDKException  Description of the Exception