Package bbflow

Class ff_comb<T,V>

java.lang.Object
bbflow.block<T,U>
bbflow.ff_node<T,V>
bbflow.ff_comb<T,V>
Type Parameters:
T - Custom type of input channels
V - Custom type of output channels

public class ff_comb<T,V> extends ff_node<T,V>
Combine two nodes (of type ff_node or ff_comb) in one. The combination is linear, first runJob called and the returned value (if returned) is passed to second one. Also init() and EOS() are called when it's time.
  • Constructor Details

    • ff_comb

      public ff_comb(ff_node<T,Object> node1, ff_node<Object,V> node2, int bufferSize)
      Combine constructor
      Parameters:
      node1 - first node
      node2 - second node
      bufferSize - buffer size of channels
    • ff_comb

      public ff_comb(ff_node<T,Object> node1, ff_node<Object,V> node2)
      Combine constructor
      Parameters:
      node1 - first node
      node2 - second node
  • Method Details

    • preload

      public static void preload()
    • combine

      private void combine(ff_node<T,Object> node1, ff_node<Object,V> node2, int bufferSize)
      Function called by default constructor to combine the 2 nodes
      Parameters:
      node1 - first node
      node2 - second node
      bufferSize - buffersize of channel