Class ReactionSetManipulator
java.lang.Object
org.openscience.cdk.tools.manipulator.ReactionSetManipulator
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<IAtomContainer>Returns all the AtomContainer's of a Reaction.static List<IChemObject>getAllIDs(IReactionSet set) static IAtomContainerSetget all Molecules object from a set of Reactions.static intgetAtomCount(IReactionSet set) static intgetBondCount(IReactionSet set) static IReactiongetReactionByAtomContainerID(IReactionSet reactionSet, String id) Gets a reaction from a ReactionSet by ID of any product or reactant.static IReactiongetReactionByReactionID(IReactionSet reactionSet, String id) Gets a reaction from a ReactionSet by ID.static IAtomContainergetRelevantAtomContainer(IReactionSet set, IAtom atom) static IAtomContainergetRelevantAtomContainer(IReactionSet set, IBond bond) static IReactiongetRelevantReaction(IReactionSet set, IAtom atom) static IReactiongetRelevantReaction(IReactionSet set, IBond bond) static IReactionSetgetRelevantReactions(IReactionSet reactSet, IAtomContainer molecule) Get all Reactions object containing a Molecule from a set of Reactions.static IReactionSetgetRelevantReactionsAsProduct(IReactionSet reactSet, IAtomContainer molecule) Get all Reactions object containing a Molecule as a Product from a set of Reactions.static IReactionSetgetRelevantReactionsAsReactant(IReactionSet reactSet, IAtomContainer molecule) Get all Reactions object containing a Molecule as a Reactant from a set of Reactions.static voidstatic voidremoveElectronContainer(IReactionSet set, IElectronContainer electrons) static voidsetAtomProperties(IReactionSet set, Object propKey, Object propVal)
-
Constructor Details
-
ReactionSetManipulator
public ReactionSetManipulator()
-
-
Method Details
-
getAtomCount
-
getBondCount
-
removeAtomAndConnectedElectronContainers
-
removeElectronContainer
-
getAllMolecules
get all Molecules object from a set of Reactions.- Parameters:
set- The set of reaction to inspect- Returns:
- The IAtomContanerSet
-
getAllIDs
-
getAllAtomContainers
Returns all the AtomContainer's of a Reaction.- Parameters:
set- the reaction set to get the molecules from- Returns:
- a List containing the IAtomContainer objects in the IReactionSet
-
getRelevantReaction
-
getRelevantReaction
-
getRelevantReactions
Get all Reactions object containing a Molecule from a set of Reactions.- Parameters:
reactSet- The set of reaction to inspectmolecule- The molecule to find- Returns:
- The IReactionSet
-
getRelevantReactionsAsReactant
public static IReactionSet getRelevantReactionsAsReactant(IReactionSet reactSet, IAtomContainer molecule) Get all Reactions object containing a Molecule as a Reactant from a set of Reactions.- Parameters:
reactSet- The set of reaction to inspectmolecule- The molecule to find as a reactant- Returns:
- The IReactionSet
-
getRelevantReactionsAsProduct
public static IReactionSet getRelevantReactionsAsProduct(IReactionSet reactSet, IAtomContainer molecule) Get all Reactions object containing a Molecule as a Product from a set of Reactions.- Parameters:
reactSet- The set of reaction to inspectmolecule- The molecule to find as a product- Returns:
- The IReactionSet
-
getRelevantAtomContainer
-
getRelevantAtomContainer
-
setAtomProperties
-
getAllChemObjects
-
getReactionByAtomContainerID
Gets a reaction from a ReactionSet by ID of any product or reactant. If several exist, only the first one will be returned.- Parameters:
reactionSet- The reactionSet to search inid- The id to search for.- Returns:
- The Reaction or null;
-
getReactionByReactionID
Gets a reaction from a ReactionSet by ID. If several exist, only the first one will be returned.- Parameters:
reactionSet- The reactionSet to search inid- The id to search for.- Returns:
- The Reaction or null;
-