OutputType.<enum>
OutputType types
Description
Class exposing the available OutputType types as enums. When used to activate an output type on a traffic assignment instance it will trigger output results of that type to be generated and further configuration options to be exposed via the relevant properties on the assignment instance.
Fields
<enum> Fields | Description | Instance documentation |
---|---|---|
LINK |
Represents link outputs | Link Output Configuration |
OD |
Represents origin-destination outputs | OD Output Configuration |
PATH |
Represents path outputs | Path Output Configuration |
Example 1
from planit import *
# choose to run PLANit with a traditional static traffic assignment method
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC)
# activate origin-destination outputs to be generated
planit_instance.project.assignment.activate_output(OutputType.OD)
# configure the instantiated property
planit_instance.project.assignment.od_configuration.<call method>
Example 2
from planit import *
# choose to run PLANit with a traditional static traffic assignment method
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC )
# activate path outputs to be generated
planit_instance.project.assignment.activate_output(OutputType.PATH)
# configure the instantiated property
planit_instance.project.assignment.path_configuration.<call method>
Example 3
from planit import *
# choose to run PLANit with a traditional static traffic assignment method
planit_instance = Planit()
planit_instance.project.set(TrafficAssignment.TRADITIONAL_STATIC )
# link outputs are activated by default
# configure the instantiated property
planit_instance.project.assignment.link_configuration.<call method>
See also
Assignment for the various assignment methods where one can activate output types and how to retrieve the related output configuration instance for further configuration.
Source code
Class OutputType
in enums.py