mnoptical.topo.linear

Module Contents

Classes

LinearTopology

Functions

Span(km[, amp])

Return a fiber segment of length km with a compensating amp

build_spans(net, r1, r2)

Helper function for building spans of

build_link(net, r1, r2)

add_amp(net[, node_name, type, gain_dB])

Create an Amplifier object to add to a ROADM node

Attributes

m

mnoptical.topo.linear.m = 0.001
mnoptical.topo.linear.Span(km, amp=None)

Return a fiber segment of length km with a compensating amp

mnoptical.topo.linear.build_spans(net, r1, r2)

Helper function for building spans of fixed length of 50km and handling those that require different lengths

mnoptical.topo.linear.add_amp(net, node_name=None, type=None, gain_dB=None)

Create an Amplifier object to add to a ROADM node :param node_name: string :param type: string (‘boost’ or ‘preamp’ :param gain_dB: int or float

class mnoptical.topo.linear.LinearTopology
static build(op=0, non=3, bidirectional=False)
Parameters:
  • op – int, operational power in dBm

  • non – int, number of nodes (integer)

  • bidirectional – boolean, bidirectional links

Returns:

Network object