public interface IStrand extends IAtomContainer
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()
Returns a deep clone of this IChemObject.
|
IMonomer |
getMonomer(String cName)
Retrieve a Monomer object by specifying its name.
|
int |
getMonomerCount()
Return 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 the monomers in this strand.
|
String |
getStrandName()
Retrieve the strand name.
|
String |
getStrandType()
Retrieve the strand type.
|
void |
removeMonomer(String name)
Removes a particular monomer, specified by its name.
|
void |
setStrandName(String cStrandName)
Set the name of the Strand object.
|
void |
setStrandType(String cStrandType)
Set the type of the Strand object.
|
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, stereoElements
addListener, getFlag, getFlags, getID, getListenerCount, getNotification, getProperties, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, toString
getBuilder
stateChanged
String getStrandName()
setStrandName(String)
String getStrandType()
setStrandType(String)
void setStrandName(String cStrandName)
cStrandName
- The new name for this strandgetStrandName()
void setStrandType(String cStrandType)
cStrandType
- The new type for this strandgetStrandType()
void addAtom(IAtom oAtom)
addAtom
in interface IAtomContainer
oAtom
- The atom to addvoid addAtom(IAtom oAtom, IMonomer oMonomer)
oAtom
- The atom to addoMonomer
- The monomer the atom belongs toint getMonomerCount()
IMonomer getMonomer(String cName)
cName
- The name of the monomer to look forCollection<String> getMonomerNames()
Monomer
s in this
polymer.Collection
of all the monomer names.void removeMonomer(String name)
name
- The name of the monomer to removeMap<String,IMonomer> getMonomers()
IStrand clone() throws CloneNotSupportedException
IChemObject
clone
in interface IAtomContainer
clone
in interface IChemObject
CloneNotSupportedException
- if the IChemObject cannot be cloned