Class TrafficAssignmentBuilder<T extends TrafficAssignment>

    • Field Detail

      • LOGGER

        protected static final Logger LOGGER
        the logger
      • LOG_SETTINGS

        public static final boolean LOG_SETTINGS
        default flag indicating if settings are to be logged upon creation or not
        See Also:
        Constant Field Values
    • Constructor Detail

      • TrafficAssignmentBuilder

        protected TrafficAssignmentBuilder​(Class<T> trafficAssignmentClass,
                                           IdGroupingToken projectToken,
                                           InputBuilderListener inputBuilderListener,
                                           Demands demands,
                                           Zoning zoning,
                                           LayeredNetwork<?,​?> network)
                                    throws PlanItException
        Constructor
        Parameters:
        trafficAssignmentClass - class to build
        projectToken - idGrouping token
        inputBuilderListener - the input builder listener
        demands - the demands
        zoning - the zoning
        network - the network
        Throws:
        PlanItException - thrown when error
    • Method Detail

      • createTrafficAssignmentInstance

        protected T createTrafficAssignmentInstance()
                                             throws PlanItException
        Factory method to create the instance of the desired type
        Returns:
        instance of traffic assignment
        Throws:
        PlanItException - thrown when error
      • createSmoothingInstance

        protected Smoothing createSmoothingInstance()
                                             throws PlanItException
        create a smoothing instance based on configuration
        Returns:
        smoothing instance
        Throws:
        PlanItException - thrown if error
      • createGapFunctionInstance

        protected GapFunction createGapFunctionInstance​(StopCriterion stopCriterion)
                                                 throws PlanItException
        create a gap function instance based on configuration
        Parameters:
        stopCriterion - to use
        Returns:
        gap function instance
        Throws:
        PlanItException - thrown if error
      • buildSubComponents

        protected void buildSubComponents​(T trafficAssignmentInstance)
                                   throws PlanItException
        call to build and configure all sub components of this builder
        Parameters:
        trafficAssignmentInstance - instance to build subcomponents for
        Throws:
        PlanItException - thrown if error
      • getConfigurator

        public TrafficAssignmentConfigurator<T> getConfigurator()
        the configurator for this builder. It allows one to hide the builder aspect and expose (parts of) the user available configuration options via this object
        Overrides:
        getConfigurator in class Builder<T extends TrafficAssignment>
        Returns:
        the configurator, null if no configurator is available nor could be created