DiffoExample.Nbn.BandwidthProfile (DiffoExample v0.4.0)

Copy Markdown View Source

Diffo - TMF Service and Resource Management with a difference

BandwidthProfile type for NBN domain

Summary

Functions

Returns the representative downstream rate (Mbps) for a bandwidth profile.

Types

t()

@type t() ::
  :home_hyperfast
  | :home_ultrafast
  | :home_superfast
  | :home_fast
  | :wireless_superfast
  | :wireless_fast
  | :wireless_plus
  | :D1000_U400
  | :D500_U200
  | :D250_U100
  | :D100_U40
  | :D50_U20
  | :D25_U10
  | :D25_U5
  | :D12_U1

Functions

default()

downstream(atom)

Returns the representative downstream rate (Mbps) for a bandwidth profile.

CVCs are sold as symmetric capacity in this model — we ignore the asymmetry of satellite/wireless tiers and use the headline downstream figure as the bandwidth contribution when aggregating. Used by CvcMetrics to compute avcs_total_bandwidth across assigned AVCs.

Examples

iex> DiffoExample.Nbn.BandwidthProfile.downstream(:D100_U40)
100
iex> DiffoExample.Nbn.BandwidthProfile.downstream(:home_fast)
500

handle_change?()

prepare_change?()