From da9746eb5d503c72ab1d72154653dd69a5ff01a6 Mon Sep 17 00:00:00 2001 From: Carsten Niehaus Date: Sun, 24 Jul 2005 15:42:45 +0000 Subject: [PATCH] * rename one method * 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 | 2 +- kalzium/src/isotope.h | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/kalzium/src/isotope.cpp b/kalzium/src/isotope.cpp index 3f2881f..802fdf3 100644 --- a/kalzium/src/isotope.cpp +++ b/kalzium/src/isotope.cpp @@ -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; diff --git a/kalzium/src/isotope.h b/kalzium/src/isotope.h index 7bba33d..5969669 100644 --- a/kalzium/src/isotope.h +++ b/kalzium/src/isotope.h @@ -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: /** -- 2.47.3