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