.set_default_maximum_speed(+)
TntpNetworkReaderSettings method
Description
Set the default maximum speed to apply for a link in case no information is available. Unit of this value is defined separately.
Signature
.set_default_maximum_speed(speed: float)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
speed |
float |
N/A | N/A | The speed |
Return type
N/A
Example 1
from planit import *
# create a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)
# TNTP network reader
reader = network_converter.create_reader(NetworkReaderType.TNTP)
reader.settings.set_default_maximum_speed(30.0) # in prevailing unit
See also
N/A
Source code
Class TntpNetworkReaderSettingsWrapper
in converterwrappers.py