public class ChemSequence extends ChemObject implements Serializable, IChemSequence, IChemObjectListener, Cloneable
| Modifier and Type | Field and Description |
|---|---|
protected int |
chemModelCount
Number of ChemModels contained by this container.
|
protected IChemModel[] |
chemModels
Array of ChemModels.
|
protected int |
growArraySize
Amount by which the chemModels array grows when elements are added and
the array is not large enough for that.
|
| Constructor and Description |
|---|
ChemSequence()
Constructs an empty ChemSequence.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChemModel(IChemModel chemModel)
Adds an chemModel to this container.
|
Iterable<IChemModel> |
chemModels()
Returns an Iterable to ChemModels in this container.
|
Object |
clone()
Clones this
IChemObject. |
IChemModel |
getChemModel(int number)
Returns the ChemModel at position
number in the
container. |
int |
getChemModelCount()
Returns the number of ChemModels in this Container.
|
protected void |
growChemModelArray()
Grows the chemModel array by a given size.
|
void |
removeChemModel(int pos)
Remove a ChemModel from this ChemSequence.
|
void |
stateChanged(IChemObjectChangeEvent event)
Called by objects to which this object has
registered as a listener.
|
String |
toString()
Returns a one line description of this IChemObject.
|
addListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderprotected IChemModel[] chemModels
protected int chemModelCount
protected int growArraySize
public void addChemModel(IChemModel chemModel)
addChemModel in interface IChemSequencechemModel - The chemModel to be added to this containergetChemModel(int)public void removeChemModel(int pos)
removeChemModel in interface IChemSequencepos - The position of the ChemModel to be removed.public Iterable<IChemModel> chemModels()
chemModels in interface IChemSequenceaddChemModel(org.openscience.cdk.interfaces.IChemModel)public IChemModel getChemModel(int number)
number in the
container.getChemModel in interface IChemSequencenumber - The position of the ChemModel to be returned.number.addChemModel(org.openscience.cdk.interfaces.IChemModel)protected void growChemModelArray()
growArraySizepublic int getChemModelCount()
getChemModelCount in interface IChemSequencepublic String toString()
IChemObjecttoString in interface IChemObjecttoString in class Objectpublic Object clone() throws CloneNotSupportedException
ChemObjectIChemObject. It clones the identifier, flags,
properties and pointer vectors. The ChemObjectListeners are not cloned, and
neither is the content of the pointer vectors.clone in interface IChemObjectclone in class ChemObjectCloneNotSupportedException - if the IChemObject cannot be clonedpublic void stateChanged(IChemObjectChangeEvent event)
stateChanged in interface IChemObjectListenerevent - A change event pointing to the source of the changeCopyright © 2021. All rights reserved.