.remove_all_properties()

Link output configuration method

Description

The .remove_all_properties() method, will remove all currently registered output properties from the link segment configuration, including any properties that were initiated by default.

If you decide to remove output properties, ensure that at least one method of unique identification for the link segment remains in place. If not the assignment will fail.

Signature

.remove_all_properties()

Return type

None

Example 1

from planit import *

# prep
planit_instance = PLANit()
planit_instance.set(TrafficAssignment.TRADITIONAL_STATIC )


# remove all output properties and then add only the link segment external id and cost
planit_instance.assignment.link_configuration.remove_all_properties()
planit_instance.assignment.link_configuration.add(OutputProperty.LINK_SEGMENT_EXTERNAL_ID)
planit_instance.assignment.link_configuration.add(OutputProperty.LINK_COST)

See also

OutputProperty.<enum> for the available output property enums

Source code

Class LinkOutputConfigurationWrapper in wrappers.py