Interface ApplyToNodeModelResult
-
- All Known Implementing Classes:
NMRCollectMostRestrictingTurnConsumer
,NMRUpdateEntryLinksOutflowConsumer
,NMRUpdateExitLinkInflowsConsumer
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
acceptNonBlockingLinkBasedResult(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
acceptTurnBasedResult(DirectedVertex node, org.ojalgo.array.Array1D<Double> flowAcceptanceFactors, NodeModel nodeModel)
Result of a node model update
-
-
-
Method Detail
-
acceptNonBlockingLinkBasedResult
void acceptNonBlockingLinkBasedResult(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
-
acceptTurnBasedResult
void acceptTurnBasedResult(DirectedVertex node, org.ojalgo.array.Array1D<Double> flowAcceptanceFactors, NodeModel nodeModel)
Result of a node model update- Parameters:
node
- to useflowAcceptanceFactors
- resulting from the update, localised for the node based on its entry segment iterator ordernodeModel
- that was applied
-
-