public class Strand extends AtomContainer implements Serializable, IStrand
atomCount, atoms, bondCount, bonds, growArraySize, lonePairCount, lonePairs, singleElectronCount, singleElectrons, stereoElements| Constructor and Description |
|---|
Strand()
Constructs a new Strand.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAtom(IAtom oAtom)
Adds the atom oAtom without specifying a Monomer or a Strand.
|
void |
addAtom(IAtom oAtom,
IMonomer oMonomer)
Adds the atom oAtom to a specific Monomer.
|
IStrand |
clone()
Clones this
IChemObject. |
IMonomer |
getMonomer(String cName)
Retrieves a Monomer object by specifying its name.
|
int |
getMonomerCount()
Returns the number of monomers present in the Strand.
|
Collection<String> |
getMonomerNames()
Returns a collection of the names of all
Monomers in this
polymer. |
Map<String,IMonomer> |
getMonomers()
Returns a hashtable containing the monomers in the strand.
|
String |
getStrandName()
Retrieves the strand name.
|
String |
getStrandType()
Retrieves the strand type.
|
void |
removeMonomer(String name)
Removes a particular monomer, specified by its name.
|
void |
setStrandName(String cStrandName)
Sets the name of the Strand object.
|
void |
setStrandType(String cStrandType)
Sets the type of the Strand object.
|
String |
toString()
Returns a one line description of this IChemObject.
|
add, addBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, getTitle, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeAtomOnly, removeAtomOnly, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, setTitle, singleElectrons, stateChanged, stereoElementsaddListener, 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, waitadd, addBond, addBond, addBond, addElectronContainer, addLonePair, addLonePair, addSingleElectron, addSingleElectron, addStereoElement, atoms, bonds, contains, contains, contains, contains, contains, electronContainers, getAtom, getAtomCount, getAtomNumber, getBond, getBond, getBondCount, getBondNumber, getBondNumber, getBondOrderSum, getConnectedAtomsCount, getConnectedAtomsList, getConnectedBondsCount, getConnectedBondsCount, getConnectedBondsList, getConnectedElectronContainersList, getConnectedLonePairsCount, getConnectedLonePairsList, getConnectedSingleElectronsCount, getConnectedSingleElectronsList, getElectronContainer, getElectronContainerCount, getFirstAtom, getLastAtom, getLonePair, getLonePairCount, getLonePairNumber, getMaximumBondOrder, getMinimumBondOrder, getSingleElectron, getSingleElectronCount, getSingleElectronNumber, getTitle, indexOf, indexOf, indexOf, indexOf, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeAtomOnly, removeAtomOnly, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, setTitle, singleElectrons, stereoElementsaddListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderstateChangedpublic String getStrandName()
getStrandName in interface IStrandsetStrandName(java.lang.String)public String getStrandType()
getStrandType in interface IStrandsetStrandType(java.lang.String)public void setStrandName(String cStrandName)
setStrandName in interface IStrandcStrandName - The new name for this strandgetStrandName()public void setStrandType(String cStrandType)
setStrandType in interface IStrandcStrandType - The new type for this strandgetStrandType()public void addAtom(IAtom oAtom)
addAtom in interface IAtomContaineraddAtom in interface IStrandaddAtom in class AtomContaineroAtom - The atom to addpublic void addAtom(IAtom oAtom, IMonomer oMonomer)
public int getMonomerCount()
getMonomerCount in interface IStrandpublic IMonomer getMonomer(String cName)
getMonomer in interface IStrandcName - The name of the monomer to look forpublic Collection<String> getMonomerNames()
Monomers in this
polymer.getMonomerNames in interface IStrandCollection of all the monomer names.public void removeMonomer(String name)
removeMonomer in interface IStrandname - The name of the monomer to removepublic Map<String,IMonomer> getMonomers()
getMonomers in interface IStrandpublic String toString()
AtomContainertoString in interface IChemObjecttoString in class AtomContainerpublic IStrand clone() throws CloneNotSupportedException
AtomContainerIChemObject. 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 IAtomContainerclone in interface IChemObjectclone in interface IStrandclone in class AtomContainerCloneNotSupportedException - if the IChemObject cannot be clonedCopyright © 2018. All Rights Reserved.