Constructor and Description |
---|
RingSetManipulator() |
Modifier and Type | Method and Description |
---|---|
static List<IAtomContainer> |
getAllAtomContainers(IRingSet set)
Returns all the AtomContainer's in a RingSet.
|
static IAtomContainer |
getAllInOneContainer(IRingSet ringSet)
Puts all rings of a ringSet in a single atomContainer
|
static int |
getAtomCount(IRingSet set)
Return the total number of atoms over all the rings in the colllection.
|
static int |
getBondCount(IRingSet set)
Return the total number of bonds over all the rings in the colllection.
|
static IRing |
getHeaviestRing(IRingSet ringSet,
IBond bond)
We define the heaviest ring as the one with the highest number of double bonds.
|
static IRingSet |
getLargestRingSet(List<IRingSet> ringSystems)
Returns the largest (number of atoms) ring set in a molecule
|
static IRing |
getMostComplexRing(IRingSet ringSet)
Returns the ring with the highest numbers of other rings attached to it.
|
static boolean |
isSameRing(IRingSet ringSet,
IAtom atom1,
IAtom atom2)
Checks if
atom1 and atom2 share membership in the same ring or ring system. |
static void |
markAromaticRings(IRingSet ringset)
Iterates over the rings in the ring set, and marks the ring
aromatic if all atoms and all bonds are aromatic.
|
static boolean |
ringAlreadyInSet(IRing newRing,
IRingSet ringSet)
Checks - and returns 'true' - if a certain ring is already
stored in the ringset.
|
static void |
sort(IRingSet ringSet)
Sorts the rings in the set by size.
|
public static int getAtomCount(IRingSet set)
set
- The collection of ringspublic static IAtomContainer getAllInOneContainer(IRingSet ringSet)
ringSet
- The ringSet to usepublic static IRingSet getLargestRingSet(List<IRingSet> ringSystems)
ringSystems
- RingSystems of a moleculepublic static int getBondCount(IRingSet set)
set
- The collection of ringspublic static List<IAtomContainer> getAllAtomContainers(IRingSet set)
set
- The collection of ringspublic static void sort(IRingSet ringSet)
ringSet
- The collection of ringspublic static IRing getHeaviestRing(IRingSet ringSet, IBond bond)
ringSet
- The collection of ringsbond
- A bond which must be contained by the heaviest ringpublic static IRing getMostComplexRing(IRingSet ringSet)
sort(IRingSet)
.ringSet
- The collection of ringspublic static boolean isSameRing(IRingSet ringSet, IAtom atom1, IAtom atom2)
atom1
and atom2
share membership in the same ring or ring system.
Membership in the same ring is checked if the RingSet contains the SSSR of a molecule; membership in
the same ring or same ring system is checked if the RingSet contains all rings of a molecule.Important: This method only returns meaningful results if atom1
and
atom2
are members of the same molecule for which the RingSet was calculated!
ringSet
- The collection of ringsatom1
- The first atomatom2
- The second atomatom1
and atom2
share membership of at least one ring or ring system, false otherwisepublic static boolean ringAlreadyInSet(IRing newRing, IRingSet ringSet)
newRing
- The ring to be tested if it is already storedringSet
- The collection of ringspublic static void markAromaticRings(IRingSet ringset)
ringset
- The collection of ringsCopyright © 2022. All rights reserved.