Class TraditionalStaticAssignmentBuilder
- java.lang.Object
-
- org.planit.trafficassignment.builder.TrafficAssignmentBuilder
-
- org.planit.trafficassignment.builder.TraditionalStaticAssignmentBuilder
-
public class TraditionalStaticAssignmentBuilder extends TrafficAssignmentBuilder
Builder for a traditional static assignment. It injects the following defaults into the underlying assignment instance:- Link based relative duality gap function
- MSA smoothing
- BPR function for physical cost
- Fixed cost for virtual cost
- Default StopCriterion implementation
- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.planit.trafficassignment.builder.TrafficAssignmentBuilder
parentAssignment, physicalCostFactory, smoothingFactory, virtualCostFactory
-
-
Constructor Summary
Constructors Constructor Description TraditionalStaticAssignmentBuilder(TrafficAssignment parentAssignment, InputBuilderListener trafficComponentCreateListener, Demands demands, Zoning zoning, PhysicalNetwork physicalNetwork)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialiseDefaults()
Traditional static assignment has the following defaults set for it: - PhysicalCost: BPR - Virtualcost: FIXED - Smoothing: MSA - Gapfunction: LinkBasedRelativeDualityGap-
Methods inherited from class org.planit.trafficassignment.builder.TrafficAssignmentBuilder
activateOutput, createAndRegisterPhysicalCost, createAndRegisterSmoothing, createAndRegisterVirtualCost, createGapFunction, deactivateOutput, getGapFunction, getOutputConfiguration, getOutputFormatters, getPhysicalCost, getSmoothing, getVirtualCost, isOutputTypeActive, registerInitialLinkSegmentCost, registerInitialLinkSegmentCost, registerInitialLinkSegmentCost, registerOutputFormatter, unregisterOutputFormatter
-
-
-
-
Constructor Detail
-
TraditionalStaticAssignmentBuilder
public TraditionalStaticAssignmentBuilder(TrafficAssignment parentAssignment, InputBuilderListener trafficComponentCreateListener, Demands demands, Zoning zoning, PhysicalNetwork physicalNetwork) throws PlanItException
Constructor- Parameters:
parentAssignment
- the parent assignmenttrafficComponentCreateListener
- the input builderdemands
- the demandszoning
- the zoningphysicalNetwork
- the physical network- Throws:
PlanItException
- thrown if there is an error
-
-
Method Detail
-
initialiseDefaults
public void initialiseDefaults() throws PlanItException
Traditional static assignment has the following defaults set for it: - PhysicalCost: BPR - Virtualcost: FIXED - Smoothing: MSA - Gapfunction: LinkBasedRelativeDualityGap- Overrides:
initialiseDefaults
in classTrafficAssignmentBuilder
- Throws:
PlanItException
- thrown when there is an error
-
-