Package bbflow
Class node<T,U>
java.lang.Object
java.lang.Thread
bbflow.node<T,U>
- Type Parameters:
T
- Custom type of the channels
- All Implemented Interfaces:
Runnable
Thread running the job for ff_node building block
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInputChannel
(ff_queue<T> input) add a Input channel to the bbflow.ff_node.void
addOutputChannel
(ff_queue<U> output) add a Output channel to the bbflow.ff_node LinkedList is O(1) adding/removing first elementgetInputChannel
(int index) getOutputChannel
(int index) static void
preload()
boolean
removeInputChannel
(int index) boolean
removeOutputChannel
(int index) void
run()
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Field Details
-
job
-
-
Constructor Details
-
node
-
-
Method Details
-
run
public void run() -
preload
public static void preload() -
addInputChannel
add a Input channel to the bbflow.ff_node. LinkedList is O(1) adding/removing first element- Parameters:
input
- input channel
-
addOutputChannel
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
-
getInputChannel
-