public interface IPolymer extends IAtomContainer
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, indexOf, indexOf, indexOf, indexOf, 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, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, 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
clone
in interface IAtomContainer
clone
in interface IChemObject
CloneNotSupportedException
- if the IChemObject cannot be clonedCopyright © 2017. All Rights Reserved.