public class Ring extends AtomContainer implements Serializable, IRing
atomCount, atoms, bondCount, bonds, growArraySize, lonePairCount, lonePairs, singleElectronCount, singleElectrons, stereoElements| Constructor and Description |
|---|
Ring()
Constructs an empty ring.
|
Ring(IAtomContainer atomContainer)
Constructs a ring from the atoms in an IAtomContainer object.
|
Ring(int ringSize)
Constructs an empty ring that will have a certain size.
|
Ring(int ringSize,
String elementSymbol)
Constructs a ring that will have a certain number of atoms of the given elements.
|
| Modifier and Type | Method and Description |
|---|---|
IRing |
clone()
Clones this AtomContainer object and its content.
|
int |
getBondOrderSum()
Returns the sum of all bond orders in the ring.
|
IBond |
getNextBond(IBond bond,
IAtom atom)
Returns the next bond in order, relative to a given bond and atom.
|
int |
getRingSize()
Returns the number of atoms\edges in this ring.
|
String |
toString()
Returns a one line string representation of this Container.
|
add, addAtom, addBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, singleElectrons, stateChanged, stereoElementsaddListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, addAtom, addBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, singleElectrons, stereoElementsaddListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderstateChangedpublic Ring()
public Ring(IAtomContainer atomContainer)
atomContainer - The IAtomContainer object containing the atoms to form the ringpublic Ring(int ringSize,
String elementSymbol)
ringSize - The number of atoms and bonds the ring will haveelementSymbol - The element of the atoms the ring will havepublic Ring(int ringSize)
ringSize - The size (number of atoms) the ring will havepublic int getRingSize()
getRingSize in interface IRingpublic IBond getNextBond(IBond bond, IAtom atom)
getNextBond in interface IRingbond - A bond for which an atom from a consecutive bond is soughtatom - A atom from the bond above to assign a search directionpublic int getBondOrderSum()
getBondOrderSum in interface IRingpublic IRing clone() throws CloneNotSupportedException
clone in interface IAtomContainerclone in interface IChemObjectclone in interface IRingclone in class AtomContainerCloneNotSupportedException - if the IChemObject cannot be clonedChemObject.shallowCopy()public String toString()
AtomContainertoString in interface IChemObjecttoString in class AtomContainerCopyright © 2017. All Rights Reserved.