public class BioPolymer extends Polymer implements Serializable, IBioPolymer
atomCount, atoms, bondCount, bonds, growArraySize, lonePairCount, lonePairs, singleElectronCount, singleElectrons, stereoElements| Constructor and Description |
|---|
BioPolymer()
Constructs a new Polymer to store the Strands.
|
| Modifier and Type | Method and Description |
|---|---|
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()
Clones this AtomContainer object and its content.
|
IMonomer |
getMonomer(String monName,
String strandName)
Retrieves a Monomer object by specifying its name.
|
int |
getMonomerCount()
Returns the number of monomers present in BioPolymer.
|
Collection<String> |
getMonomerNames()
Returns a collection of the names of all
Monomers in this
BioPolymer. |
IStrand |
getStrand(String cName)
Retrieves a Monomer object by specifying its name.
|
int |
getStrandCount()
Returns the number of strands present in the BioPolymer.
|
Collection<String> |
getStrandNames()
Returns a collection of the names of all
Strands 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.
|
String |
toString()
Returns a one line string representation of this Container.
|
addAtom, getMonomer, removeMonomeradd, addAtom, 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, stateChanged, stereoElementsaddListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAtomaddAtom, getMonomer, removeMonomeradd, 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, stereoElementsaddListener, addProperties, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setPropertygetBuilderstateChangedpublic void addAtom(IAtom oAtom, IStrand oStrand)
addAtom in interface IBioPolymeroAtom - The atom to addoStrand - The strand the atom belongs topublic void addAtom(IAtom oAtom, IMonomer oMonomer, IStrand oStrand)
addAtom in interface IBioPolymeroAtom - oMonomer - oStrand - public int getMonomerCount()
getMonomerCount in interface IBioPolymergetMonomerCount in interface IPolymergetMonomerCount in class Polymerpublic IMonomer getMonomer(String monName, String strandName)
getMonomer in interface IBioPolymermonName - The name of the monomer to look forstrandName - The name of the strand to look forpublic Collection<String> getMonomerNames()
Monomers in this
BioPolymer.getMonomerNames in interface IBioPolymergetMonomerNames in interface IPolymergetMonomerNames in class PolymerCollection of all the monomer names.public int getStrandCount()
getStrandCount in interface IBioPolymerpublic IStrand getStrand(String cName)
getStrand in interface IBioPolymercName - The name of the monomer to look forpublic Collection<String> getStrandNames()
Strands in this
BioPolymer.getStrandNames in interface IBioPolymerCollection of all the strand names.public void removeStrand(String name)
removeStrand in interface IBioPolymername - name of the strand to removepublic Map<String,IStrand> getStrands()
IBioPolymergetStrands in interface IBioPolymerpublic String toString()
AtomContainertoString in interface IChemObjecttoString in class Polymerpublic IBioPolymer clone() throws CloneNotSupportedException
AtomContainerclone in interface IAtomContainerclone in interface IBioPolymerclone in interface IChemObjectclone in interface IPolymerclone in class PolymerCloneNotSupportedException - if the IChemObject cannot be clonedChemObject.shallowCopy()Copyright © 2017. All Rights Reserved.