Class AtomContainerSetManipulator
java.lang.Object
org.openscience.cdk.tools.manipulator.AtomContainerSetManipulator
- See Also:
- Source code:
- main
- Belongs to CDK module:
- standard
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
containsByID
(IAtomContainerSet atomContainerSet, String id) Tells if an AtomContainerSet contains at least one AtomContainer with the same ID as atomContainer.static List<IAtomContainer>
Returns all the AtomContainer's of a MoleculeSet.static List<IChemObject>
Does not recursively return the contents of the AtomContainer.static int
static int
static IAtomContainer
getRelevantAtomContainer
(IAtomContainerSet containerSet, IAtom atom) static IAtomContainer
getRelevantAtomContainer
(IAtomContainerSet containerSet, IBond bond) static double
static double
static int
static void
static void
removeElectronContainer
(IAtomContainerSet set, IElectronContainer electrons) static void
setAtomProperties
(IAtomContainerSet set, Object propKey, Object propVal) static void
sort
(IAtomContainerSet atomContainerSet) Sorts the IAtomContainers in the given IAtomContainerSet by the following criteria with decreasing priority:
-
Constructor Details
-
AtomContainerSetManipulator
public AtomContainerSetManipulator()
-
-
Method Details
-
getAtomCount
-
getBondCount
-
removeAtomAndConnectedElectronContainers
-
removeElectronContainer
-
getAllAtomContainers
Returns all the AtomContainer's of a MoleculeSet.- Parameters:
set
- The collection of IAtomContainer objects- Returns:
- A list of individual IAtomContainer's
-
getTotalCharge
- Parameters:
set
- The collection of IAtomContainer objects- Returns:
- The summed charges of all atoms in this set.
-
getTotalFormalCharge
- Parameters:
set
- The collection of IAtomContainer objects- Returns:
- The summed formal charges of all atoms in this set.
-
getTotalHydrogenCount
- Parameters:
set
- The collection of IAtomContainer objects- Returns:
- The summed implicit hydrogens of all atoms in this set.
-
getAllIDs
-
setAtomProperties
-
getRelevantAtomContainer
-
getRelevantAtomContainer
-
getAllChemObjects
Does not recursively return the contents of the AtomContainer.- Parameters:
set
- The collection of IAtomContainer objects- Returns:
- a list of individual ChemObject's
-
sort
Sorts the IAtomContainers in the given IAtomContainerSet by the following criteria with decreasing priority:
- Compare atom count
- Compare molecular weight (heavy atoms only)
- Compare bond count
- Compare sum of bond orders (heavy atoms only)
If no difference can be found with the above criteria, the IAtomContainers are considered equal.
- Parameters:
atomContainerSet
- The collection of IAtomContainer objects
-
containsByID
Tells if an AtomContainerSet contains at least one AtomContainer with the same ID as atomContainer. Note this checks getID() for equality, not pointers.- Parameters:
id
- The IAtomContainer to look foratomContainerSet
- The collection of IAtomContainer objects
-