NetworkLinkModel#
- class wattson.cosimulation.simulators.network.components.network_link_model.NetworkLinkModel#
Bases:
WattsonRemoteRepresentation,WattsonRemoteObjectMethods
equalson_changeset_bandwidth_from_stringset_bit_error_rate_from_stringSets 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_stringSynchronize this object with its instance in the simulation
to_remote_representationto_wattson_remote_objectAttributes
bandwidth_bits_per_secondbandwidth_mbpsbit_error_ratedelay_msis_remotejitter_mspacket_loss_percentwattson_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)