Create PrrtChannelParameters class
The class should store (for both _fwd
and _bwd
):
-
Packet loss rate in percent. (property loss_rate_[...]
) -
Propagation round trip time in seconds. (property rt_prop_[...]
) -
Bottleneck data rate in bits per second. (property btl_dr_[...]
)
It should provide computed properties:
-
Bandwidth-delay product in bits ( btl_dr * rt_prop
for both directions). -
Minimal redundancy information in percent ( ri_min()
). -
Minimal redundancy information given residual error in percent ( ri_min_residual(applicationParam.max_loss)
).
Should come with convenience methods:
-
__str__
-
__repr__
-
__eq__
It should also nicely serialize to a 3-tuple to be used in Numpy arrays.
Python properties: https://www.programiz.com/python-programming/property
Edited by Ashkan Taslimi