Package org.goplanit.component
Class PlanitComponentBuilder<T>
- java.lang.Object
-
- org.goplanit.utils.builder.Builder<T>
-
- org.goplanit.component.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
-
-
Field Summary
Fields Modifier and Type Field Description protected IdGroupingToken
groupId
id grouping token
-
Constructor Summary
Constructors Modifier Constructor Description protected
PlanitComponentBuilder(Class<T> classToBuild, IdGroupingToken groupId, InputBuilderListener inputBuilder)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IdGroupingToken
getGroupIdToken()
collect the group id tokenprotected InputBuilderListener
getInputBuilderListener()
collect the input builder-
Methods inherited from class org.goplanit.utils.builder.Builder
build, createConfigurator, getClassToBuild, getConfigurator
-
-
-
-
Field Detail
-
groupId
protected IdGroupingToken groupId
id grouping token
-
-
Constructor Detail
-
PlanitComponentBuilder
protected PlanitComponentBuilder(Class<T> classToBuild, IdGroupingToken groupId, InputBuilderListener inputBuilder)
Constructor- Parameters:
classToBuild
- to have access to type of TgroupId
- to use for id generationinputBuilder
- 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
-
-