Assign a delay to all selected links equal to the product of link length and specific delay. To use this function, all nodes must have a ‘latitude’ and a ‘longitude’ attribute. Alternatively, all links of the topology must have a ‘length’ attribute. If the length of a link cannot be determined, it is applied the delay equal default_delay if specified, otherwise an error is returned.
Parameters : | topology : Topology
specific_delay : float, optional
default_delay : float, optional
delay_unit : string, optional
links : list, optional
|
---|
Examples
>>> import fnss
>>> topology = fnss.parse_abilene('abilene_topo.txt')
>>> fnss.set_delays_geo_distance(topology, specific_delay=fnss.PROP_DELAY_FIBER)