public class AtomContainerSetManipulator extends Object
ChemModelManipulator
Constructor and Description |
---|
AtomContainerSetManipulator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
containsByID(IAtomContainerSet atomContainerSet,
String id)
Tells if an AtomContainerSet contains at least one AtomContainer with the
same ID as atomContainer.
|
static List<IAtomContainer> |
getAllAtomContainers(IAtomContainerSet set)
Returns all the AtomContainer's of a MoleculeSet.
|
static List<IChemObject> |
getAllChemObjects(IAtomContainerSet set)
Does not recursively return the contents of the AtomContainer.
|
static List<String> |
getAllIDs(IAtomContainerSet set) |
static int |
getAtomCount(IAtomContainerSet set) |
static int |
getBondCount(IAtomContainerSet set) |
static IAtomContainer |
getRelevantAtomContainer(IAtomContainerSet containerSet,
IAtom atom) |
static IAtomContainer |
getRelevantAtomContainer(IAtomContainerSet containerSet,
IBond bond) |
static double |
getTotalCharge(IAtomContainerSet set) |
static double |
getTotalFormalCharge(IAtomContainerSet set) |
static int |
getTotalHydrogenCount(IAtomContainerSet set) |
static void |
removeAtomAndConnectedElectronContainers(IAtomContainerSet set,
IAtom atom) |
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:
|
public static int getAtomCount(IAtomContainerSet set)
public static int getBondCount(IAtomContainerSet set)
public static void removeAtomAndConnectedElectronContainers(IAtomContainerSet set, IAtom atom)
public static void removeElectronContainer(IAtomContainerSet set, IElectronContainer electrons)
public static List<IAtomContainer> getAllAtomContainers(IAtomContainerSet set)
set
- The collection of IAtomContainer objectspublic static double getTotalCharge(IAtomContainerSet set)
set
- The collection of IAtomContainer objectspublic static double getTotalFormalCharge(IAtomContainerSet set)
set
- The collection of IAtomContainer objectspublic static int getTotalHydrogenCount(IAtomContainerSet set)
set
- The collection of IAtomContainer objectspublic static List<String> getAllIDs(IAtomContainerSet set)
public static void setAtomProperties(IAtomContainerSet set, Object propKey, Object propVal)
public static IAtomContainer getRelevantAtomContainer(IAtomContainerSet containerSet, IAtom atom)
public static IAtomContainer getRelevantAtomContainer(IAtomContainerSet containerSet, IBond bond)
public static List<IChemObject> getAllChemObjects(IAtomContainerSet set)
set
- The collection of IAtomContainer objectspublic static void sort(IAtomContainerSet atomContainerSet)
Sorts the IAtomContainers in the given IAtomContainerSet by the following criteria with decreasing priority:
If no difference can be found with the above criteria, the IAtomContainers are considered equal.
atomContainerSet
- The collection of IAtomContainer objectspublic static boolean containsByID(IAtomContainerSet atomContainerSet, String id)
id
- The IAtomContainer to look foratomContainerSet
- The collection of IAtomContainer objectsCopyright © 2017. All Rights Reserved.