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 some 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.
|
getNotification, setNotification, shallowCopy
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getNotification, setNotification, toString
public 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()
Element
Once 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 IElement
getAtomicNumber
in class Element
Element.setAtomicNumber(java.lang.Integer)
public void setAtomicNumber(Integer atomicNumber)
Element
setAtomicNumber
in interface IElement
setAtomicNumber
in class Element
atomicNumber
- The atomic mass to be assigned to this elementElement.getAtomicNumber()
public String getSymbol()
Element
getSymbol
in interface IElement
getSymbol
in class Element
Element.setSymbol(java.lang.String)
public void setSymbol(String symbol)
Element
setSymbol
in interface IElement
setSymbol
in class Element
symbol
- The element symbol to be assigned to this atomElement.getSymbol()
public void addListener(IChemObjectListener col)
ChemObject
addListener
in interface IChemObject
addListener
in class ChemObject
col
- the ChemObjectListenerChemObject.removeListener(org.openscience.cdk.interfaces.IChemObjectListener)
public int getListenerCount()
ChemObject
getListenerCount
in interface IChemObject
getListenerCount
in class ChemObject
public void removeListener(IChemObjectListener col)
ChemObject
removeListener
in interface IChemObject
removeListener
in class ChemObject
col
- The ChemObjectListener to be removedChemObject.addListener(org.openscience.cdk.interfaces.IChemObjectListener)
public void notifyChanged()
ChemObject
notifyChanged
in interface IChemObject
notifyChanged
in class ChemObject
public void notifyChanged(IChemObjectChangeEvent evt)
ChemObject
notifyChanged
in interface IChemObject
notifyChanged
in class ChemObject
evt
- A ChemObjectChangeEvent pointing to the source of where
the change happendpublic void setProperty(Object description, Object property)
ChemObject
setProperty
in interface IChemObject
setProperty
in class ChemObject
description
- 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)
ChemObject
removeProperty
in interface IChemObject
removeProperty
in class ChemObject
description
- 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)
ChemObject
getProperty
in interface IChemObject
getProperty
in class ChemObject
description
- 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()
ChemObject
getProperties
in interface IChemObject
getProperties
in class ChemObject
ChemObject.setProperties(java.util.Map<java.lang.Object, java.lang.Object>)
public String getID()
ChemObject
getID
in interface IChemObject
getID
in class ChemObject
ChemObject.setID(java.lang.String)
public void setID(String identifier)
ChemObject
setID
in interface IChemObject
setID
in class ChemObject
identifier
- a String representing the ID valueChemObject.getID()
public void setFlag(int flag_type, boolean flag_value)
ChemObject
setFlag
in interface IChemObject
setFlag
in class ChemObject
flag_type
- Flag to setflag_value
- Value to assign to flagChemObject.getFlag(int)
public boolean getFlag(int flag_type)
ChemObject
getFlag
in interface IChemObject
getFlag
in class ChemObject
flag_type
- Flag to retrieve the value offlag_type
is setChemObject.setFlag(int, boolean)
public void setProperties(Map<Object,Object> properties)
ChemObject
setProperties
in interface IChemObject
setProperties
in class ChemObject
properties
- a Hashtable specifying the property valuesChemObject.getProperties()
public void setFlags(boolean[] flagsNew)
ChemObject
setFlags
in interface IChemObject
setFlags
in class ChemObject
flagsNew
- the new flags.ChemObject.getFlags()
public boolean[] getFlags()
ChemObject
getFlags
in interface IChemObject
getFlags
in class ChemObject
ChemObject.setFlags(boolean[])
public Object clone() throws CloneNotSupportedException
ChemObject
IChemObject
. 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 IChemObject
clone
in class Isotope
CloneNotSupportedException
- if the IChemObject cannot be clonedpublic IChemObjectBuilder getBuilder()
ICDKObject
IChemObjectBuilder
for the data classes that extend
this class.getBuilder
in interface ICDKObject
getBuilder
in class ChemObject
IChemObjectBuilder
matching this ICDKObject
public void setNaturalAbundance(Double naturalAbundance)
Isotope
setNaturalAbundance
in interface IIsotope
setNaturalAbundance
in class Isotope
naturalAbundance
- The new NaturalAbundance valueIsotope.getNaturalAbundance()
public void setExactMass(Double exactMass)
Isotope
setExactMass
in interface IIsotope
setExactMass
in class Isotope
exactMass
- The new ExactMass valueIsotope.getExactMass()
public Double getNaturalAbundance()
Isotope
Once 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 IIsotope
getNaturalAbundance
in class Isotope
Isotope.setNaturalAbundance(java.lang.Double)
public Double getExactMass()
Isotope
Once 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 IIsotope
getExactMass
in class Isotope
Isotope.setExactMass(java.lang.Double)
public Integer getMassNumber()
Isotope
Once 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 IIsotope
getMassNumber
in class Isotope
Isotope.setMassNumber(Integer)
public void setMassNumber(Integer massNumber)
Isotope
setMassNumber
in interface IIsotope
setMassNumber
in class Isotope
massNumber
- The atomic mass to be assigned to this elementIsotope.getMassNumber()