virtual ~Element();
/**
- * Sdd the ChemicalDataObject @p o to this Element
+ * Add the ChemicalDataObject @p o to this Element
* @param o the ChemicalDataObject to be added
*/
void addData( ChemicalDataObject*o );
/**
- * Sdd a ChemicalDataObject with @p value of @p type to this
+ * Add a ChemicalDataObject with @p value of @p type to this
* Element
* @param value the QVariant to be added
* @param type the BlueObelisk type to be added
{
}
-ChemicalDataObject* Isotope::data() const
-{
- return m_mass;
-}
-
void Isotope::addData( ChemicalDataObject* o )
{
if ( o->type() == ChemicalDataObject::exactMass )
else if ( o->type() == ChemicalDataObject::halfLife )
m_halflife = o;
- //FIXME in the future there should be real CDOs. But CDO only supports one datavalue...
if ( o->type() == ChemicalDataObject::betaplusDecay )
m_betaplus = o;
else if ( o->type() == ChemicalDataObject::betaminusDecay )
* Constructs a new empty isotope.
*/
Isotope();
+
+ /**
+ * Destructor
+ */
virtual ~Isotope();
+ /**
+ * This struct stores the information how the nucleons in the
+ * isotopes are split into neutrons and protons.
+ */
struct Nucleons
{
+ /**
+ * the number of neutrons of the isotope
+ */
int neutrons;
+
+ /**
+ * the number of protons of the isotope
+ */
int protons;
};
- ChemicalDataObject* data() const;
-
+ /**
+ * @return the mass of the isotope
+ */
double mass() const;
+ /**
+ * @return the errormargin ( delta mass ) of the isotope
+ */
QString errorMargin() const;
+ /**
+ * If the isotope belongs to Iron, this method will return "26"
+ * @return the number of the element the isotope belongs to
+ */
int parentElementNumber() const;
+ /**
+ * If the isotope belongs to Iron, this method will return "Fe"
+ * @return the symbol of the element the isotope belongs to
+ */
QString parentElementSymbol() const;
QString spin() const;
return m_alpha;
}
+ /**
+ * This enum stores the different kinds of decay
+ */
enum Decay
{
- ALPHA,
- BETAPLUS,
- BETAMINUS,
- EC
+ ALPHA/**<alpha decay*/,
+ BETAPLUS/**<beta plus decay*/,
+ BETAMINUS/**<beta minus decay*/,
+ EC/**ec decay*/
};
/**
- * @return the number of neutrons of the Isotope after the decay
+ * @return the nucleons of neutrons of the Isotope after the decay
*/
Isotope::Nucleons nucleonsAfterDecay( Decay kind );
+
private:
/**
* the symbol of the element the isotope belongs to