#include <kdebug.h>
#include <klocale.h>
-Isotope::Isotope( int neutrons, double percentage, double weight, double halflife, const QString& format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, const QString& spin, const QString& magmoment)
+Isotope::Isotope( int neutrons, int protones, double percentage, double weight, double halflife, QString format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, QString spin, QString magmoment)
{
m_neutrons = neutrons;
+ m_protones = protones;
m_percentage = percentage;
m_halflife = halflife;
m_format = format;
class Isotope
{
public:
- Isotope( int neutrons, double percentage, double weight, double halflife, const QString& format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, const QString& spin, const QString& magmoment);
+ Isotope( int neutrons, int protones, double percentage, double weight, double halflife, QString format, bool alphadecay, bool betaplusdecay, bool betaminusdecay, double alphapercentage, double betaminuspercentage, double betapluspercentage, bool ecdecay, double decayenergy, QString spin, QString magmoment);
bool seconds() const{
if ( m_format == "seconds" )
return m_neutrons;
}
+ /**
+ * @return the number of protones the isotope has
+ */
+ int protones() const{
+ return m_protones;
+ }
+
/**
* the weight of the isotope
*/
* the number of neutrons
*/
int m_neutrons;
-
+
+ /**
+ * the number of protones
+ */
+ int m_protones;
+
///Specify if the decay is of this kind
bool m_alphadecay;
///Specify if the decay is of this kind