NetworkLinkModel#

Bases: WattsonRemoteRepresentation, WattsonRemoteObject

Methods

equals

on_change

set_bandwidth_from_string

set_bit_error_rate_from_string

set_delay_from_timespan

Sets the delay from a timespan textual representation.

set_jitter_from_timespan

Sets the jitter from a timespan textual representation.

set_on_change_callback

Sets a callback to be called when a value is updated.

set_packet_loss_from_string

synchronize

Synchronize this object with its instance in the simulation

to_remote_representation

to_wattson_remote_object

Attributes

bandwidth_bits_per_second

bandwidth_mbps

bit_error_rate

delay_ms

is_remote

jitter_ms

packet_loss_percent

wattson_client

Sets the delay from a timespan textual representation. E.g., “1.5s” becomes a delay of 1500 ms

Parameters:

timespan (str) – The timespan string to parse

Sets the jitter from a timespan textual representation. E.g., “1.5s” becomes a jitter of 1500 ms

Parameters:

timespan (str) – The timespan string to parse

Sets a callback to be called when a value is updated. The callback is called with the parameter name and the new value.

Parameters:

callback (Callable[[str, Any], None]) – The callback to call

Synchronize this object with its instance in the simulation

Parameters:
  • force (bool, optional) – Whether to force an update (Default value = False)

  • block (bool, optional) – Whether to block during the update (Default value = True)