public class DebugIsotope extends Isotope implements IIsotope
exactMass, naturalAbundance| Constructor and Description |
|---|
DebugIsotope(IElement element) |
DebugIsotope(int atomicNumber,
String elementSymbol,
double exactMass,
double abundance) |
DebugIsotope(int atomicNumber,
String elementSymbol,
int massNumber,
double exactMass,
double abundance) |
DebugIsotope(String elementSymbol) |
DebugIsotope(String elementSymbol,
int massNumber) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(IChemObjectListener col)
Use this to add yourself to this IChemObject as a listener.
|
Object |
clone()
Clones this
IChemObject. |
Integer |
getAtomicNumber()
Returns the atomic number of this element.
|
IChemObjectBuilder |
getBuilder()
Returns a
IChemObjectBuilder for the data classes that extend
this class. |
Double |
getExactMass()
Gets the ExactMass attribute of the Isotope object.
|
boolean |
getFlag(int flag_type)
Returns the value of a given flag.
|
boolean[] |
getFlags()
Returns the whole set of flags.
|
String |
getID()
Returns the identifier (ID) of this object.
|
int |
getListenerCount()
Returns the number of ChemObjectListeners registered with this object.
|
Integer |
getMassNumber()
Returns the atomic mass of this element.
|
Double |
getNaturalAbundance()
Gets the NaturalAbundance attribute of the Isotope object.
|
Map<Object,Object> |
getProperties()
Returns a Map with the IChemObject's properties.
|
Object |
getProperty(Object description)
Returns a property for the IChemObject.
|
String |
getSymbol()
Returns the element symbol of this element.
|
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 |
removeListener(IChemObjectListener col)
Use this to remove a ChemObjectListener from the ListenerList of this
IChemObject.
|
void |
removeProperty(Object description)
Removes a property for a IChemObject.
|
void |
setAtomicNumber(Integer atomicNumber)
Sets the atomic number of this element.
|
void |
setExactMass(Double exactMass)
Sets the ExactMass attribute of the Isotope object.
|
void |
setFlag(int flag_type,
boolean flag_value)
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 |
setMassNumber(Integer massNumber)
Sets the atomic mass of this element.
|
void |
setNaturalAbundance(Double naturalAbundance)
Sets the NaturalAbundance attribute of the Isotope object.
|
void |
setProperties(Map<Object,Object> properties)
Sets the properties of this object.
|
void |
setProperty(Object description,
Object property)
Sets a property for a IChemObject.
|
void |
setSymbol(String symbol)
Sets the element symbol of this element.
|
getFlagValue, getNotification, getProperty, setNotification, shallowCopyequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFlagValue, getNotification, getProperty, setNotification, toStringpublic DebugIsotope(String elementSymbol)
public DebugIsotope(int atomicNumber,
String elementSymbol,
int massNumber,
double exactMass,
double abundance)
public DebugIsotope(int atomicNumber,
String elementSymbol,
double exactMass,
double abundance)
public DebugIsotope(String elementSymbol, int massNumber)
public DebugIsotope(IElement element)
public Integer getAtomicNumber()
ElementOnce instantiated all field not filled by passing parameters to the constructor are null. Elements can be configured by using the IsotopeFactory.configure() method:
Element element = new Element("C");
IsotopeFactory if = IsotopeFactory.getInstance(element.getNewBuilder());
if.configure(element);
getAtomicNumber in interface IElementgetAtomicNumber in class ElementElement.setAtomicNumber(java.lang.Integer)public void setAtomicNumber(Integer atomicNumber)
ElementsetAtomicNumber in interface IElementsetAtomicNumber in class ElementatomicNumber - The atomic mass to be assigned to this elementElement.getAtomicNumber()public String getSymbol()
ElementgetSymbol in interface IElementgetSymbol in class ElementElement.setSymbol(java.lang.String)public void setSymbol(String symbol)
ElementsetSymbol in interface IElementsetSymbol in class Elementsymbol - The element symbol to be assigned to this atomElement.getSymbol()public void addListener(IChemObjectListener col)
ChemObjectaddListener in interface IChemObjectaddListener in class ChemObjectcol - the ChemObjectListenerChemObject.removeListener(org.openscience.cdk.interfaces.IChemObjectListener)public int getListenerCount()
ChemObjectgetListenerCount in interface IChemObjectgetListenerCount in class ChemObjectpublic void removeListener(IChemObjectListener col)
ChemObjectremoveListener in interface IChemObjectremoveListener in class ChemObjectcol - The ChemObjectListener to be removedChemObject.addListener(org.openscience.cdk.interfaces.IChemObjectListener)public void notifyChanged()
ChemObjectnotifyChanged in interface IChemObjectnotifyChanged in class ChemObjectpublic void notifyChanged(IChemObjectChangeEvent evt)
ChemObjectnotifyChanged in interface IChemObjectnotifyChanged in class ChemObjectevt - A ChemObjectChangeEvent pointing to the source of where
the change happendpublic void setProperty(Object description, Object property)
ChemObjectsetProperty 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)
ChemObjectremoveProperty 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 Object getProperty(Object description)
ChemObjectgetProperty in interface IChemObjectgetProperty in class ChemObjectdescription - 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()
ChemObjectgetProperties in interface IChemObjectgetProperties in class ChemObjectChemObject.setProperties(java.util.Map<java.lang.Object, java.lang.Object>)public String getID()
ChemObjectgetID in interface IChemObjectgetID in class ChemObjectChemObject.setID(java.lang.String)public void setID(String identifier)
ChemObjectsetID in interface IChemObjectsetID in class ChemObjectidentifier - a String representing the ID valueChemObject.getID()public void setFlag(int flag_type,
boolean flag_value)
IChemObjectCDKConstants.ISAROMATIC
or CDKConstants.VISITED).
// 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 ChemObjectflag_type - flag to set the value forflag_value - value to assign to flagIChemObject.getFlag(int),
CDKConstantspublic boolean getFlag(int flag_type)
IChemObjectCDKConstants.ISAROMATIC).
if(chemObject.getFlag(CDKConstants.ISAROMATIC)){
// handle aromatic flag on this chem object
}
getFlag in interface IChemObjectgetFlag in class ChemObjectflag_type - flag to retrieve the value offlag_type is setIChemObject.setFlag(int, boolean),
CDKConstantspublic void setProperties(Map<Object,Object> properties)
ChemObjectsetProperties in interface IChemObjectsetProperties in class ChemObjectproperties - a Hashtable specifying the property valuesChemObject.getProperties()public void setFlags(boolean[] flagsNew)
ChemObjectsetFlags in interface IChemObjectsetFlags in class ChemObjectflagsNew - the new flags.ChemObject.getFlags()public boolean[] getFlags()
ChemObjectgetFlags in interface IChemObjectgetFlags in class ChemObjectChemObject.setFlags(boolean[])public Object clone() throws CloneNotSupportedException
ChemObjectIChemObject. It clones the identifier, flags,
properties and pointer vectors. The ChemObjectListeners are not cloned, and
neither is the content of the pointer vectors.clone in interface IChemObjectclone in class IsotopeCloneNotSupportedException - if the IChemObject cannot be clonedpublic IChemObjectBuilder getBuilder()
ICDKObjectIChemObjectBuilder for the data classes that extend
this class.getBuilder in interface ICDKObjectgetBuilder in class ChemObjectIChemObjectBuilder matching this ICDKObjectpublic void setNaturalAbundance(Double naturalAbundance)
IsotopesetNaturalAbundance in interface IIsotopesetNaturalAbundance in class IsotopenaturalAbundance - The new NaturalAbundance valueIsotope.getNaturalAbundance()public void setExactMass(Double exactMass)
IsotopesetExactMass in interface IIsotopesetExactMass in class IsotopeexactMass - The new ExactMass valueIsotope.getExactMass()public Double getNaturalAbundance()
IsotopeOnce instantiated all field not filled by passing parameters to the constructor are null. Isotopes can be configured by using the IsotopeFactory.configure() method:
Isotope isotope = new Isotope("C", 13);
IsotopeFactory if = IsotopeFactory.getInstance(isotope.getNewBuilder());
if.configure(isotope);
getNaturalAbundance in interface IIsotopegetNaturalAbundance in class IsotopeIsotope.setNaturalAbundance(java.lang.Double)public Double getExactMass()
IsotopeOnce instantiated all field not filled by passing parameters to the constructor are null. Isotopes can be configured by using the IsotopeFactory.configure() method:
Isotope isotope = new Isotope("C", 13);
IsotopeFactory if = IsotopeFactory.getInstance(isotope.getNewBuilder());
if.configure(isotope);
getExactMass in interface IIsotopegetExactMass in class IsotopeIsotope.setExactMass(java.lang.Double)public Integer getMassNumber()
IsotopeOnce instantiated all field not filled by passing parameters to the constructor are null. Isotopes can be configured by using the IsotopeFactory.configure() method:
Isotope isotope = new Isotope("C", 13);
IsotopeFactory if = IsotopeFactory.getInstance(isotope.getNewBuilder());
if.configure(isotope);
getMassNumber in interface IIsotopegetMassNumber in class IsotopeIsotope.setMassNumber(Integer)public void setMassNumber(Integer massNumber)
IsotopesetMassNumber in interface IIsotopesetMassNumber in class IsotopemassNumber - The atomic mass to be assigned to this elementIsotope.getMassNumber()