@ Override public void setParameters ( Object [ ] params ) throws CDKException { if ( params . length != 2 ) throw new CDKException ( "RDBERule expects two parameters" ) ; if ( ! ( params [ 0 ] instanceof Double ) ) throw new CDKException ( "The 1 parameter must be of type Double" ) ; if ( ! ( params [ 1 ] instanceof Double ) ) throw new CDKException ( "The 2 parameter must be of type Double" ) ; min = ( Double ) params [ 0 ] ; max = ( Double ) params [ 1 ] ; }
Sets the parameters attribute of the RDBE object .