Class PlanitComponentBuilder<T>

  • Type Parameters:
    T - class to build
    Direct Known Subclasses:
    PathChoiceBuilder, TrafficAssignmentBuilder

    public abstract class PlanitComponentBuilder<T>
    extends Builder<T>
    Builder class to build something of type T which is a PLANit component. As such the input builder listener is required to be notified when an instance is created, hence we store this listener on this builder
    Author:
    markr
    • Constructor Detail

      • PlanitComponentBuilder

        protected PlanitComponentBuilder​(Class<T> classToBuild,
                                         IdGroupingToken groupId,
                                         InputBuilderListener inputBuilder)
        Constructor
        Parameters:
        classToBuild - to have access to type of T
        groupId - to use for id generation
        inputBuilder - the inputBuilder to use
    • Method Detail

      • getInputBuilderListener

        protected InputBuilderListener getInputBuilderListener()
        collect the input builder
        Returns:
        inputBuilderListener
      • getGroupIdToken

        protected IdGroupingToken getGroupIdToken()
        collect the group id token
        Returns:
        group id token