.network_settings
PlanitIntermodalReaderSettings property
The PlanitIntermodalReaderSettings
instance is accessible via the PlanitIntermodalReader
its .settings
property. It allows the user to configure the PlanitIntermodalReader. We differentiate between:
The network settings are identical to the settings exposed by the PlanitNetworkReader and are described in detail under PlanitNetworkReaderSettings. These settings configure everything related to the physical road and/or rail network.
The zoning settings are additional settings for the physical infrastructure directly related to the zoning aspects, including the intermodal zoning component, of the reader, i.e., the parsing of (transfer) zones, such as od zones, but equally important and more important for the intermodal aspect of the reader; transfer zones such as bus stops, train stations, platforms, etc. They are described under Zoning Settings
All methods marked as Compulsory=YES
in the Methods section are expected to be configured by the user explicitly.
A PlanitIntermodalReaderSettings
instance exposes the following methods. The Compulsory column indicates it the user is expected to configure this setting explicitly or not.
Name | Compulsory | Default | Description |
---|---|---|---|
.set_input_directory(+) |
YES | N/A | Set the input directory to obtain the input files from |
This class exposes the following properties
Property | Availability | Description |
---|---|---|
.network_settings |
Always | Settings specific to physical road infrastructure |
.zoning_settings |
Always | Settings specific to zoning (OD and transfer) infrastructure |
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
# PLANit intermodal reader
planit_reader = intermodal_converter.create_reader(IntermodalReaderType.PLANIT)
planit_reader.settings.set_input_directory("<path_to_input_files>")
# Matsim intermodal writer
matsim_writer = intermodal_converter.create_writer(IntermodalReaderType.MATSIM)
matsim_writer.settings.set_output_directory("<path_to_output_dir>")
# perform conversion
intermodal_converter.convert(planit_reader,matsim_writer)
PlanitIntermodalReader
intermodal reader class these settings reside on
Class PlanitIntermodalReaderSettingsWrapper
in converterwrappers.py
PlanitIntermodalReaderSettings property
PlanitNetworkReaderSettings method
PlanitIntermodalReaderSettings property
PlanitZoningReaderSettings instance