Class ChemSequenceManipulator
java.lang.Object
org.openscience.cdk.tools.manipulator.ChemSequenceManipulator
Class with convenience methods that provide methods from
methods from ChemObjects within the ChemSequence.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<IAtomContainer>getAllAtomContainers(IChemSequence sequence) Returns all the AtomContainer's of a ChemSequence.static List<IChemObject>getAllChemObjects(IChemSequence sequence) Returns a List of all IChemObject inside a ChemSequence.getAllIDs(IChemSequence sequence) static intgetAtomCount(IChemSequence sequence) Get the total number of atoms inside an IChemSequence.static intgetBondCount(IChemSequence sequence) Get the total number of bonds inside an IChemSequence.
-
Constructor Details
-
ChemSequenceManipulator
public ChemSequenceManipulator()
-
-
Method Details
-
getAtomCount
Get the total number of atoms inside an IChemSequence.- Parameters:
sequence- The IChemSequence object.- Returns:
- The number of Atom objects inside.
-
getBondCount
Get the total number of bonds inside an IChemSequence.- Parameters:
sequence- The IChemSequence object.- Returns:
- The number of Bond objects inside.
-
getAllAtomContainers
Returns all the AtomContainer's of a ChemSequence. -
getAllChemObjects
Returns a List of all IChemObject inside a ChemSequence.- Returns:
- A List of all ChemObjects.
-
getAllIDs
-