Class LtmTrafficAssignmentBuilder<T extends LtmAssignment>

  • Direct Known Subclasses:
    StaticLtmTrafficAssignmentBuilder

    public abstract class LtmTrafficAssignmentBuilder<T extends LtmAssignment>
    extends TrafficAssignmentBuilder<T>
    An LTM traffic assignment builder is assumed to only support Link Transmission Model (LTM) traffic assignment instances. It is used to build the traffic assignment instance with the proper configuration settings
    Author:
    markr
    • Constructor Detail

      • LtmTrafficAssignmentBuilder

        public LtmTrafficAssignmentBuilder​(Class<T> trafficAssignmentClass,
                                           IdGroupingToken groupId,
                                           InputBuilderListener inputBuilderListener,
                                           Demands demands,
                                           Zoning zoning,
                                           LayeredNetwork<?,​?> network)
                                    throws PlanItException
        Constructor
        Parameters:
        trafficAssignmentClass - the traffic assignment class we are building
        groupId - the id generation group this builder is part of
        inputBuilderListener - the listener for further traffic components that are created by the builder
        demands - the demands
        zoning - the zoning
        network - the network
        Throws:
        PlanItException - thrown if there is an exception
    • Method Detail

      • createFundamentalDiagramComponentInstance

        protected FundamentalDiagramComponent createFundamentalDiagramComponentInstance​(MacroscopicNetworkLayer macroscopicNetworkLayer)
                                                                                 throws PlanItException
        create a fundamental diagram component instance based on configuration
        Parameters:
        macroscopicNetworkLayer - the fundamental diagram is to be applied on
        Returns:
        fundamental diagram instance
        Throws:
        PlanItException - thrown if error
      • createPathChoiceInstance

        protected PathChoice createPathChoiceInstance​(LtmConfigurator<? extends LtmAssignment> configurator)
                                               throws PlanItException
        create a path choice instance based on configuration
        Parameters:
        configurator - to extract path choice type from
        Returns:
        path choice instance
        Throws:
        PlanItException - thrown if error
      • getConfigurator

        public LtmConfigurator<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 TrafficAssignmentBuilder<T extends LtmAssignment>
        Returns:
        the configurator, null if no configurator is available nor could be created