Package bbflow

Class node<T,U>

Type Parameters:
T - Custom type of the channels
All Implemented Interfaces:
Runnable

public class node<T,U> extends Thread
Thread running the job for ff_node building block
  • Field Details

  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • preload

      public static void preload()
    • addInputChannel

      public void addInputChannel(ff_queue<T> input)
      add a Input channel to the bbflow.ff_node. LinkedList is O(1) adding/removing first element
      Parameters:
      input - input channel
    • addOutputChannel

      public void addOutputChannel(ff_queue<U> output)
      add a Output channel to the bbflow.ff_node LinkedList is O(1) adding/removing first element
      Parameters:
      output - output channel
    • removeInputChannel

      public boolean removeInputChannel(int index)
    • removeOutputChannel

      public boolean removeOutputChannel(int index)
    • getOutputChannel

      public ff_queue<U> getOutputChannel(int index)
    • getInputChannel

      public ff_queue<T> getInputChannel(int index)