Interface ApplyToNodeModelResult
-
- All Known Implementing Classes:
UpdateEntryLinksOutflowConsumer
,UpdateExitLinkInflowsConsumer
public interface ApplyToNodeModelResult
Apply this to the result of a Tampere node model execution for a particular node, it is invoked with the node the model was invoked on, the resulting flow acceptance factors and the sending flow turn flows (rows are entry link segments, columns outgoing link segments).- Author:
- markr
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
consumeCentroidResult(DirectedVertex node, double[] linkSegmentSendingFlow)
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> flowAcceptanceFactors, org.ojalgo.array.Array2D<Double> turnSendingFlows)
Result of a node model update
-
-
-
Method Detail
-
consumeCentroidResult
void consumeCentroidResult(DirectedVertex node, double[] linkSegmentSendingFlow)
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- Parameters:
node
- to uselinkSegmentSendingFlow
- to use. Note that these are the network wide sending flows by link segment id, not localised for the node
-
consumeRegularResult
void consumeRegularResult(DirectedVertex node, org.ojalgo.array.Array1D<Double> flowAcceptanceFactors, org.ojalgo.array.Array2D<Double> turnSendingFlows)
Result of a node model update- Parameters:
node
- to useflowAcceptanceFactors
- 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
-
-