Interface DownstreamInputsResolver


public interface DownstreamInputsResolver
For a given auth tree, returns the inputs of reachable downstream nodes from any node in the tree.
  • Method Details

    • getDownstreamInputs

      Map<UUID,Set<InputState>> getDownstreamInputs(Tree tree) throws NodeProcessException
      Returns a map of node IDs to the set of inputs which reachable downstream nodes require.
      Parameters:
      tree - the tree to analyse
      Returns:
      map of node ids to set of reachable inputs
      Throws:
      NodeProcessException - if there was an exception while finding downstream inputs
    • getDownstreamInputs

      Set<InputState> getDownstreamInputs(Tree tree, UUID nodeId) throws NodeProcessException
      For a given node, returns the set of inputs which reachable downstream nodes require. If the provided node is not present in the tree, returns an empty set.
      Parameters:
      tree - the tree to analyse
      nodeId - the id of the node to look downstream from
      Returns:
      set of reachable inputs
      Throws:
      NodeProcessException - if there was an exception while finding downstream inputs