@ Override public double validate ( IMolecularFormula formula ) throws CDKException { logger . info ( "Start validation of " , formula ) ; List < Double > RDBEList = getRDBEValue ( formula ) ; for ( Iterator < Double > it = RDBEList . iterator ( ) ; it . hasNext ( ) ; ) { double RDBE = it . next ( ) ; if ( min <= RDBE && RDBE <= 30 ) if ( validate ( formula , RDBE ) ) return 1.0 ; } return 0.0 ; }
Validate the RDBRule of this IMolecularFormula .