@ 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 ] ; }
Sets the parameters attribute of the RotatableBondsCountDescriptor object