Last updated on Sep 04, 2024.

netsse.base.Network#

class netsse.base.Network(name: str = None, nature: str = 'undefined', platforms: list = [])#

Initialises the network.

Parameters:
  • name (str, optional) – Network name. By default, the name string is generated randomly in the format NetworkXXXX.

  • nature (str, default 'undefined') – Network nature.

  • platforms (list, default []) – List of platforms (as Platform instances).

See also

Platform

Example

>>> plaform1 = netsse.base.Platform()
>>> network = netsse.base.Network(platforms=[plaform1])

Methods#

add_platform(*args[, ignore_msg])

Add a Platform instance to the list of platforms in the network.

remove_platform(*args[, ignore_msg])

Remove a Platform instance from the list of platforms in the network.