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
Monomer s 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, stereoElements
addListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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, stereoElements
addListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty
getBuilder
stateChanged
public String getStrandName()
getStrandName
in interface IStrand
setStrandName(java.lang.String)
public String getStrandType()
getStrandType
in interface IStrand
setStrandType(java.lang.String)
public void setStrandName(String cStrandName)
setStrandName
in interface IStrand
cStrandName
- The new name for this strandgetStrandName()
public void setStrandType(String cStrandType)
setStrandType
in interface IStrand
cStrandType
- The new type for this strandgetStrandType()
public void addAtom(IAtom oAtom)
addAtom
in interface IAtomContainer
addAtom
in interface IStrand
addAtom
in class AtomContainer
oAtom
- The atom to addpublic void addAtom(IAtom oAtom, IMonomer oMonomer)
public int getMonomerCount()
getMonomerCount
in interface IStrand
public IMonomer getMonomer(String cName)
getMonomer
in interface IStrand
cName
- The name of the monomer to look forpublic Collection<String> getMonomerNames()
Monomer
s in this
polymer.getMonomerNames
in interface IStrand
Collection
of all the monomer names.public void removeMonomer(String name)
removeMonomer
in interface IStrand
name
- The name of the monomer to removepublic Map<String,IMonomer> getMonomers()
getMonomers
in interface IStrand
public String toString()
AtomContainer
toString
in interface IChemObject
toString
in class AtomContainer
public IStrand clone() throws CloneNotSupportedException
AtomContainer
IChemObject
. 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 IAtomContainer
clone
in interface IChemObject
clone
in interface IStrand
clone
in class AtomContainer
CloneNotSupportedException
- if the IChemObject cannot be clonedCopyright © 2021. All rights reserved.