public boolean allSaturated ( IAtomContainer ac ) throws CDKException { logger . debug ( "Are all atoms saturated?" ) ; for ( int f = 0 ; f < ac . getAtomCount ( ) ; f ++ ) { if ( ! isSaturated ( ac . getAtom ( f ) , ac ) ) return false ; } return true ; }
Determines of all atoms on the AtomContainer have the right number the lone pair electrons .