|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openscience.cdk.ChemObject
org.openscience.cdk.ChemSequence
public class ChemSequence
A sequence of ChemModels, which can, for example, be used to store the course of a reaction. Each state of the reaction would be stored in one ChemModel.
| Constructor Summary | |
|---|---|
ChemSequence()
Constructs an empty ChemSequence. |
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class org.openscience.cdk.ChemObject |
|---|
addListener, compare, getBuilder, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.openscience.cdk.interfaces.IChemObject |
|---|
addListener, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty |
| Methods inherited from interface org.openscience.cdk.interfaces.ICDKObject |
|---|
getBuilder |
| Constructor Detail |
|---|
public ChemSequence()
| Method Detail |
|---|
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)public int getChemModelCount()
getChemModelCount in interface IChemSequencepublic String toString()
IChemObject
toString in interface IChemObjecttoString in class Object
public 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 change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||