public class Ring extends Object implements chemaxon.license.Licensable
Constructor and Description |
---|
Ring() |
Modifier and Type | Method and Description |
---|---|
int |
aliphaticAtomCount()
Calculates the number of all aliphatic atoms in the molecule excluding
hydrogens.
|
int |
aliphaticBondCount()
Calculates the number of all aliphatic bonds in the molecule excluding
bonds connected to hydrogens.
|
int |
aliphaticRingCount()
Calculates the number of aliphatic ring systems of the molecule.
|
int |
aliphaticRingCount(int size)
Calculates the number of aliphatic rings (SSSR smallest set of smallest
rings) of a given size in the molecule.
|
int[][] |
aliphaticRings()
Identifies the aliphatic rings in the molecule.
|
int[][] |
aliphaticRings(int size)
Identifies aliphatic rings in the molecule having a given size (number
of atoms).
|
int |
aromaticAtomCount()
Calculates the number of all aromatic atoms in the molecule.
|
int |
aromaticBondCount()
Calculates the number of all aromatic bonds in the molecule.
|
int |
aromaticRingCount()
Calculates the number of all aromatic ring systems in the molecule
(SSSR).
|
int |
aromaticRingCount(int size)
Calculates the number of aromatic rings (SSSR smallest set of smallest
rings) of a given size in the molecule.
|
int[][] |
aromaticRings()
Identifies the aromatic rings in the molecule.
|
int[][] |
aromaticRings(int size)
Indentifies aromatic rings in the molecule having a given size (number of
rings).
|
int |
carboaliphaticRingCount()
Calculates the number of carboaliphatic rings in the molecule (aliphatic
rings containing carbon atoms only).
|
int |
carboaromaticRingCount()
Calculates the number of carboaromatic rings in the molecule (aromatic
rings containing carbon atoms only).
|
int |
carboRingCount()
Calculates the number of carbocyclic rings in the molecule (rings
containing carbon atoms only).
|
int |
carboRingCount(int size)
Calculates the number of carbocyclic rings in the molecule (rings
containing at least a non-carbon atom).
|
int[][] |
carboRings()
Identifies carbocyclic rings in the molecule (rings containing carbon
atoms only).
|
int[][] |
carboRings(int size)
Identifies carbocyclic rings in the molecule (rings containing carbon
atoms only) having the given number of atoms.
|
int |
chainAtomCount()
Calculates the number of chain atoms in the molecule excluding hydrogens.
|
int |
chainBondCount()
Calculates the number of chain bonds in the molecule excluding bonds of
hydrogen atoms.
|
int |
fusedAliphaticRingCount()
Calculates the number of fused aliphatic rings (SSSR smallest set of
smallest aliphatic rings) in the molecule.
|
int |
fusedAliphaticRingCount(int size)
Calculates the number of fused aliphatic rings in the molecule (rings s).
|
int[][] |
fusedAliphaticRings()
Identifies fused aliphatic rings (SSSR smallest set of smallest aliphatic
rings) in the molecule.
|
int[][] |
fusedAliphaticRings(int size)
Identifies fused aliphatic rings (SSSR smallest set of smallest aliphatic
rings) in the molecule having the given size (number of atoms).
|
int |
fusedAromaticRingCount()
Calculates the number of fused aromatic rings (SSSR smallest set of
smallest aromatic rings) in the molecule.
|
int |
fusedAromaticRingCount(int size)
Calculates the number of fused aromatic rings in the molecule (rings s).
|
int[][] |
fusedAromaticRings()
Identifies fused aromatic rings (SSSR smallest set of smallest aromatic
rings) in the molecule.
|
int[][] |
fusedAromaticRings(int size)
Identifies fused aromatic rings (SSSR smallest set of smallest aromatic
rings) in the molecule having the given size (number of atoms).
|
int |
fusedRingCount()
Calculates the number of fused rings (SSSR smallest set of smallest
rings) in the molecule.
|
MoleculeGraph |
getMolecule()
Retrieves the input molecule
|
int |
heteroaliphaticRingCount()
Calculates the number of aliphatic heterocyclic rings in the molecule
(aliphatic rings containing at least a non-carbon atom).
|
int |
heteroaliphaticRingCount(int size)
Calculates the number of aliphatic heterocyclic rings in the molecule
(aliphatic rings containing at least a non-carbon atom) having a given
size (number of atoms).
|
int[][] |
heteroaliphaticRings()
Identifies heteroaliphatic rings in the molecule (aliphatic rings
containing at least a non-carbon atom).
|
int[][] |
heteroaliphaticRings(int size)
Identifies heteroaliphatic rings in the molecule (aliphatic rings
containing at least a non-carbon atom) having a given size (number of
atoms).
|
int |
heteroaromaticRingCount()
Calculates the number of aromatic heterocyclic rings in the molecule
(aromatic rings containing non-carbon atoms).
|
int |
heteroaromaticRingCount(int size)
Calculates the number of aromatic heterocyclic rings in the molecule
(aromatic rings containing at least a non-carbon atom) having a given
size (number of atoms).
|
int[][] |
heteroaromaticRings()
Identifies heteroaromatic rings in the molecule (aromatic rings
containing at least a non-carbon atom).
|
int[][] |
heteroaromaticRings(int size)
Identifies heteroaromatic rings in the molecule (aromatic rings
containing at least a non-carbon atom) having a given size (number of
atoms).
|
int |
heteroRingCount()
Calculates the number of heterocyclic rings in the molecule (rings
containing at least a non-carbon atom).
|
int |
heteroRingCount(int size)
Calculates the number of heterocyclic rings in the molecule (rings
containing at least a non-carbon atom).
|
int[][] |
heteroRings()
Identifies heterocyclic rings in the molecule (rings containing at least
a non-carbon atom).
|
int[][] |
heteroRings(int size)
Indentifies hetero rings in the molecule having a given size (number of
atoms).
|
boolean |
isAliphaticAtom(int a)
Determines if an atom is not a member of an aromatic ring.
|
boolean |
isAliphaticBond(int b)
Determines if a bond is not a member of an aromatic ring.
|
boolean |
isAromaticAtom(int a)
Determines if an atom is a member of an aromatic ring.
|
boolean |
isAromaticBond(int b)
Determines if a bond is a member of an aromatic ring.
|
boolean |
isChainAtom(int a)
Determines if an atom a ring bond or a chain bond.
|
boolean |
isChainBond(int b)
Determines if a bond is a ring bond or a chain bond.
|
boolean |
isLicensed()
This method is for internal use only.
|
boolean |
isRingAtom(int a)
Determines if an atom a ring bond or a chain bond.
|
boolean |
isRingBond(int b)
Determines if a bond is a ring bond or a chain bond.
|
int[] |
largestRing()
Identifies the atoms of the largest ring (number of atoms) in the
molecule.
|
int |
largestRingSize()
Calculates the size of the largest ring in the molecule (SSSR based).
|
int |
largestRingSizeOfAtom(int a)
Calculates the size of the largest ring an atom is a member of (SSSR
based).
|
int[] |
largestRingSystem()
Identifies the atoms of the largest ring system (number of rings) in the
molecule.
|
int |
largestRingSystemSize()
Calculates the size of the largest ring system (number of rings) in the
molecule.
|
int |
ringAtomCount()
Calculates the number of ring atoms in the molecule.
|
int |
ringBondCount()
Calculates the number of ring bonds in the molecule.
|
int |
ringCount()
Calculates the number of rings (SSSR smallest set of smallest rings) in
the molecule.
|
int |
ringCount(int size)
Calculates the number of rings (SSSR smallest set of smallest rings) of a
given size in the molecule.
|
int |
ringCountOfAtom(int a)
Calculates the number of rings (SSSR smallest set of smallest rings) an
atom is part of.
|
int[][] |
rings()
Identifies the rings in the molecule.
|
int[][] |
rings(int size)
Identifies rings in the molecule having a given size.
|
int |
ringSystemCount()
Calculates the number of ring systems.
|
int |
ringSystemCount(int size)
Identifies ring systems having a given size (number of rings) in the
molecule.
|
int[][] |
ringSystems()
Identifies the ring systems in the molecule.
|
int[][] |
ringSystems(int size)
Indentifies the ring systems in the molecule having a given size (number
of rings).
|
void |
setLicenseEnvironment(String env)
This method is for internal use only.
|
void |
setMolecule(MoleculeGraph mol)
Specifies a molecule to calculate with.
|
void |
setMolecule(MoleculeGraph mol,
int aromatizationMode)
Specifies a molecule to calculate with.
|
int[] |
smallestRing()
Identifies the smallest ring (number of atoms) in the molecule.
|
int |
smallestRingSize()
Calculates the size of the smallest ring in the molecule.
|
int |
smallestRingSizeOfAtom(int a)
Calculates the size of the smallest ring an atom is a member of.
|
int[] |
smallestRingSystem()
Identifies the smallest ring system (number of rings) in the molecule.
|
int |
smallestRingSystemSize()
Calculates the size of the smallest ring system (number of rings) in the
molecule.
|
public MoleculeGraph getMolecule()
public void setMolecule(MoleculeGraph mol)
mol
- the molecule to calculate withpublic void setMolecule(MoleculeGraph mol, int aromatizationMode)
mol
- the molecule to calculate witharomatizationMode
- specifies the algorithm for aromatization. Possible values:
public int aliphaticAtomCount()
public int aliphaticBondCount()
public int aliphaticRingCount()
public int aliphaticRingCount(int size)
size
- size of the ring to countpublic int[][] aliphaticRings()
public int[][] aliphaticRings(int size)
size
- size of the aliphatic rings to returnpublic int aromaticAtomCount()
public int aromaticBondCount()
public int aromaticRingCount()
public int aromaticRingCount(int size)
size
- size of the ring to countpublic int[][] aromaticRings()
public int[][] aromaticRings(int size)
size
- size of the aromatic rings to returnpublic int carboaliphaticRingCount()
public int carboaromaticRingCount()
public int carboRingCount()
public int carboRingCount(int size)
size
- size of the rings to countpublic int[][] carboRings()
public int[][] carboRings(int size)
size
- size of the rings to countpublic int chainAtomCount()
public int chainBondCount()
public int fusedAliphaticRingCount()
public int fusedAliphaticRingCount(int size)
size
- size of the fused aliphatic rings to countpublic int[][] fusedAliphaticRings()
public int[][] fusedAliphaticRings(int size)
size
- size of the fused aliphatic rings to countpublic int fusedAromaticRingCount()
public int fusedAromaticRingCount(int size)
size
- size of the fused aromatic rings to countpublic int[][] fusedAromaticRings()
public int[][] fusedAromaticRings(int size)
size
- size of the fused aromatic rings to countpublic int fusedRingCount()
public int heteroaliphaticRingCount()
public int heteroaliphaticRingCount(int size)
size
- size of the heteroaliphatc rings to countpublic int[][] heteroaliphaticRings()
public int[][] heteroaliphaticRings(int size)
size
- size of the heteroaliphatic rings to countpublic int heteroaromaticRingCount()
public int heteroaromaticRingCount(int size)
size
- size of the heteroaromatic rings to countpublic int[][] heteroaromaticRings()
public int[][] heteroaromaticRings(int size)
size
- size of the heteroaromatic rings to countpublic int heteroRingCount()
public int heteroRingCount(int size)
size
- size of the rings to countpublic int[][] heteroRings()
public int[][] heteroRings(int size)
size
- size of the hetero rings to return (zero returns all)public boolean isAliphaticAtom(int a)
a
- index of the atompublic boolean isAromaticAtom(int a)
a
- index of the atompublic boolean isAliphaticBond(int b)
b
- index of the bondpublic boolean isAromaticBond(int b)
b
- index of the bondpublic boolean isChainAtom(int a)
a
- index of the atompublic boolean isChainBond(int b)
b
- index of the bondpublic boolean isRingAtom(int a)
a
- index of the atompublic boolean isRingBond(int b)
b
- index of the bondpublic int[] largestRing()
public int largestRingSize()
public int largestRingSizeOfAtom(int a)
public int[] largestRingSystem()
public int largestRingSystemSize()
public int ringAtomCount()
public int ringBondCount()
public int ringCount()
public int ringCount(int size)
size
- size of the ring to countpublic int ringCountOfAtom(int a)
a
- index of the atompublic int[][] rings()
public int[][] rings(int size)
size
- size of the ring systems to returnpublic int ringSystemCount()
public int ringSystemCount(int size)
size
- size of the ring to countpublic int[][] ringSystems()
public int[][] ringSystems(int size)
size
- size of the ring systems to returnpublic int[] smallestRing()
public int smallestRingSize()
public int[] smallestRingSystem()
public int smallestRingSystemSize()
public int smallestRingSizeOfAtom(int a)
public void setLicenseEnvironment(String env)
setLicenseEnvironment
in interface chemaxon.license.Licensable
public boolean isLicensed()
isLicensed
in interface chemaxon.license.Licensable