NetworkLink#
- class wattson.cosimulation.simulators.network.components.interface.network_link.NetworkLink#
Bases:
NetworkEntity
,ABC
Methods
Set the link state to "down", i.e., disabling the link
get_interface_a
get_interface_b
get_link_model
get_link_state
Given a valid interface, returns the other interface connected forming this link.
is_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