Skip to main content
Ctrl+K
Wattson  documentation - Home
  • Wattson Setup
  • First Steps with Wattson
  • High-Level-Documentation
  • API Documentation
  • Wattson Home
  • Wattson GitHub
  • Wattson Setup
  • First Steps with Wattson
  • High-Level-Documentation
  • API Documentation
  • Wattson Home
  • Wattson GitHub

Contents:

  • Wattson Setup
  • First Steps with Wattson
  • High-Level-Documentation
  • API Documentation
    • analysis
    • apps
    • cosimulation
      • cli
      • control
      • exceptions
      • models
      • remote
      • simulators
        • network
          • components
            • interface
              • network_docker_host
              • network_entity
              • network_host
              • network_interface
              • network_link
                • NetworkLink
                  • NetworkLink
                    • NetworkLink.down()
                    • NetworkLink.get_other_interface()
                    • NetworkLink.up()
              • network_nat
              • network_node
              • network_router
              • network_switch
              • network_virtual_machine_host
            • network_link_model
            • patches
            • remote
            • wattson_network_docker_host
            • wattson_network_docker_router
            • wattson_network_entity
            • wattson_network_host
            • wattson_network_interface
            • wattson_network_ipmininet_router
            • wattson_network_link
            • wattson_network_nat
            • wattson_network_node
            • wattson_network_router
            • wattson_network_switch
            • wattson_network_virtual_machine_host
          • constants
          • emulators
          • messages
          • network_emulator
          • network_scenario_loader
          • remote_network_emulator
          • roles
          • wattson_segment
        • physical
        • secondary
        • simulator
    • datapoints
    • exceptions
    • hosts
    • iec104
    • iec61850
    • lib
    • networking
    • powergrid
    • services
    • time
    • util
  • API Documentation
  • network_link
  • NetworkLink

NetworkLink#

class wattson.cosimulation.simulators.network.components.interface.network_link.NetworkLink#

Bases: NetworkEntity, ABC

Methods

down

Set the link state to "down", i.e., disabling the link

get_interface_a

get_interface_b

get_link_model

get_link_state

get_other_interface

Given a valid interface, returns the other interface connected forming this link.

is_up

up

Set the link state to "up", i.e., enabling the link

Attributes

id

abstract down()#

Set the link state to “down”, i.e., disabling the link

get_other_interface(interface: NetworkInterface) → NetworkInterface#

Given a valid interface, returns the other interface connected forming this link. In case the given interface is not part of this link, interface A is returned.

Parameters:

interface ('NetworkInterface') – One interface that forms the link

Returns:

The other interface forming the link.

Return type:

‘NetworkInterface’

abstract up()#

Set the link state to “up”, i.e., enabling the link

previous

network_link

next

network_nat

© Copyright 2025, Lennart Bader.