public class DebugStrand extends Strand implements IStrand
atomCount, atoms, bondCount, bonds, growArraySize, lonePairCount, lonePairs, singleElectronCount, singleElectrons, stereoElements| Constructor and Description |
|---|
DebugStrand() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IAtomContainer atomContainer)
Add a container (that) to this container, if "that" container has atoms,
bonds, or electron containers already in "this" they are not added.
|
void |
addAtom(IAtom atom)
Adds the atom oAtom without specifying a Monomer or a Strand.
|
void |
addAtom(IAtom oAtom,
IMonomer oMonomer)
Adds the atom oAtom to a specific Monomer.
|
void |
addBond(IBond bond)
Adds a Bond to this AtomContainer.
|
void |
addBond(int atom1,
int atom2,
IBond.Order order)
Adds a bond to this container.
|
void |
addBond(int atom1,
int atom2,
IBond.Order order,
IBond.Stereo stereo)
Adds a bond to this container.
|
void |
addElectronContainer(IElectronContainer electronContainer)
Adds a ElectronContainer to this AtomContainer.
|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
void |
addLonePair(ILonePair ec)
Adds a lone pair to this AtomContainer.
|
void |
addLonePair(int atomID)
Adds a LonePair to this Atom.
|
void |
addProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
void |
addSingleElectron(int atomID)
Adds a LonePair to this Atom.
|
void |
addSingleElectron(ISingleElectron ec)
Adds a single electron to this AtomContainer.
|
void |
addStereoElement(IStereoElement parity)
Adds a stereo element to this container.
|
Iterable<IAtom> |
atoms()
Returns an Iterable for looping over all atoms in this container.
|
Iterable<IBond> |
bonds()
Returns an Iterable for looping over all bonds in this container.
|
IStrand |
clone()
Clones this AtomContainer object and its content.
|
boolean |
contains(IAtom atom)
True, if the AtomContainer contains the given atom object.
|
boolean |
contains(IBond bond)
True, if the AtomContainer contains the given bond object.
|
boolean |
contains(IElectronContainer electronContainer)
True, if the AtomContainer contains the given ElectronContainer object.
|
boolean |
contains(ILonePair ec)
True, if the AtomContainer contains the given LonePair object.
|
boolean |
contains(ISingleElectron ec)
True, if the AtomContainer contains the given SingleElectron object.
|
Iterable<IElectronContainer> |
electronContainers()
Returns an Iterable for looping over all electron containers in this container.
|
IAtom |
getAtom(int number)
Get the atom at position
number in [0,..]. |
int |
getAtomCount()
Returns the number of Atoms in this Container.
|
int |
getAtomNumber(IAtom atom)
Returns the position of a given atom in the atoms array.
|
IBond |
getBond(IAtom atom1,
IAtom atom2)
Returns the bond that connects the two given atoms.
|
IBond |
getBond(int number)
Get the bond at position
number in [0,..]. |
int |
getBondCount()
Returns the number of Bonds in this Container.
|
int |
getBondNumber(IAtom atom1,
IAtom atom2)
Returns the position of the bond between two given atoms in the
electronContainers array.
|
int |
getBondNumber(IBond bond)
Returns the position of a given bond in the electronContainers array.
|
double |
getBondOrderSum(IAtom atom)
Returns the sum of the bond orders for a given Atom.
|
IChemObjectBuilder |
getBuilder()
Returns a
IChemObjectBuilder for the data classes that extend
this class. |
int |
getConnectedAtomsCount(IAtom atom)
Returns the number of atoms connected to the given atom.
|
List<IAtom> |
getConnectedAtomsList(IAtom atom)
Returns an ArrayList of all atoms connected to the given atom.
|
int |
getConnectedBondsCount(IAtom atom)
Returns the number of Bonds for a given Atom.
|
List<IBond> |
getConnectedBondsList(IAtom atom)
Returns an ArrayList of all Bonds connected to the given atom.
|
List<IElectronContainer> |
getConnectedElectronContainersList(IAtom atom)
Returns an ArrayList of all electronContainers connected to the given atom.
|
int |
getConnectedLonePairsCount(IAtom atom)
Returns the number of LonePairs for a given Atom.
|
List<ILonePair> |
getConnectedLonePairsList(IAtom atom)
Returns the array of lone pairs connected to an atom.
|
int |
getConnectedSingleElectronsCount(IAtom atom)
Returns the sum of the SingleElectron for a given Atom.
|
List<ISingleElectron> |
getConnectedSingleElectronsList(IAtom atom)
Returns an array of all SingleElectron connected to the given atom.
|
IElectronContainer |
getElectronContainer(int number)
Returns the ElectronContainer at position
number in the
container. |
int |
getElectronContainerCount()
Returns the number of ElectronContainers in this Container.
|
IAtom |
getFirstAtom()
Returns the atom at position 0 in the container.
|
boolean |
getFlag(int flagType)
Returns the value of a given flag.
|
boolean[] |
getFlags()
Returns the whole set of flags.
|
String |
getID()
Returns the identifier (ID) of this object.
|
IAtom |
getLastAtom()
Returns the atom at the last position in the container.
|
int |
getListenerCount()
Returns the number of ChemObjectListeners registered with this object.
|
ILonePair |
getLonePair(int number)
Get the lone pair at position
number in [0,..]. |
int |
getLonePairCount()
Returns the number of LonePairs in this Container.
|
int |
getLonePairNumber(ILonePair bond)
Returns the position of a given lone pair in the lone pair array.
|
IBond.Order |
getMaximumBondOrder(IAtom atom)
Returns the maximum bond order that this atom currently has in the context
of this AtomContainer.
|
IBond.Order |
getMinimumBondOrder(IAtom atom)
Returns the minimum bond order that this atom currently has in the context
of this AtomContainer.
|
IMonomer |
getMonomer(String cName)
Retrieves a Monomer object by specifying its name.
|
int |
getMonomerCount()
Returns the number of monomers present in the Strand.
|
Collection<String> |
getMonomerNames()
Returns a collection of the names of all
Monomers in this
polymer. |
Map<String,IMonomer> |
getMonomers()
Returns a hashtable containing the monomers in the strand.
|
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
<T> T |
getProperty(Object description)
Returns a property for the IChemObject.
|
ISingleElectron |
getSingleElectron(int number)
Get the single electron at position
number in [0,..]. |
int |
getSingleElectronCount()
Returns the number of the single electrons in this container.
|
int |
getSingleElectronNumber(ISingleElectron bond)
Returns the position of a given single electron in the single electron array.
|
String |
getStrandName()
Retrieves the strand name.
|
String |
getStrandType()
Retrieves the strand type.
|
Iterable<ILonePair> |
lonePairs()
Returns an Iterable for looping over all lone pairs in this container.
|
void |
notifyChanged()
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
notifyChanged(IChemObjectChangeEvent evt)
This should be triggered by an method that changes the content of an object
to that the registered listeners can react to it.
|
void |
remove(IAtomContainer atomContainer)
Removes all atoms and electronContainers of a given atomcontainer from this
container.
|
void |
removeAllBonds()
Removes all Bonds from this container.
|
void |
removeAllElectronContainers()
Removes electronContainers from this container.
|
void |
removeAllElements()
Removes all atoms, bonds and stereo elements from this container.
|
void |
removeAtom(IAtom atom)
Removes the given atom from the AtomContainer.
|
void |
removeAtom(int position)
Removes the atom at the given position from the AtomContainer.
|
void |
removeAtomAndConnectedElectronContainers(IAtom atom)
Removes the given atom and all connected electronContainers from the
AtomContainer.
|
IBond |
removeBond(IAtom atom1,
IAtom atom2)
Removes the bond that connects the two given atoms.
|
void |
removeBond(IBond bond)
Removes the bond from this container.
|
IBond |
removeBond(int pos)
Removes the bond at the given position from the AtomContainer.
|
void |
removeElectronContainer(IElectronContainer electronContainer)
Removes this ElectronContainer from this container.
|
IElectronContainer |
removeElectronContainer(int position)
Removes the bond at the given position from this container.
|
void |
removeListener(IChemObjectListener col)
Use this to remove a ChemObjectListener from the ListenerList of this
IChemObject.
|
void |
removeLonePair(ILonePair ec)
Removes the lone pair from the AtomContainer.
|
ILonePair |
removeLonePair(int pos)
Removes the lone pair at the given position from the AtomContainer.
|
void |
removeMonomer(String name)
Removes a particular monomer, specified by its name.
|
void |
removeProperty(Object description)
Removes a property for a IChemObject.
|
ISingleElectron |
removeSingleElectron(int pos)
Removes the single electron at the given position from the AtomContainer.
|
void |
removeSingleElectron(ISingleElectron ec)
Removes the single electron from the AtomContainer.
|
void |
setAtom(int number,
IAtom atom)
Sets the atom at position
number in [0,..]. |
void |
setAtoms(IAtom[] atoms)
Sets the array of atoms of this AtomContainer.
|
void |
setFlag(int flagType,
boolean flagValue)
Sets the value of some flag.
|
void |
setFlags(boolean[] flagsNew)
Sets the whole set of flags.
|
void |
setID(String identifier)
Sets the identifier (ID) of this object.
|
void |
setProperty(Object description,
Object property)
Sets a property for a IChemObject.
|
void |
setStrandName(String cStrandName)
Sets the name of the Strand object.
|
void |
setStrandType(String cStrandType)
Sets the type of the Strand object.
|
Iterable<ISingleElectron> |
singleElectrons()
Returns an Iterable for looping over all single electrons in this container.
|
void |
stateChanged(IChemObjectChangeEvent event)
Called by objects to which this object has
registered as a listener.
|
Iterable<IStereoElement> |
stereoElements()
Returns the stereo elements defined for this atom container.
|
getConnectedBondsCount, indexOf, indexOf, indexOf, indexOf, isEmpty, setBonds, setStereoElementscompare, getFlagValue, getNotification, getProperty, setNotification, setProperties, shallowCopyequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetConnectedBondsCount, indexOf, indexOf, indexOf, indexOf, isEmpty, setBonds, setStereoElementsgetFlagValue, getNotification, getProperty, setNotification, setProperties, toStringpublic void addStereoElement(IStereoElement parity)
addStereoElement in interface IAtomContaineraddStereoElement in class AtomContainerparity - The new IStereoElement for this containerIAtomContainer.stereoElements()public Iterable<IStereoElement> stereoElements()
stereoElements in interface IAtomContainerstereoElements in class AtomContainerIterable of IStereoElements.IAtomContainer.addStereoElement(IStereoElement)public void setAtoms(IAtom[] atoms)
setAtoms in interface IAtomContainersetAtoms in class AtomContaineratoms - The array of atoms to be assigned to this AtomContainerAtomContainer.getAtom(int)public void setAtom(int number,
IAtom atom)
number in [0,..].setAtom in interface IAtomContainersetAtom in class AtomContainernumber - The position of the atom to be set.atom - The atom to be stored at position numberAtomContainer.getAtom(int)public IAtom getAtom(int number)
number in [0,..].getAtom in interface IAtomContainergetAtom in class AtomContainernumber - The position of the atom to be retrieved.AtomContainer.setAtom(int, org.openscience.cdk.interfaces.IAtom),
AtomContainer.setAtoms(org.openscience.cdk.interfaces.IAtom[])public IBond getBond(int number)
number in [0,..].getBond in interface IAtomContainergetBond in class AtomContainernumber - The position of the bond to be retrieved.public ILonePair getLonePair(int number)
number in [0,..].getLonePair in interface IAtomContainergetLonePair in class AtomContainernumber - The position of the LonePair to be retrieved.public ISingleElectron getSingleElectron(int number)
number in [0,..].getSingleElectron in interface IAtomContainergetSingleElectron in class AtomContainernumber - The position of the SingleElectron to be retrieved.public Iterable<IAtom> atoms()
atoms in interface IAtomContaineratoms in class AtomContainerpublic Iterable<IBond> bonds()
bonds in interface IAtomContainerbonds in class AtomContainerpublic Iterable<ILonePair> lonePairs()
lonePairs in interface IAtomContainerlonePairs in class AtomContainerpublic Iterable<ISingleElectron> singleElectrons()
singleElectrons in interface IAtomContainersingleElectrons in class AtomContainerpublic Iterable<IElectronContainer> electronContainers()
electronContainers in interface IAtomContainerelectronContainers in class AtomContainerpublic IAtom getFirstAtom()
getFirstAtom in interface IAtomContainergetFirstAtom in class AtomContainerpublic IAtom getLastAtom()
getLastAtom in interface IAtomContainergetLastAtom in class AtomContainerpublic int getAtomNumber(IAtom atom)
getAtomNumber in interface IAtomContainergetAtomNumber in class AtomContaineratom - The atom to be soughtpublic int getBondNumber(IAtom atom1, IAtom atom2)
getBondNumber in interface IAtomContainergetBondNumber in class AtomContaineratom1 - The first atomatom2 - The second atompublic int getBondNumber(IBond bond)
getBondNumber in interface IAtomContainergetBondNumber in class AtomContainerbond - The bond to be soughtpublic int getLonePairNumber(ILonePair bond)
getLonePairNumber in interface IAtomContainergetLonePairNumber in class AtomContainerbond - The lone pair to be soughtpublic int getSingleElectronNumber(ISingleElectron bond)
getSingleElectronNumber in interface IAtomContainergetSingleElectronNumber in class AtomContainerbond - The single electron to be soughtpublic IElectronContainer getElectronContainer(int number)
number in the
container.getElectronContainer in interface IAtomContainergetElectronContainer in class AtomContainernumber - The position of the ElectronContainer to be returned.number.IAtomContainer.addElectronContainer(IElectronContainer)public IBond getBond(IAtom atom1, IAtom atom2)
getBond in interface IAtomContainergetBond in class AtomContaineratom1 - The first atomatom2 - The second atompublic int getAtomCount()
getAtomCount in interface IAtomContainergetAtomCount in class AtomContainerpublic int getBondCount()
getBondCount in interface IAtomContainergetBondCount in class AtomContainerpublic int getLonePairCount()
getLonePairCount in interface IAtomContainergetLonePairCount in class AtomContainerpublic int getSingleElectronCount()
getSingleElectronCount in interface IAtomContainergetSingleElectronCount in class AtomContainerpublic int getElectronContainerCount()
getElectronContainerCount in interface IAtomContainergetElectronContainerCount in class AtomContainerpublic List<IAtom> getConnectedAtomsList(IAtom atom)
getConnectedAtomsList in interface IAtomContainergetConnectedAtomsList in class AtomContaineratom - The atom the bond partners are searched of.public List<IBond> getConnectedBondsList(IAtom atom)
getConnectedBondsList in interface IAtomContainergetConnectedBondsList in class AtomContaineratom - The atom the connected bonds are searched ofpublic List<ILonePair> getConnectedLonePairsList(IAtom atom)
getConnectedLonePairsList in interface IAtomContainergetConnectedLonePairsList in class AtomContaineratom - The atom for which to get lone pairsAtomContainer.getElectronContainer(int),
AtomContainer.electronContainers(),
AtomContainer.getBond(int)public List<ISingleElectron> getConnectedSingleElectronsList(IAtom atom)
getConnectedSingleElectronsList in interface IAtomContainergetConnectedSingleElectronsList in class AtomContaineratom - The atom on which the single electron is locatedpublic List<IElectronContainer> getConnectedElectronContainersList(IAtom atom)
getConnectedElectronContainersList in interface IAtomContainergetConnectedElectronContainersList in class AtomContaineratom - The atom the connected electronContainers are searched ofpublic int getConnectedAtomsCount(IAtom atom)
getConnectedAtomsCount in interface IAtomContainergetConnectedAtomsCount in class AtomContaineratom - The atom the number of bond partners are searched of.public int getConnectedBondsCount(IAtom atom)
getConnectedBondsCount in interface IAtomContainergetConnectedBondsCount in class AtomContaineratom - The atompublic int getConnectedLonePairsCount(IAtom atom)
getConnectedLonePairsCount in interface IAtomContainergetConnectedLonePairsCount in class AtomContaineratom - The atompublic int getConnectedSingleElectronsCount(IAtom atom)
getConnectedSingleElectronsCount in interface IAtomContainergetConnectedSingleElectronsCount in class AtomContaineratom - The atom on which the single electron is locatedpublic double getBondOrderSum(IAtom atom)
getBondOrderSum in interface IAtomContainergetBondOrderSum in class AtomContaineratom - The atompublic IBond.Order getMaximumBondOrder(IAtom atom)
getMaximumBondOrder in interface IAtomContainergetMaximumBondOrder in class AtomContaineratom - The atompublic IBond.Order getMinimumBondOrder(IAtom atom)
getMinimumBondOrder in interface IAtomContainergetMinimumBondOrder in class AtomContaineratom - The atompublic void add(IAtomContainer atomContainer)
add in interface IAtomContaineradd in class AtomContaineratomContainer - the other atom containerpublic void addAtom(IAtom atom)
public void addBond(IBond bond)
addBond in interface IAtomContaineraddBond in class AtomContainerbond - The bond to added to this containerpublic void addLonePair(ILonePair ec)
addLonePair in interface IAtomContaineraddLonePair in class AtomContainerec - The LonePair to added to this containerpublic void addSingleElectron(ISingleElectron ec)
addSingleElectron in interface IAtomContaineraddSingleElectron in class AtomContainerec - The SingleElectron to added to this containerpublic void addElectronContainer(IElectronContainer electronContainer)
addElectronContainer in interface IAtomContaineraddElectronContainer in class AtomContainerelectronContainer - The ElectronContainer to added to this containerpublic void remove(IAtomContainer atomContainer)
remove in interface IAtomContainerremove in class AtomContaineratomContainer - The atomcontainer to be removedpublic IElectronContainer removeElectronContainer(int position)
removeElectronContainer in interface IAtomContainerremoveElectronContainer in class AtomContainerposition - The position of the bond in the electronContainers arraypublic void removeElectronContainer(IElectronContainer electronContainer)
removeElectronContainer in interface IAtomContainerremoveElectronContainer in class AtomContainerelectronContainer - The electronContainer to be removedpublic void removeAtom(int position)
removeAtom in interface IAtomContainerremoveAtom in class AtomContainerposition - The position of the atom to be removed.public void removeAtom(IAtom atom)
removeAtom in interface IAtomContainerremoveAtom in class AtomContaineratom - The atom to be removedpublic IBond removeBond(int pos)
removeBond in interface IAtomContainerremoveBond in class AtomContainerpos - The position of the bond to be removed.public IBond removeBond(IAtom atom1, IAtom atom2)
removeBond in interface IAtomContainerremoveBond in class AtomContaineratom1 - The first atomatom2 - The second atompublic void removeBond(IBond bond)
removeBond in interface IAtomContainerremoveBond in class AtomContainerbond - The bond to be removed.public ILonePair removeLonePair(int pos)
removeLonePair in interface IAtomContainerremoveLonePair in class AtomContainerpos - The position of the LonePair to be removed.public void removeLonePair(ILonePair ec)
removeLonePair in interface IAtomContainerremoveLonePair in class AtomContainerec - The LonePair to be removed.public ISingleElectron removeSingleElectron(int pos)
removeSingleElectron in interface IAtomContainerremoveSingleElectron in class AtomContainerpos - The position of the SingleElectron to be removed.public void removeSingleElectron(ISingleElectron ec)
removeSingleElectron in interface IAtomContainerremoveSingleElectron in class AtomContainerec - The SingleElectron to be removed.public void removeAtomAndConnectedElectronContainers(IAtom atom)
IStereoElement
that the atom is contained in. If you are removing hydrogens one of the
utility methods (e.g. AtomContainerManipulator.removeHydrogens(IAtomContainer))
is preferable.removeAtomAndConnectedElectronContainers in interface IAtomContainerremoveAtomAndConnectedElectronContainers in class AtomContaineratom - the atom to be removedpublic void removeAllElements()
removeAllElements in interface IAtomContainerremoveAllElements in class AtomContainerpublic void removeAllElectronContainers()
removeAllElectronContainers in interface IAtomContainerremoveAllElectronContainers in class AtomContainerpublic void removeAllBonds()
removeAllBonds in interface IAtomContainerremoveAllBonds in class AtomContainerpublic void addBond(int atom1,
int atom2,
IBond.Order order,
IBond.Stereo stereo)
addBond in interface IAtomContaineraddBond in class AtomContaineratom1 - Id of the first atom of the Bond in [0,..]atom2 - Id of the second atom of the Bond in [0,..]order - Bondorderstereo - Stereochemical orientationpublic void addBond(int atom1,
int atom2,
IBond.Order order)
addBond in interface IAtomContaineraddBond in class AtomContaineratom1 - Id of the first atom of the Bond in [0,..]atom2 - Id of the second atom of the Bond in [0,..]order - Bondorderpublic void addLonePair(int atomID)
addLonePair in interface IAtomContaineraddLonePair in class AtomContaineratomID - The atom number to which the LonePair is added in [0,..]public void addSingleElectron(int atomID)
addSingleElectron in interface IAtomContaineraddSingleElectron in class AtomContaineratomID - The atom number to which the LonePair is added in [0,..]public boolean contains(IAtom atom)
contains in interface IAtomContainercontains in class AtomContaineratom - the atom this AtomContainer is searched forpublic boolean contains(IBond bond)
contains in interface IAtomContainercontains in class AtomContainerbond - the bond this AtomContainer is searched forpublic boolean contains(ILonePair ec)
contains in interface IAtomContainercontains in class AtomContainerec - the LonePair this AtomContainer is searched forpublic boolean contains(ISingleElectron ec)
contains in interface IAtomContainercontains in class AtomContainerec - the LonePair this AtomContainer is searched forpublic boolean contains(IElectronContainer electronContainer)
contains in interface IAtomContainercontains in class AtomContainerelectronContainer - ElectronContainer that is searched forpublic void addListener(IChemObjectListener col)
addListener in interface IChemObjectaddListener in class ChemObjectcol - the ChemObjectListenerChemObject.removeListener(org.openscience.cdk.interfaces.IChemObjectListener)public int getListenerCount()
getListenerCount in interface IChemObjectgetListenerCount in class ChemObjectpublic void removeListener(IChemObjectListener col)
removeListener in interface IChemObjectremoveListener in class ChemObjectcol - The ChemObjectListener to be removedChemObject.addListener(org.openscience.cdk.interfaces.IChemObjectListener)public void notifyChanged()
notifyChanged in interface IChemObjectnotifyChanged in class ChemObjectpublic void notifyChanged(IChemObjectChangeEvent evt)
notifyChanged in interface IChemObjectnotifyChanged in class ChemObjectevt - A ChemObjectChangeEvent pointing to the source of where
the change happenedpublic void setProperty(Object description, Object property)
setProperty in interface IChemObjectsetProperty in class ChemObjectdescription - An object description of the property (most likely a
unique string)property - An object with the property itselfChemObject.getProperty(java.lang.Object),
ChemObject.removeProperty(java.lang.Object)public void removeProperty(Object description)
removeProperty in interface IChemObjectremoveProperty in class ChemObjectdescription - The object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object),
ChemObject.getProperty(java.lang.Object)public <T> T getProperty(Object description)
getProperty in interface IChemObjectgetProperty in class ChemObjectT - generic return typedescription - An object description of the property (most likely a
unique string)ChemObject.setProperty(java.lang.Object, java.lang.Object),
ChemObject.removeProperty(java.lang.Object)public Map<Object,Object> getProperties()
getProperties in interface IChemObjectgetProperties in class ChemObjectChemObject.addProperties(java.util.Map<java.lang.Object, java.lang.Object>)public String getID()
getID in interface IChemObjectgetID in class ChemObjectChemObject.setID(java.lang.String)public void setID(String identifier)
setID in interface IChemObjectsetID in class ChemObjectidentifier - a String representing the ID valueChemObject.getID()public void setFlag(int flagType,
boolean flagValue)
CDKConstants.ISAROMATIC
or CDKConstants.VISITED). The flags are
intrinsic internal properties and should not be used to store custom
values, please use IChemObject.setProperty(Object, Object).
// set this chem object to be aromatic
chemObject.setFlag(CDKConstants.ISAROMATIC, Boolean.TRUE);
// ...
// indicate we have visited this chem object
chemObject.setFlag(CDKConstants.VISITED, Boolean.TRUE);
setFlag in interface IChemObjectsetFlag in class ChemObjectflagType - flag to set the value forflagValue - value to assign to flagIChemObject.getFlag(int),
CDKConstantspublic boolean getFlag(int flagType)
CDKConstants.ISAROMATIC).
if(chemObject.getFlag(CDKConstants.ISAROMATIC)){
// handle aromatic flag on this chem object
}
getFlag in interface IChemObjectgetFlag in class ChemObjectflagType - flag to retrieve the value offlag_type is setIChemObject.setFlag(int, boolean),
CDKConstantspublic void addProperties(Map<Object,Object> properties)
addProperties in interface IChemObjectaddProperties in class ChemObjectproperties - a Hashtable specifying the property valuesChemObject.getProperties()public void setFlags(boolean[] flagsNew)
setFlags in interface IChemObjectsetFlags in class ChemObjectflagsNew - the new flags.ChemObject.getFlags()public boolean[] getFlags()
getFlags in interface IChemObjectgetFlags in class ChemObjectChemObject.setFlags(boolean[])public IStrand clone() throws CloneNotSupportedException
clone in interface IAtomContainerclone in interface IChemObjectclone in interface IStrandclone in class StrandCloneNotSupportedException - if the IChemObject cannot be clonedChemObject.shallowCopy()public IChemObjectBuilder getBuilder()
IChemObjectBuilder for the data classes that extend
this class.getBuilder in interface ICDKObjectgetBuilder in class ChemObjectIChemObjectBuilder matching this ICDKObjectpublic String getStrandName()
getStrandName in interface IStrandgetStrandName in class StrandStrand.setStrandName(java.lang.String)public String getStrandType()
getStrandType in interface IStrandgetStrandType in class StrandStrand.setStrandType(java.lang.String)public void setStrandName(String cStrandName)
setStrandName in interface IStrandsetStrandName in class StrandcStrandName - The new name for this strandStrand.getStrandName()public void setStrandType(String cStrandType)
setStrandType in interface IStrandsetStrandType in class StrandcStrandType - The new type for this strandStrand.getStrandType()public void addAtom(IAtom oAtom, IMonomer oMonomer)
public int getMonomerCount()
getMonomerCount in interface IStrandgetMonomerCount in class Strandpublic IMonomer getMonomer(String cName)
getMonomer in interface IStrandgetMonomer in class StrandcName - The name of the monomer to look forpublic Collection<String> getMonomerNames()
Monomers in this
polymer.getMonomerNames in interface IStrandgetMonomerNames in class StrandCollection of all the monomer names.public void removeMonomer(String name)
removeMonomer in interface IStrandremoveMonomer in class Strandname - The name of the monomer to removepublic Map<String,IMonomer> getMonomers()
getMonomers in interface IStrandgetMonomers in class Strandpublic void stateChanged(IChemObjectChangeEvent event)
stateChanged in interface IChemObjectListenerstateChanged in class AtomContainerevent - A change event pointing to the source of the changeCopyright © 2017. All Rights Reserved.