return theMoleculeSet;
}
private IMoleculeSet __getHoseCodeDescriptorBySolventForSDForamt(Nmr1dUnitList thePeakList, int theHoseCodeLevel, String theFunctionalGroup, int theMoleculeIndex, String theSolvent) {
IMoleculeSet theMoleculeSet = new MoleculeSet();
List<String> theFunctionalGroupList = this.__getFunctionalGroupList(this.getMoleculeSet().getMolecule(theMoleculeIndex));
NMRShiftDBSolventList theSolventList = new NMRShiftDBSolventList();
List<Integer> theUsedAtomNumberList = new ArrayList<Integer>();
for (Nmr1dUnit thePeak : thePeakList.getPeakList()) {
if (!theSolvent.equals(theSolventList.modifyStandardSolventName(thePeak.getSolvent()))) {
return new MoleculeSet();
} else if (thePeak.getAnnotatedAtomNumber() != this.INCORRECT_ATOM_NUMBER && !theUsedAtomNumberList.contains(thePeak.getAnnotatedAtomNumber())) {
int theFunctionalGroupIndex = this.__getFunctionalGroupIndex(thePeak.getAnnotatedAtomNumber(), theMoleculeIndex);
if (theFunctionalGroupList.get(theFunctionalGroupIndex).equals(theFunctionalGroup)) {
theMoleculeSet.addMolecule(this.__getHoseCodeDescriptorBySDFormat(thePeak, theHoseCodeLevel, theMoleculeIndex));
theUsedAtomNumberList.add(thePeak.getAnnotatedAtomNumber());
}
}
}