/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 0) { throw new CDKException("The VABCDescriptor expects zero parameters"); } }
/** * Utility for creating a message which indicates an operation timed out * after a given time in milliseconds, {@code t}. The message is of the * format - "Operation did not finish after {t} ms". * * @param t time in milliseconds * @return a throwable exception */ public static Intractable timeout(long t) { return timeout("Operation", t); }
/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 0) { throw new CDKException("The VABCDescriptor expects zero parameters"); } }
/** * Utility for creating a message which indicates an operation timed out * after a given time in milliseconds, {@code t}. The message is of the * format - "Operation did not finish after {t} ms". * * @param t time in milliseconds * @return a throwable exception */ public static Intractable timeout(long t) { return timeout("Operation", t); }
/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 1) { throw new CDKException("AcidicGroupCountDescriptor requires 1 parameter."); } if (!(params[0] instanceof Boolean)) { throw new CDKException("The parameter must be of type Boolean"); } // ok, all should be fine this.checkAromaticity = (Boolean) params[0]; }
@Override public void setParameters(Object[] params) throws CDKException { if (params.length != 1) { throw new CDKException("JPLogPDescriptor expects one parameter"); } if (!(params[0] instanceof Boolean)) { throw new CDKException("The parameter must be of type Boolean"); } addImplicitH = (Boolean) params[0]; }
/** * This method must not be used; XML reading requires the use of an InputStream. * Use setReader(InputStream) instead. */ @Override public void setReader(Reader reader) throws CDKException { throw new CDKException("Invalid method call; use SetReader(InputStream) instead."); }
/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 0) { throw new CDKException("The FractionalPSADescriptor expects zero parameters"); } }
/** * Sets the parameters attribute of the descriptor. * * @param params The new parameters value * @throws org.openscience.cdk.exception.CDKException * if any parameters are specified * @see #getParameters */ @Override public void setParameters(Object[] params) throws CDKException { if (params != null) throw new CDKException("Must not supply any parameters"); }
/** * Helper function to test for a null object and throw an exception if one * is found. * * @param obj the object we are testing. * @throws CDKException */ protected static void not_null(Object obj) throws CDKException { if (obj == null) { throw new CDKException("Null object used in set operation"); } }
/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 1) { throw new CDKException("AcidicGroupCountDescriptor requires 1 parameter."); } if (!(params[0] instanceof Boolean)) { throw new CDKException("The parameter must be of type Boolean"); } // ok, all should be fine this.checkAromaticity = (Boolean) params[0]; }
/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 0) { throw new CDKException("The FractionalCSP3Descriptor expects zero parameters"); } }
/** * Sets the parameters attribute of the IPMolecularLearningDescriptor object * *@param params The new parameters value *@exception CDKException Description of the Exception */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 1) throw new CDKException("One parameter expected"); if (!(params[0] instanceof Boolean)) throw new CDKException("Boolean parameter expected"); addlp = (Boolean) params[0]; }
/** * This method must not be used; XML reading requires the use of an InputStream. * Use setReader(InputStream) instead. */ @Override public void setReader(Reader reader) throws CDKException { throw new CDKException("Invalid method call; use SetReader(InputStream) instead."); }
/** * This method must not be used; XML reading requires the use of an InputStream. * Use setReader(InputStream) instead. */ @Override public void setReader(Reader reader) throws CDKException { throw new CDKException("Invalid method call; use SetReader(InputStream) instead."); }
/** * Sets the parameters attribute of the NitrogenRule object. * * @param params The new parameters value * @throws CDKException Description of the Exception * * @see #getParameters */ @Override public void setParameters(Object[] params) throws CDKException { if (params != null) throw new CDKException("NitrogenRule doesn't expect parameters"); }
/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 0) { throw new CDKException("The FractionalPSADescriptor expects zero parameters"); } }
/** {@inheritDoc} */ @Override public void setParameters(Object[] params) throws CDKException { if (params.length != 0) { throw new CDKException("The FractionalCSP3Descriptor expects zero parameters"); } }
/** * Sets the parameters attribute of the descriptor. * * @param params The new parameters value * @throws org.openscience.cdk.exception.CDKException * if any parameters are specified * @see #getParameters */ @Override public void setParameters(Object[] params) throws CDKException { if (params != null) throw new CDKException("Must not supply any parameters"); }
/** * * @param index * @return * @throws CDKException */ public synchronized boolean getBit(int index) throws CDKException { if ((index >= arrayFingerprint.length) || (index < 0)) { throw new CDKException("EBIFingerprint.getBit(int index) failed for index out of bounds."); } return arrayFingerprint[index]; }