|
|
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) |
| |
Objecto representacion de un ion monoatomico.
| None atomion.objets.ion.IonMonoAtomique.__init__ |
( |
|
self, |
|
|
Union[int, str, Atome] |
valeur, |
|
|
* |
args, |
|
|
Optional[int] |
neutron = None |
|
) |
| |
Args:
valeur: Si Atome, converte el ion en atomo; si int, equivale su numero atomico; si str, equivale el simbolo.
neutron: Definie el numero de neutron por el isotopo.
Exceptions:
ValeurIncorrecte: Si IonMonoatomique, ilogico de convertir un Ion en Ion; si int, no hay elemento que tiene este numero atomico; si str, no hay elemento que tiene este simbolo.