31 lines
739 B
Python
31 lines
739 B
Python
from electron import Electron
|
|
from nucleon import Nucleon
|
|
|
|
class Atom():
|
|
"""
|
|
一个静态类, 包含一个原子对象的所有信息:
|
|
关联电子 (算法数据)
|
|
关联核子 (内容数据)
|
|
关联轨道 (策略数据)
|
|
关联路径 ()
|
|
"""
|
|
|
|
def __init__(self, ident = ""):
|
|
self.ident = ident
|
|
self.register = {
|
|
"nucleon": None,
|
|
"nucleon_path": None,
|
|
"electron": None,
|
|
"electron_path": None,
|
|
"orbital": None,
|
|
}
|
|
|
|
def link(self, key, value):
|
|
self.register[key] = value
|
|
|
|
|
|
|
|
@staticmethod
|
|
def placeholder():
|
|
return (Electron.placeholder(), Nucleon.placeholder(), {})
|