Package org.goplanit.assignment.ltm.sltm
Class StaticLtmConfigurator
- java.lang.Object
-
- org.goplanit.utils.builder.Configurator<T>
-
- org.goplanit.assignment.TrafficAssignmentConfigurator<T>
-
- org.goplanit.assignment.ltm.LtmConfigurator<StaticLtm>
-
- org.goplanit.assignment.ltm.sltm.StaticLtmConfigurator
-
public class StaticLtmConfigurator extends LtmConfigurator<StaticLtm>
Configurator for sLTM. Adopting the following defaults:- Fundamental diagram: NEWELL
- Node Model: TAMPERE
- Smoothing: MSA
- Gap function: NORM BASED (defaults: 1 norm + averaged))
- Physical Cost: STEADY_STATE
- Virtual Cost: FIXED
- sltmType: ORIGIN_BUSH_BASED
- disableLinkStorageConstraints: true
- activateDetailedLogging: false
- activateEnforceMaxEntropyFlowDistribution: false
- Author:
- markr
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
DEFAULT_ACTIVATE_DETAILED_LOGGING
default value usedstatic boolean
DEFAULT_DISABLE_LINK_STORAGE_CONSTRAINTS
default value usedstatic StaticLtmType
DEFAULT_SLTM_TYPE
default value used-
Fields inherited from class org.goplanit.assignment.TrafficAssignmentConfigurator
logSettings, SET_DEMANDS, SET_GAP_FUNCTION, SET_INFRASTRUCTURE_NETWORK, SET_INITIAL_LINK_SEGMENT_COST, SET_OUTPUT_MANAGER, SET_PHYSICAL_COST, SET_VIRTUAL_COST, SET_ZONING
-
Fields inherited from class org.goplanit.utils.builder.Configurator
delayedMethodCalls
-
-
Constructor Summary
Constructors Constructor Description StaticLtmConfigurator()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateDetailedLogging(boolean flag)
(De)Activate additional detailed logging specifically for the sLTM assignment procedurevoid
activateMaxEntropyFlowDistribution(boolean flag)
(De)Activate the bush based max entropy flow solution.void
disableLinkStorageConstraints(boolean flag)
Dis or enable enforcing any storage constraints on link(segments)void
setType(StaticLtmType type)
Determine the type of sLTM assignment to use-
Methods inherited from class org.goplanit.assignment.ltm.LtmConfigurator
createAndRegisterFundamentalDiagram, createAndRegisterNodeModel, createAndRegisterPathChoice, getFundamentalDiagram, getNodeModel, getPathChoice
-
Methods inherited from class org.goplanit.assignment.TrafficAssignmentConfigurator
activateOutput, createAndRegisterGapFunction, createAndRegisterPhysicalCost, createAndRegisterSmoothing, createAndRegisterVirtualCost, deactivateOutput, getDemands, getGapFunction, getInfrastructureNetwork, getOutputConfiguration, getOutputFormatters, getOutputManager, getPhysicalCost, getSmoothing, getVirtualCost, getZoning, isLogSettings, isOutputTypeActive, registerInitialLinkSegmentCost, registerInitialLinkSegmentCost, registerInitialLinkSegmentCost, registerOutputFormatter, setDemands, setInfrastructureNetwork, setLogSettings, setOutputManager, setZoning, unregisterOutputFormatter
-
Methods inherited from class org.goplanit.utils.builder.Configurator
callVoidMethod, collectParameterTypes, configure, getClassTypeToConfigure, getFirstParameterOfDelayedMethodCall, registerDelayedMethodCall
-
-
-
-
Field Detail
-
DEFAULT_DISABLE_LINK_STORAGE_CONSTRAINTS
public static boolean DEFAULT_DISABLE_LINK_STORAGE_CONSTRAINTS
default value used
-
DEFAULT_ACTIVATE_DETAILED_LOGGING
public static boolean DEFAULT_ACTIVATE_DETAILED_LOGGING
default value used
-
DEFAULT_SLTM_TYPE
public static StaticLtmType DEFAULT_SLTM_TYPE
default value used
-
-
Constructor Detail
-
StaticLtmConfigurator
public StaticLtmConfigurator() throws PlanItException
Constructor- Throws:
PlanItException
- thrown when error
-
-
Method Detail
-
disableLinkStorageConstraints
public void disableLinkStorageConstraints(boolean flag)
Dis or enable enforcing any storage constraints on link(segments)- Parameters:
flag
- to set
-
activateDetailedLogging
public void activateDetailedLogging(boolean flag)
(De)Activate additional detailed logging specifically for the sLTM assignment procedure- Parameters:
flag
- to set
-
setType
public void setType(StaticLtmType type)
Determine the type of sLTM assignment to use- Parameters:
type
- to set
-
activateMaxEntropyFlowDistribution
public void activateMaxEntropyFlowDistribution(boolean flag)
(De)Activate the bush based max entropy flow solution. If switched off, any equal cost solution for a PAS is considered correct, when switched on an attempt is made to obtain unique equal flow distribution if possible. The latter is computationally more costly but results in unique solution.- Parameters:
flag
- to set
-
-