Class UpdateEntryLinksOutflowConsumer
- java.lang.Object
-
- org.goplanit.assignment.ltm.sltm.consumer.UpdateEntryLinksOutflowConsumer
-
- All Implemented Interfaces:
ApplyToNodeModelResult
public class UpdateEntryLinksOutflowConsumer extends Object implements ApplyToNodeModelResult
A functional class that consumes the result of a node model update in order to determine the next accepted outflows of incoming links of all nodes it is applied to- Author:
- markr
-
-
Constructor Summary
Constructors Constructor Description UpdateEntryLinksOutflowConsumer(double[] outflowsToPopulate)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
consumeCentroidResult(DirectedVertex node, double[] linkSegmentSendingFlows)
A centroid node is a special node where all flow is always accepted (destination incoming links), or sending flows do not come from turns but from origin zone (origin exit links).void
consumeRegularResult(DirectedVertex node, org.ojalgo.array.Array1D<Double> flowAcceptanceFactor, org.ojalgo.array.Array2D<Double> turnSendingFlows)
Result of a node model update
-
-
-
Method Detail
-
consumeCentroidResult
public void consumeCentroidResult(DirectedVertex node, double[] linkSegmentSendingFlows)
A centroid node is a special node where all flow is always accepted (destination incoming links), or sending flows do not come from turns but from origin zone (origin exit links). As such we present only the original link segment sending flows- Specified by:
consumeCentroidResult
in interfaceApplyToNodeModelResult
- Parameters:
node
- to uselinkSegmentSendingFlows
- to use. Note that these are the network wide sending flows by link segment id, not localised for the node
-
consumeRegularResult
public void consumeRegularResult(DirectedVertex node, org.ojalgo.array.Array1D<Double> flowAcceptanceFactor, org.ojalgo.array.Array2D<Double> turnSendingFlows)
Result of a node model update- Specified by:
consumeRegularResult
in interfaceApplyToNodeModelResult
- Parameters:
node
- to useflowAcceptanceFactor
- resulting from the update, localised for the node based on its entry segment iterator orderturnSendingFlows
- that were used, localised for the node based on its entry segment, exit segment iterator order
-
-