public interface IPolymer extends IMolecule
Modifier and Type | Method and Description |
---|---|
void |
addAtom(IAtom oAtom)
Adds the atom oAtom without specifying a Monomer.
|
void |
addAtom(IAtom oAtom,
IMonomer oMonomer)
Adds the atom oAtom to a specified Monomer.
|
IPolymer |
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 Polymer.
|
Collection<String> |
getMonomerNames()
Returns a collection of the names of all
Monomer s in this
polymer. |
void |
removeMonomer(String name)
Removes a particular monomer, specified by its name.
|
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
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 be removedIPolymer clone() throws CloneNotSupportedException
IChemObject
clone
in interface IAtomContainer
clone
in interface IChemObject
clone
in interface IMolecule
CloneNotSupportedException
- if the IChemObject cannot be cloned