public class Strand extends AtomContainer implements Serializable, IStrand
| 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 AtomContainer object and its content.
|
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 string representation of this Container.
|
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, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, singleElectrons, stateChanged, stereoElementsaddListener, compare, getBuilder, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyequals, 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, isEmpty, lonePairs, remove, removeAllBonds, removeAllElectronContainers, removeAllElements, removeAtom, removeAtom, removeAtomAndConnectedElectronContainers, removeBond, removeBond, removeBond, removeElectronContainer, removeElectronContainer, removeLonePair, removeLonePair, removeSingleElectron, removeSingleElectron, setAtom, setAtoms, setBonds, setStereoElements, singleElectrons, stereoElementsaddListener, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, 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
AtomContainerclone in interface IAtomContainerclone in interface IChemObjectclone in interface IStrandclone in class AtomContainerCloneNotSupportedException - if the IChemObject cannot be clonedChemObject.shallowCopy()