]> Git trees. - libqmvoc.git/commitdiff
Add a real API
authorCarsten Niehaus <cniehaus@gmx.de>
Mon, 20 Feb 2006 14:56:02 +0000 (14:56 +0000)
committerCarsten Niehaus <cniehaus@gmx.de>
Mon, 20 Feb 2006 14:56:02 +0000 (14:56 +0000)
svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=511630

libscience/isotope.cpp
libscience/isotope.h

index 607e24724ef72d2cb5b017e37daca3f63bd0d2e2..7260899dde527609375911cc87a87c7b1b4dbf4c 100644 (file)
@@ -30,7 +30,7 @@ Isotope::Isotope()
 
 Isotope::Isotope( ChemicalDataObject* mass, ChemicalDataObject* ID )
        : m_parentElementSymbol( 0 ), m_mass( 0 ), m_identifier( 0 ),
-       m_spin( 0 ), m_magmoment( 0 ), m_halflife( 0 ), m_ecday( 0 ), m_betaminus( 0 ),
+       m_spin( 0 ), m_magmoment( 0 ), m_halflife( 0 ), m_ecdecay( 0 ), m_betaminus( 0 ),
        m_betaplus( 0 ), m_alpha( 0 )
 {
        addData( mass );
@@ -71,7 +71,7 @@ void Isotope::addData( ChemicalDataObject* o )
                if ( o->type() == ChemicalDataObject::alphaDecay )
                        m_alpha = o;
                if ( o->type() == ChemicalDataObject::ecDecay )
-                       m_ecday = o;
+                       m_ecdecay = o;
        }
 }
 
index ca1860e99cbf55999a355a7bd0a4f5226c12a6a0..7720b79a18d325aa1ccaa696a16c04981cae0123 100644 (file)
@@ -52,6 +52,9 @@ class Isotope
 
                double halflife() const;
                
+               /**
+                * add the ChemicalDataObject @p o
+                */
                void addData( ChemicalDataObject* o );
 
                void setNucleons( int number );
@@ -61,15 +64,39 @@ class Isotope
                 */
                int nucleons() const;
 
-               //FIXME
-               //need to be made private. But that comes later
+               /**
+                * @return decay
+                */
+               ChemicalDataObject* ecdecay() const{
+                       return m_ecdecay;
+               }
 
-               ChemicalDataObject* m_ecday;
+               /**
+                * @return decay
+                */
+               ChemicalDataObject* betaminusdecay() const{
+                       return m_betaminus;
+               }
+               
+               /**
+                * @return decay
+                */
+               ChemicalDataObject* betaplusdecay() const{
+                       return m_betaplus;
+               }
+               
+               /**
+                * @return decay
+                */
+               ChemicalDataObject* alphadecay() const{
+                       return m_alpha;
+               }
+       private:
+               ChemicalDataObject* m_ecdecay;
                ChemicalDataObject* m_betaplus;
                ChemicalDataObject* m_betaminus; 
                ChemicalDataObject* m_alpha;
                
-       private:
                /**
                 * the symbol of the element the isotope belongs to
                 */