DiffoExample.Nbn.Speeds (DiffoExample v0.2.1)

Copy Markdown View Source

Diffo - TMF Service and Resource Management with a difference

Speeds type for NBN domain

Summary

Functions

Returns a tuple of maximum downstream and upstream speeds in Mbps given the bandwidth_profile and technology, or :error

Functions

cast_input(arg)

handle_change?()

prepare_change?()

speeds()

speeds(bandwidth_profile, technology)

Returns a tuple of maximum downstream and upstream speeds in Mbps given the bandwidth_profile and technology, or :error

Examples

iex> DiffoExample.Nbn.Speeds.speeds(:D12_U1, :Satellite) {12, 1} iex> DiffoExample.Nbn.Speeds.speeds(:home_fast, :FTTP) {500, 50} iex> DiffoExample.Nbn.Speeds.speeds(:home_hyperfast, :HFC) {2000, 100} iex> DiffoExample.Nbn.Speeds.speeds(:home_fast, :FixedWireless) :error