MCPcopy Create free account
hub / github.com/OpenSN-Library/OpenSN-Library / __init__

Method __init__

TopoConfigurators/opensn/model/link.py:14–24  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

12class LinkBase:
13
14 def __init__(self) -> None:
15 self.link_id: str = ""
16 self.end_infos: list[EndInfo] = []
17 self.type: str = ""
18 self.address_infos: list[dict[str,str]] = []
19 self.link_index: int = 0
20 self.enable: bool = False
21 self.cross_machine: bool = False
22 self.parameter: dict[str,int] = {}
23 self.node_index: int = 0
24 self.extra: dict[str,str] = {}
25
26def link_from_json(seq: str) -> LinkBase:
27 if seq is None :

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected