Package org.planit.path.choice
Class StochasticPathChoiceBuilder
- java.lang.Object
-
- org.planit.utils.builder.Builder<T>
-
- org.planit.assignment.TrafficComponentBuilder<T>
-
- org.planit.path.choice.PathChoiceBuilder<StochasticPathChoice>
-
- org.planit.path.choice.StochasticPathChoiceBuilder
-
public class StochasticPathChoiceBuilder extends PathChoiceBuilder<StochasticPathChoice>
All path choice instances are built using this or a derived version of this builder- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description protected static Logger
LOGGER
the logger-
Fields inherited from class org.planit.assignment.TrafficComponentBuilder
groupId
-
-
Constructor Summary
Constructors Constructor Description StochasticPathChoiceBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilderListener)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildSubComponents(StochasticPathChoice pathChoiceInstance)
call to build and configure all sub components of this builderprotected Configurator<StochasticPathChoice>
createConfigurator()
create the configurator that goes with this builderprotected LogitChoiceModel
createLogitChoiceModelInstance(StochasticPathChoiceConfigurator configurator)
create a logit model instance based on passed in configurator-
Methods inherited from class org.planit.path.choice.PathChoiceBuilder
build, createPathChoiceInstance
-
Methods inherited from class org.planit.assignment.TrafficComponentBuilder
getGroupIdToken, getInputBuilderListener
-
Methods inherited from class org.planit.utils.builder.Builder
getClassToBuild, getConfigurator
-
-
-
-
Field Detail
-
LOGGER
protected static final Logger LOGGER
the logger
-
-
Constructor Detail
-
StochasticPathChoiceBuilder
public StochasticPathChoiceBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilderListener) throws PlanItException
Constructor- Parameters:
projectToken
- idGrouping tokeninputBuilderListener
- the input builder listener- Throws:
PlanItException
- thrown if error
-
-
Method Detail
-
createConfigurator
protected Configurator<StochasticPathChoice> createConfigurator() throws PlanItException
create the configurator that goes with this builder- Specified by:
createConfigurator
in classBuilder<StochasticPathChoice>
- Returns:
- appropriate configurator
- Throws:
PlanItException
- thrown if error
-
createLogitChoiceModelInstance
protected LogitChoiceModel createLogitChoiceModelInstance(StochasticPathChoiceConfigurator configurator) throws PlanItException
create a logit model instance based on passed in configurator- Returns:
- configurator for the path choice
- Throws:
PlanItException
- thrown if error
-
buildSubComponents
protected void buildSubComponents(StochasticPathChoice pathChoiceInstance) throws PlanItException
call to build and configure all sub components of this builder- Specified by:
buildSubComponents
in classPathChoiceBuilder<StochasticPathChoice>
- Parameters:
pathChoiceInstance
- the instance to build on- Throws:
PlanItException
- thrown if error
-
-