Changeset View
Changeset View
Standalone View
Standalone View
libscience/isotope.cpp
Context not available. | |||||
51 | m_ecdecay = o; | 51 | m_ecdecay = o; | ||
---|---|---|---|---|---|
52 | } else if (o.type() == ChemicalDataObject::ecDecayLikeliness) { | 52 | } else if (o.type() == ChemicalDataObject::ecDecayLikeliness) { | ||
53 | m_eclikeliness = o; | 53 | m_eclikeliness = o; | ||
54 | } else if (o.type() == ChemicalDataObject::neutronDecay) { | ||||
55 | m_neutrondecay = o; | ||||
56 | } else if (o.type() == ChemicalDataObject::neutronDecayLikeliness) { | ||||
57 | m_neutronlikeliness = o; | ||||
58 | } else if (o.type() == ChemicalDataObject::protonDecay) { | ||||
59 | m_protondecay = o; | ||||
60 | } else if (o.type() == ChemicalDataObject::protonDecayLikeliness) { | ||||
61 | m_protonlikeliness = o; | ||||
62 | } else if (o.type() == ChemicalDataObject::protonalphaDecay) { | ||||
63 | m_protonalphadecay = o; | ||||
64 | } else if (o.type() == ChemicalDataObject::protonalphaDecayLikeliness) { | ||||
65 | m_protonalphalikeliness = o; | ||||
54 | } else if (o.type() == ChemicalDataObject::betaplusDecay) { | 66 | } else if (o.type() == ChemicalDataObject::betaplusDecay) { | ||
55 | m_betaplusdecay = o; | 67 | m_betaplusdecay = o; | ||
56 | } else if (o.type() == ChemicalDataObject::betaplusDecayLikeliness) { | 68 | } else if (o.type() == ChemicalDataObject::betaplusDecayLikeliness) { | ||
57 | m_betapluslikeliness = o; | 69 | m_betapluslikeliness = o; | ||
70 | } else if (o.type() == ChemicalDataObject::betaplusprotonDecay) { | ||||
71 | m_betaplusprotondecay = o; | ||||
72 | } else if (o.type() == ChemicalDataObject::betaplusprotonDecayLikeliness) { | ||||
73 | m_betaplusprotonlikeliness = o; | ||||
74 | } else if (o.type() == ChemicalDataObject::betaplusalphaDecay) { | ||||
75 | m_betaplusalphadecay = o; | ||||
76 | } else if (o.type() == ChemicalDataObject::betaplusalphaDecayLikeliness) { | ||||
77 | m_betaplusalphalikeliness = o; | ||||
58 | } else if (o.type() == ChemicalDataObject::betaminusDecay) { | 78 | } else if (o.type() == ChemicalDataObject::betaminusDecay) { | ||
59 | m_betaminusdecay = o; | 79 | m_betaminusdecay = o; | ||
60 | } else if (o.type() == ChemicalDataObject::betaminusDecayLikeliness) { | 80 | } else if (o.type() == ChemicalDataObject::betaminusDecayLikeliness) { | ||
61 | m_betaminuslikeliness = o; | 81 | m_betaminuslikeliness = o; | ||
82 | } else if (o.type() == ChemicalDataObject::betaminusneutronDecay) { | ||||
83 | m_betaminusneutrondecay = o; | ||||
84 | } else if (o.type() == ChemicalDataObject::betaminusneutronDecayLikeliness) { | ||||
85 | m_betaminusneutronlikeliness = o; | ||||
86 | } else if (o.type() == ChemicalDataObject::betaminusfissionDecay) { | ||||
87 | m_betaminusfissiondecay = o; | ||||
88 | } else if (o.type() == ChemicalDataObject::betaminusfissionDecayLikeliness) { | ||||
89 | m_betaminusfissionlikeliness = o; | ||||
90 | } else if (o.type() == ChemicalDataObject::betaminusalphaDecay) { | ||||
91 | m_betaminusalphadecay = o; | ||||
92 | } else if (o.type() == ChemicalDataObject::betaminusalphaDecayLikeliness) { | ||||
93 | m_betaminusalphalikeliness = o; | ||||
62 | } else if (o.type() == ChemicalDataObject::alphaDecay) { | 94 | } else if (o.type() == ChemicalDataObject::alphaDecay) { | ||
63 | m_alphadecay = o; | 95 | m_alphadecay = o; | ||
64 | } else if (o.type() == ChemicalDataObject::alphaDecayLikeliness) { | 96 | } else if (o.type() == ChemicalDataObject::alphaDecayLikeliness) { | ||
65 | m_alphalikeliness = o; | 97 | m_alphalikeliness = o; | ||
98 | } else if (o.type() == ChemicalDataObject::alphabetaminusDecay) { | ||||
99 | m_alphabetaminusdecay = o; | ||||
100 | } else if (o.type() == ChemicalDataObject::alphabetaminusDecayLikeliness) { | ||||
101 | m_alphabetaminuslikeliness = o; | ||||
66 | } | 102 | } | ||
67 | } | 103 | } | ||
68 | 104 | | |||
Context not available. | |||||
114 | { | 150 | { | ||
115 | return m_eclikeliness.value().toDouble(); | 151 | return m_eclikeliness.value().toDouble(); | ||
116 | } | 152 | } | ||
153 | double Isotope::neutrondecay() const | ||||
154 | { | ||||
155 | return m_neutrondecay.value().toDouble(); | ||||
156 | } | ||||
157 | double Isotope::neutronlikeliness() const | ||||
158 | { | ||||
159 | return m_neutronlikeliness.value().toDouble(); | ||||
160 | } | ||||
161 | double Isotope::protondecay() const | ||||
162 | { | ||||
163 | return m_protondecay.value().toDouble(); | ||||
164 | } | ||||
165 | double Isotope::protonlikeliness() const | ||||
166 | { | ||||
167 | return m_protonlikeliness.value().toDouble(); | ||||
168 | } | ||||
169 | double Isotope::protonalphadecay() const | ||||
170 | { | ||||
171 | return m_protonalphadecay.value().toDouble(); | ||||
172 | } | ||||
173 | double Isotope::protonalphalikeliness() const | ||||
174 | { | ||||
175 | return m_protonalphalikeliness.value().toDouble(); | ||||
176 | } | ||||
117 | double Isotope::betaplusdecay() const | 177 | double Isotope::betaplusdecay() const | ||
118 | { | 178 | { | ||
119 | return m_betaplusdecay.value().toDouble(); | 179 | return m_betaplusdecay.value().toDouble(); | ||
Context not available. | |||||
124 | return m_betapluslikeliness.value().toDouble(); | 184 | return m_betapluslikeliness.value().toDouble(); | ||
125 | } | 185 | } | ||
126 | 186 | | |||
187 | double Isotope::betaplusprotondecay() const | ||||
188 | { | ||||
189 | return m_betaplusprotondecay.value().toDouble(); | ||||
190 | } | ||||
191 | | ||||
192 | double Isotope::betaplusprotonlikeliness() const | ||||
193 | { | ||||
194 | return m_betaplusprotonlikeliness.value().toDouble(); | ||||
195 | } | ||||
196 | double Isotope::betaplusalphadecay() const | ||||
197 | { | ||||
198 | return m_betaplusalphadecay.value().toDouble(); | ||||
199 | } | ||||
200 | | ||||
201 | double Isotope::betaplusalphalikeliness() const | ||||
202 | { | ||||
203 | return m_betaplusalphalikeliness.value().toDouble(); | ||||
204 | } | ||||
205 | | ||||
127 | double Isotope::betaminusdecay() const | 206 | double Isotope::betaminusdecay() const | ||
128 | { | 207 | { | ||
129 | return m_betaminusdecay.value().toDouble(); | 208 | return m_betaminusdecay.value().toDouble(); | ||
Context not available. | |||||
134 | return m_betaminuslikeliness.value().toDouble(); | 213 | return m_betaminuslikeliness.value().toDouble(); | ||
135 | } | 214 | } | ||
136 | 215 | | |||
216 | double Isotope::betaminusneutrondecay() const | ||||
217 | { | ||||
218 | return m_betaminusneutrondecay.value().toDouble(); | ||||
219 | } | ||||
220 | | ||||
221 | double Isotope::betaminusneutronlikeliness() const | ||||
222 | { | ||||
223 | return m_betaminusneutronlikeliness.value().toDouble(); | ||||
224 | } | ||||
225 | double Isotope::betaminusfissiondecay() const | ||||
226 | { | ||||
227 | return m_betaminusfissiondecay.value().toDouble(); | ||||
228 | } | ||||
229 | | ||||
230 | double Isotope::betaminusfissionlikeliness() const | ||||
231 | { | ||||
232 | return m_betaminusfissionlikeliness.value().toDouble(); | ||||
233 | } | ||||
234 | | ||||
235 | double Isotope::betaminusalphadecay() const | ||||
236 | { | ||||
237 | return m_betaminusalphadecay.value().toDouble(); | ||||
238 | } | ||||
239 | | ||||
240 | double Isotope::betaminusalphalikeliness() const | ||||
241 | { | ||||
242 | return m_betaminusalphalikeliness.value().toDouble(); | ||||
243 | } | ||||
244 | | ||||
245 | | ||||
137 | double Isotope::alphadecay() const | 246 | double Isotope::alphadecay() const | ||
138 | { | 247 | { | ||
139 | return m_alphadecay.value().toDouble(); | 248 | return m_alphadecay.value().toDouble(); | ||
Context not available. | |||||
144 | return m_alphalikeliness.value().toDouble(); | 253 | return m_alphalikeliness.value().toDouble(); | ||
145 | } | 254 | } | ||
146 | 255 | | |||
256 | double Isotope::alphabetaminusdecay() const | ||||
257 | { | ||||
258 | return m_alphabetaminusdecay.value().toDouble(); | ||||
259 | } | ||||
260 | | ||||
261 | double Isotope::alphabetaminuslikeliness() const | ||||
262 | { | ||||
263 | return m_alphabetaminuslikeliness.value().toDouble(); | ||||
264 | } | ||||
265 | | ||||
147 | QString Isotope::parentElementSymbol() const | 266 | QString Isotope::parentElementSymbol() const | ||
148 | { | 267 | { | ||
149 | return m_parentElementSymbol.value().toString(); | 268 | return m_parentElementSymbol.value().toString(); | ||
Context not available. | |||||
182 | n.protons -= 1; | 301 | n.protons -= 1; | ||
183 | n.neutrons += 1; | 302 | n.neutrons += 1; | ||
184 | break; | 303 | break; | ||
304 | case NEUTRON: | ||||
305 | n.neutrons -=1; | ||||
306 | break; | ||||
307 | case PROTON: | ||||
308 | n.protons -=1; | ||||
309 | break; | ||||
310 | | ||||
311 | | ||||
185 | } | 312 | } | ||
186 | 313 | | |||
314 | | ||||
187 | return n; | 315 | return n; | ||
188 | } | 316 | } | ||
Context not available. |