public abstract class AbstractNode extends Thread implements INode
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
AbstractNode() |
Modifier and Type | Method and Description |
---|---|
void |
associate(String outName,
String fullName)
When chaining associates a named output with a named input tied to a
particular instance of chained subclass.
|
void |
chainNext(IScheduledNode next)
Chains default output of this node to default input of next node.
|
void |
chainNext(IScheduledNode next,
String inName)
Chains default output of this node to named input of next node.
|
void |
chainNext(String outName,
IScheduledNode next)
Chains named output of this node to default input of next node.
|
void |
chainNext(String outName,
IScheduledNode next,
String inName)
Chains named output of this node to named input of next node.
|
void |
chainPrevious(IScheduledNode previous)
Chains default input of this node to default output of previous node.
|
void |
chainPrevious(IScheduledNode previous,
String outName)
Chains default input of this node to named output of previous node.
|
void |
chainPrevious(String inName,
IScheduledNode previous)
Chains named input of this node to default output of previous node.
|
void |
chainPrevious(String inName,
IScheduledNode previous,
String outName)
Chains named input of this node to named output of previous node.
|
void |
externalPut(Object object)
Feeds an image to the default input of the subclass.
|
void |
externalPut(String inName,
Object object)
Feeds an image to a named input of the subclass.
|
Object |
get()
Gets the default input data from previous in chain.
|
Object |
get(String inName)
Gets a named input image from previous in chain.
|
Set<String> |
getInputNames()
Gets the set of annotated input names.
|
Set<String> |
getOutputNames()
Gets the set of annotated output names.
|
abstract void |
process()
This is the body of the plugin, defined in subclass.
|
void |
put(Object data)
Puts the default output data to next in chain (if any).
|
void |
put(String outName,
Object data)
Puts named output data to next in chain (if any).
|
void |
quit()
Signals quitting time.
|
void |
run()
Loops until quitting time.
|
String |
uniqueInstance(String name)
Builds a name that is tied to this instance of the subclass.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public String uniqueInstance(String name)
uniqueInstance
in interface IScheduledNode
name
- unqualified namepublic void associate(String outName, String fullName)
associate
in interface IScheduledNode
outName
- fullName
- public abstract void process()
public Object get()
public Object get(String inName)
public void put(Object data)
public void put(String outName, Object data)
public void chainNext(IScheduledNode next)
public void chainNext(String outName, IScheduledNode next)
public void chainNext(IScheduledNode next, String inName)
public void chainNext(String outName, IScheduledNode next, String inName)
public void chainPrevious(IScheduledNode previous)
chainPrevious
in interface INode
previous
- nodepublic void chainPrevious(String inName, IScheduledNode previous)
chainPrevious
in interface INode
inName
- previous
- nodepublic void chainPrevious(IScheduledNode previous, String outName)
chainPrevious
in interface INode
previous
- nodeoutName
- public void chainPrevious(String inName, IScheduledNode previous, String outName)
chainPrevious
in interface INode
inName
- previous
- nodeoutName
- public void run()
public void externalPut(Object object)
externalPut
in interface INode
object
- public void externalPut(String inName, Object object)
externalPut
in interface INode
inName
- object
- public Set<String> getInputNames()
Copyright © 2015–2022 SciJava. All rights reserved.