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
Monomer s 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
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.
|
String |
toString()
Returns a one line string representation of this Container.
|
addAtom, getMonomer, removeMonomer
add, 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, stereoElements
addListener, addProperties, compare, getBuilder, getFlag, getFlags, getFlagValue, getID, getListenerCount, getNotification, getProperties, getProperty, getProperty, notifyChanged, notifyChanged, removeListener, removeProperty, setFlag, setFlags, setID, setNotification, setProperties, setProperty, shallowCopy
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addAtom
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, 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
getBuilder
stateChanged
public void addAtom(IAtom oAtom, IStrand oStrand)
addAtom
in interface IBioPolymer
oAtom
- The atom to addoStrand
- The strand the atom belongs topublic void addAtom(IAtom oAtom, IMonomer oMonomer, IStrand oStrand)
addAtom
in interface IBioPolymer
oAtom
- oMonomer
- oStrand
- public int getMonomerCount()
getMonomerCount
in interface IBioPolymer
getMonomerCount
in interface IPolymer
getMonomerCount
in class Polymer
public IMonomer getMonomer(String monName, String strandName)
getMonomer
in interface IBioPolymer
monName
- The name of the monomer to look forstrandName
- The name of the strand to look forpublic Collection<String> getMonomerNames()
Monomer
s in this
BioPolymer.getMonomerNames
in interface IBioPolymer
getMonomerNames
in interface IPolymer
getMonomerNames
in class Polymer
Collection
of all the monomer names.public int getStrandCount()
getStrandCount
in interface IBioPolymer
public IStrand getStrand(String cName)
getStrand
in interface IBioPolymer
cName
- The name of the monomer to look forpublic Collection<String> getStrandNames()
Strand
s in this
BioPolymer.getStrandNames
in interface IBioPolymer
Collection
of all the strand names.public void removeStrand(String name)
removeStrand
in interface IBioPolymer
name
- name of the strand to removepublic Map<String,IStrand> getStrands()
IBioPolymer
getStrands
in interface IBioPolymer
public String toString()
AtomContainer
toString
in interface IChemObject
toString
in class Polymer
public IBioPolymer clone() throws CloneNotSupportedException
AtomContainer
clone
in interface IAtomContainer
clone
in interface IBioPolymer
clone
in interface IChemObject
clone
in interface IPolymer
clone
in class Polymer
CloneNotSupportedException
- if the IChemObject cannot be clonedChemObject.shallowCopy()
Copyright © 2017. All Rights Reserved.