|
|
def | __new__ (cls, *args, **kwargs) |
| |
| None | __init__ (self, Union[int, str, Atome] valeur, *args, Optional[int] neutron=None) |
| |
|
Union[Ion, IonPolyAtomique] | __add__ (self, Union[Proton, Neutron, IonMonoAtomique] obj) |
| |
|
Union[Ion, IonPolyAtomique] | __iadd__ (self, Union[Proton, Neutron, IonMonoAtomique] obj) |
| |
|
Ion | __sub__ (self, Union[Proton, Neutron] obj) |
| |
|
Ion | __isub__ (self, Union[Proton, Neutron] obj) |
| |
|
str | __str__ (self) |
| |
|
def | __repr__ (self) |
| |
|
bool | __eq__ (self, Any obj) |
| |
| def | notation (self) |
| |
| def | notation_symbole (self, *args, bool A=True, bool Z=True) |
| |
Objet reprèsentant un ion monoatomique.
| None atomion.objets.ion.IonMonoAtomique.__init__ |
( |
|
self, |
|
|
Union[int, str, Atome] |
valeur, |
|
|
* |
args, |
|
|
Optional[int] |
neutron = None |
|
) |
| |
Args:
valeur: Si Atome, convertit l'ion en atome; si int, équivaut au nombre de proton; si str, équivaut au symbole.
neutron: Définie le nombre de proton pour l'isotope.
Exceptions:
ValeurIncorrecte: Si IonMonoatomique, illogique de convertir un Ion en Ion; si int, aucun élément n'a ce nombre de proton; si str, aucun élément n'a ce symbole.