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

Method __init__

TopoConfigurators/opensn/model/instance.py:35–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33class Instance:
34
35 def __init__(self) -> None:
36 self.instance_id: str = ""
37 self.name: str = ""
38 self.type: str = ""
39 self.image: str = ""
40 self.extra: dict[str,str] = {}
41 self.device_info: dict[str,DeviceRequireInfo] = {}
42 self.resource: ResourceLimit = 0
43 self.node_index: int = -1
44 self.connections: dict[str,ConnectionInfo] = []
45 self.start: bool = False
46
47def instance_from_json(seq: str) -> Instance:
48 if seq is None :

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected