NetworkLinkModel#
- class wattson.cosimulation.simulators.network.components.network_link_model.NetworkLinkModel#
Bases:
WattsonRemoteRepresentation
,WattsonRemoteObject
Methods
equals
on_change
set_bandwidth_from_string
set_bit_error_rate_from_string
Sets the delay from a timespan textual representation.
Sets the jitter from a timespan textual representation.
Sets a callback to be called when a value is updated.
set_packet_loss_from_string
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
- set_delay_from_timespan(timespan: str)#
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
- set_jitter_from_timespan(timespan: str)#
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
- set_on_change_callback(callback: Callable[[str, Any], None])#
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(force: bool = False, block: bool = True)#
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)