Package org.goplanit.assignment.ltm.sltm
Class PasFlowShiftOriginBasedDestLabelledExecutor
- java.lang.Object
-
- org.goplanit.assignment.ltm.sltm.PasFlowShiftExecutor
-
- org.goplanit.assignment.ltm.sltm.PasFlowShiftOriginBasedDestLabelledExecutor
-
public class PasFlowShiftOriginBasedDestLabelledExecutor extends PasFlowShiftExecutor
Functionality to conduct a PAS flow shift by means of the simplest labelling technique possible, where all flow attributed to a destination is labelled uniquely throughout the bush. This is least efficient in terms of memory but conceptually the easiest the understand, implement, and test.- Author:
- markr
-
-
Field Summary
-
Fields inherited from class org.goplanit.assignment.ltm.sltm.PasFlowShiftExecutor
bushEntrySegmentS1S2SendingFlows, EPSILON, pas, PAS_MIN_S2_FLOW_THRESHOLD, pasMergeVertexNumExitSegments, settings, totalEntrySegmentS1S2Flow, usedCongestedEntryEdgeSegments
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PasFlowShiftOriginBasedDestLabelledExecutor(Pas pas, StaticLtmSettings settings)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
executeBushFlowShift(RootedLabelledBush origin, EdgeSegment entrySegment, double bushFlowShift, double[] flowAcceptanceFactors)
Perform the flow shift for a given bush.-
Methods inherited from class org.goplanit.assignment.ltm.sltm.PasFlowShiftExecutor
activatePasS2RemovalIf, determineEntrySegmentFlowShift, getS1SendingFlow, getS2SendingFlow, getUsedCongestedEntrySegments, initialise, isPasS2RemovalAllowed, isTowardsEqualAlternativeFlowDistribution, run
-
-
-
-
Constructor Detail
-
PasFlowShiftOriginBasedDestLabelledExecutor
protected PasFlowShiftOriginBasedDestLabelledExecutor(Pas pas, StaticLtmSettings settings)
Constructor- Parameters:
pas
- to usesettings
- to use
-
-
Method Detail
-
executeBushFlowShift
protected void executeBushFlowShift(RootedLabelledBush origin, EdgeSegment entrySegment, double bushFlowShift, double[] flowAcceptanceFactors)
Perform the flow shift for a given bush. Delegate to concrete class implementation- Specified by:
executeBushFlowShift
in classPasFlowShiftExecutor
- Parameters:
origin
- to perform shift forentrySegment
- entry segment at hand to apply flow shift forbushFlowShift
- the absolute shift to apply for the given PAS-bush-entrysegment combinationflowAcceptanceFactors
- to use
-
-