public interface IBioPolymer extends IPolymer
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,
IStrand oStrand)
Adds the atom to a specified Strand and a specified Monomer.
|
void |
addAtom(IAtom oAtom,
IStrand oStrand)
Adds the atom oAtom to a specified Strand, whereas the Monomer is unspecified.
|
IBioPolymer |
clone()
Returns a deep clone of this IChemObject.
|
IMonomer |
getMonomer(String monName,
String strandName)
Retrieve a
Monomer object by specifying its name. |
int |
getMonomerCount()
Return the number of monomers present in BioPolymer.
|
Collection<String> |
getMonomerNames()
Returns a collection of the names of all
Monomer s in this
BioPolymer. |
IStrand |
getStrand(String cName)
Retrieve a Monomer object by specifying its name.
|
int |
getStrandCount()
Return the number of strands present in the BioPolymer.
|
Collection<String> |
getStrandNames()
Returns a collection of the names of all
Strand s in this
BioPolymer. |
Map<String,IStrand> |
getStrands()
Returns a Map containing the strands in the Polymer.
|
void |
removeStrand(String name)
Removes a particular strand, specified by its name.
|
addAtom, getMonomer, removeMonomer
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, toString
getBuilder
stateChanged
void addAtom(IAtom oAtom)
addAtom
in interface IAtomContainer
addAtom
in interface IPolymer
oAtom
- The atom to addvoid addAtom(IAtom oAtom, IStrand oStrand)
oAtom
- The atom to addoStrand
- The strand the atom belongs tovoid addAtom(IAtom oAtom, IMonomer oMonomer, IStrand oStrand)
oAtom
- The atom to addoMonomer
- The monomer the atom belongs tooStrand
- The strand the atom belongs toint getMonomerCount()
getMonomerCount
in interface IPolymer
IMonomer getMonomer(String monName, String strandName)
Monomer
object by specifying its name.
You have to specify the strand to enable monomers with the same name in different strands. There is at least one such case: every strand contains a monomer called "".
monName
- The name of the monomer to look forstrandName
- The name of the strand to look forCollection<String> getMonomerNames()
Monomer
s in this
BioPolymer.getMonomerNames
in interface IPolymer
Collection
of all the monomer names.int getStrandCount()
IStrand getStrand(String cName)
cName
- The name of the monomer to look forCollection<String> getStrandNames()
Strand
s in this
BioPolymer.Collection
of all the strand names.void removeStrand(String name)
name
- The name of the strand to removeMap<String,IStrand> getStrands()
IBioPolymer clone() throws CloneNotSupportedException
clone
in interface IAtomContainer
clone
in interface IChemObject
clone
in interface IPolymer
CloneNotSupportedException
- if the IChemObject cannot be clonedCopyright © 2021. All rights reserved.