User 870ab5b546
19-05-2008 19:45:07
How do we create an SGroupAtom from the definition in the default.abbrevgroups file?
It seems like this ought to work:
Unfortunately, SuperAtomSGroup.addAttachAtom() is protected.
Is there another way to do it? Why is addAttachAtom() protected, anyway?
It seems like this ought to work:
Code: |
Molecule abbrevGroup = importer.importMol(smilesDef); MolAtom attachAtom = abbrevGroup.getAtom(attachAtomNum - 1); SuperAtomSGroup sasGroup = new SuperAtomSGroup(abbrevGroup); sasGroup.addAttachAtom(attachAtom); SGroupAtom sgAtom = new SGroupAtom(sasGroup); |
Unfortunately, SuperAtomSGroup.addAttachAtom() is protected.
Is there another way to do it? Why is addAttachAtom() protected, anyway?