TntpFileColumnType.<enum>

TntpFileColumnType types

Description

Class exposing the available types as enums for the supported TNTP network data format column types.

Fields

<enum> Fields Description Instance documentation
UPSTREAM_NODE_ID Column containing the upstream node id N/A
DOWNSTREAM_NODE_ID Column containing the downstream node id N/A
CAPACITY_PER_LANE Column containing the capacity per lane N/A
LENGTH Column containing the link length N/A
MAXIMUM_SPEED Column containing the link’s maximum speed N/A
LINK_TYPE Column containing the link type N/A
B Column containing the eta parameter of the expected BPR function N/A
POWER Column containing the expected poer to be used in the BPR function N/A
TOLL Column containing the toll cost on the link N/A
FREE_FLOW_TRAVEL_TIME Column containing the free flow travel time N/A
CRITICAL_SPEED Column containing the link’s critical speed N/A
NUMBER_OF_LANES Column containing the link’s number of lanes 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_network_file_columns({
        TntpFileColumnType.UPSTREAM_NODE_ID: 0,
        TntpFileColumnType.DOWNSTREAM_NODE_ID: 1,
        TntpFileColumnType.CAPACITY_PER_LANE: 2,
        TntpFileColumnType.LENGTH: 3,
        TntpFileColumnType.FREE_FLOW_TRAVEL_TIME: 4,
        TntpFileColumnType.B: 5,
        TntpFileColumnType.POWER: 6,
        TntpFileColumnType.MAXIMUM_SPEED: 7,
        TntpFileColumnType.TOLL: 8,
        TntpFileColumnType.LINK_TYPE: 9})

See also

N/A

Source code

Class TntpFileColumnType in enums.py