Package org.planit.assignment
Class DynamicTrafficAssignmentBuilder<T extends DynamicTrafficAssignment>
- java.lang.Object
-
- org.planit.utils.builder.Builder<T>
-
- org.planit.assignment.TrafficComponentBuilder<T>
-
- org.planit.assignment.TrafficAssignmentBuilder<T>
-
- org.planit.assignment.CapacityConstrainedTrafficAssignmentBuilder<T>
-
- org.planit.assignment.DynamicTrafficAssignmentBuilder<T>
-
- Direct Known Subclasses:
ELTMTrafficAssignmentBuilder
public abstract class DynamicTrafficAssignmentBuilder<T extends DynamicTrafficAssignment> extends CapacityConstrainedTrafficAssignmentBuilder<T>
A dynamic traffic assignment builder is assumed to only support capacity constrained traffic assignment instances. It is used to build the traffic assignment instance with the proper configuration settings- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.planit.assignment.TrafficAssignmentBuilder
LOGGER
-
Fields inherited from class org.planit.assignment.TrafficComponentBuilder
groupId
-
-
Constructor Summary
Constructors Constructor Description DynamicTrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, InfrastructureNetwork network)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buildSubComponents(T trafficAssignmentInstance)
In addition to the super class sub components, we also construct the subcomponents specific to dynamic traffic assignmentprotected PathChoice
createPathChoiceInstance(DynamicAssignmentConfigurator<? extends DynamicTrafficAssignment> configurator)
create a path choice instance based on configuration-
Methods inherited from class org.planit.assignment.TrafficAssignmentBuilder
build, createGapFunction, createGapFunctionInstance, createPhysicalCostInstance, createSmoothingInstance, createTrafficAssignmentInstance, createVirtualCostInstance
-
Methods inherited from class org.planit.assignment.TrafficComponentBuilder
getGroupIdToken, getInputBuilderListener
-
Methods inherited from class org.planit.utils.builder.Builder
createConfigurator, getClassToBuild, getConfigurator
-
-
-
-
Constructor Detail
-
DynamicTrafficAssignmentBuilder
public DynamicTrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, InfrastructureNetwork network) throws PlanItException
Constructor- Parameters:
trafficAssignmentClass
- the traffic assignment class we are buildinggroupId
- the id generation group this builder is part ofinputBuilderListener
- the listener for further traffic components that are created by the builderdemands
- the demandszoning
- the zoningnetwork
- the network- Throws:
PlanItException
- thrown if there is an exception
-
-
Method Detail
-
createPathChoiceInstance
protected PathChoice createPathChoiceInstance(DynamicAssignmentConfigurator<? extends DynamicTrafficAssignment> 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
-
buildSubComponents
protected void buildSubComponents(T trafficAssignmentInstance) throws PlanItException
In addition to the super class sub components, we also construct the subcomponents specific to dynamic traffic assignment- Overrides:
buildSubComponents
in classTrafficAssignmentBuilder<T extends DynamicTrafficAssignment>
- Parameters:
trafficAssignmentInstance
- the instance to build on- Throws:
PlanItException
- thrown if error
-
-