]> Git trees. - libqmvoc.git/commitdiff
* rename one method
authorCarsten Niehaus <cniehaus@gmx.de>
Sun, 24 Jul 2005 15:42:45 +0000 (15:42 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Sun, 24 Jul 2005 15:42:45 +0000 (15:42 +0000)
* adding some api-docs again
* adding the accessors for the percentage-values of the decay

svn path=/trunk/KDE/kdeedu/kalzium/src/isotope.h; revision=438195

kalzium/src/isotope.cpp
kalzium/src/isotope.h

index 3f2881f111ae699bc2acbd2d3d3dc09e3a5aa521..802fdf3d556005bac2d22e1dc149cc1c1675bf29 100644 (file)
@@ -43,7 +43,7 @@ Isotope::Isotope( int neutrons, double percentage, double weight, double halflif
        m_betaplusdecay = betapluspercentage;
 }
 
-QString Isotope::halflifeToHtml()
+QString Isotope::halflifeAsString()
 {
        QString halflife;
 
index 7bba33dfc5230c06b449e2264150c41cd199ea92..59696695de3c5de9151db8400084b6bee633688f 100644 (file)
@@ -103,7 +103,33 @@ class Isotope
                        return m_magmoment;
                }
 
-               QString halflifeToHtml();
+               /**
+                * @return the halflife as a QString. The format will be
+                * appended, for example "seconds" or "years" depending 
+                * on the timeframe
+                */
+               QString halflifeAsString();
+
+               /**
+                * @return the percentage of the betaminus decay
+                */
+               double betaminuspercentage() const{
+                       return m_betaminuspercentage;
+               }
+               
+               /**
+                * @return the percentage of the betaplus decay
+                */
+               double betapluspercentage() const{
+                       return m_betapluspercentage;
+               }
+               
+               /**
+                * @return the percentage of the alpha decay
+                */
+               double alphapercentage() const{
+                       return m_alphapercentage;
+               }
 
        private:
                /**