public interface IAtomContainerSet extends IChemObject
Modifier and Type | Method and Description |
---|---|
void |
add(IAtomContainerSet atomContainerSet)
Adds all atomContainers in the AtomContainerSet to this container.
|
void |
addAtomContainer(IAtomContainer atomContainer)
Adds an atomContainer to this container.
|
void |
addAtomContainer(IAtomContainer atomContainer,
double multiplier)
Adds an atomContainer to this container with the given
multiplier.
|
Iterable<IAtomContainer> |
atomContainers()
Get an Iterable for this AtomContainerSet.
|
IAtomContainer |
getAtomContainer(int number)
Returns the AtomContainer at position
number in the
container. |
int |
getAtomContainerCount()
Returns the number of AtomContainers in this Container.
|
Double |
getMultiplier(IAtomContainer container)
Returns the multiplier of the given AtomContainer.
|
Double |
getMultiplier(int number)
Returns the multiplier for the AtomContainer at position
number in the
container. |
Double[] |
getMultipliers()
Returns an array of double with the stoichiometric coefficients
of the products.
|
boolean |
isEmpty()
Returns true if this IAtomContainerSet is empty.
|
void |
removeAllAtomContainers()
Removes all AtomContainer from this container.
|
void |
removeAtomContainer(IAtomContainer atomContainer)
Removes an AtomContainer from this container.
|
void |
removeAtomContainer(int pos)
Removes an AtomContainer from this container.
|
void |
replaceAtomContainer(int position,
IAtomContainer container)
Replace the AtomContainer at a specific position (array has to be large enough).
|
boolean |
setMultiplier(IAtomContainer container,
Double multiplier)
Sets the coefficient of a AtomContainer to a given value.
|
void |
setMultiplier(int position,
Double multiplier)
Sets the coefficient of a AtomContainer to a given value.
|
boolean |
setMultipliers(Double[] newMultipliers)
Sets the multipliers of the AtomContainers.
|
void |
sortAtomContainers(Comparator<IAtomContainer> comparator)
Sort the AtomContainers using a provided Comparator.
|
addListener, addProperties, clone, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
getBuilder
void addAtomContainer(IAtomContainer atomContainer)
atomContainer
- The atomContainer to be added to this containervoid removeAtomContainer(IAtomContainer atomContainer)
atomContainer
- The atomContainer to be removed from this containervoid removeAllAtomContainers()
void removeAtomContainer(int pos)
pos
- The position of the AtomContainer to be removed from this containervoid replaceAtomContainer(int position, IAtomContainer container)
position
- position in array for AtomContainercontainer
- the replacement AtomContainerboolean setMultiplier(IAtomContainer container, Double multiplier)
container
- The AtomContainer for which the multiplier is setmultiplier
- The new multiplier for the AtomContatinergetMultiplier(IAtomContainer)
void setMultiplier(int position, Double multiplier)
position
- The position of the AtomContainer for which the multiplier is
set in [0,..]multiplier
- The new multiplier for the AtomContatiner at
position
getMultiplier(int)
Double[] getMultipliers()
setMultipliers(java.lang.Double[])
boolean setMultipliers(Double[] newMultipliers)
newMultipliers
- The new multipliers for the AtomContainers in this setgetMultipliers()
void addAtomContainer(IAtomContainer atomContainer, double multiplier)
atomContainer
- The atomContainer to be added to this containermultiplier
- The multiplier of this atomContainervoid add(IAtomContainerSet atomContainerSet)
atomContainerSet
- The AtomContainerSetIterable<IAtomContainer> atomContainers()
IAtomContainer getAtomContainer(int number)
number
in the
container.number
- The position of the AtomContainer to be returned.number
.Double getMultiplier(int number)
number
in the
container.number
- The position of the multiplier of the AtomContainer to be returned.number
.setMultiplier(int, Double)
Double getMultiplier(IAtomContainer container)
container
- The AtomContainer for which the multiplier is givensetMultiplier(IAtomContainer, Double)
int getAtomContainerCount()
void sortAtomContainers(Comparator<IAtomContainer> comparator)
comparator
- defines the sorting methodboolean isEmpty()
Copyright © 2021. All rights reserved.