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 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 use
        linkSegmentSendingFlow - 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 use
        flowAcceptanceFactors - resulting from the update, localised for the node based on its entry segment iterator order
        turnSendingFlows - that were used, localised for the node based on its entry segment, exit segment iterator order