Update container docstrings
This commit is contained in:
@@ -5,12 +5,13 @@ from primaite.simulator.network.hardware.base import Link, Node
|
||||
|
||||
|
||||
class NetworkContainer(SimComponent):
|
||||
"""TODO."""
|
||||
"""Top level container object representing the physical network."""
|
||||
|
||||
nodes: Dict[str, Node] = {}
|
||||
links: Dict[str, Link] = {}
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
"""Initialise the network."""
|
||||
super().__init__(**kwargs)
|
||||
|
||||
self.action_manager = ActionManager()
|
||||
|
||||
@@ -6,12 +6,13 @@ from primaite.simulator.network.container import NetworkContainer
|
||||
|
||||
|
||||
class Simulation(SimComponent):
|
||||
"""TODO."""
|
||||
"""Top-level simulation object which holds a reference to all other parts of the simulation."""
|
||||
|
||||
network: NetworkContainer
|
||||
domain: DomainController
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
"""Initialise the Simulation."""
|
||||
if not kwargs.get("network"):
|
||||
kwargs["network"] = NetworkContainer()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user