private int getOxygenCount ( IAtomContainer ac , IAtom atom ) { List < IAtom > neighbours = ac . getConnectedAtomsList ( atom ) ; int ocounter = 0 ; for ( IAtom neighbour : neighbours ) { if ( neighbour . getSymbol ( ) . equals ( "O" ) ) { if ( ! neighbour . getFlag ( CDKConstants . ISAROMATIC ) ) { ocounter += 1 ; } } } return ocounter ; }
Gets the oxygenCount attribute of the XLogPDescriptor object .