public class DefaultJoinNComputers<A> extends AbstractUnaryComputerOp<A,A> implements JoinNComputers<A>
UnaryComputerOp
s.SpecialOp.Flavor
Constructor and Description |
---|
DefaultJoinNComputers() |
Modifier and Type | Method and Description |
---|---|
A |
getBuffer(A input) |
DefaultJoinNComputers<A> |
getIndependentInstance()
Gets a reference to an instance of this object which can be used
simultaneously from a second thread while this instance is being used from
"its" thread.
|
List<? extends UnaryComputerOp<A,A>> |
getOps() |
UnaryOutputFactory<A,A> |
getOutputFactory() |
void |
setOps(List<? extends UnaryComputerOp<A,A>> ops)
Sets the
Op s which are joined in this op. |
void |
setOutputFactory(UnaryOutputFactory<A,A> outputFactory)
Sets the
UnaryOutputFactory which is used to create intermediate
results. |
in, out, setInput, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute
compute, run, run
in, setInput
run
candidates, filterArity, op
ops, setEnvironment
initialize
setOutput
public List<? extends UnaryComputerOp<A,A>> getOps()
public void setOps(List<? extends UnaryComputerOp<A,A>> ops)
JoinNOps
Op
s which are joined in this op.setOps
in interface JoinNOps<UnaryComputerOp<A,A>>
ops
- joined in this oppublic UnaryOutputFactory<A,A> getOutputFactory()
getOutputFactory
in interface BufferFactory<A,A>
UnaryOutputFactory
used to create intermediate resultspublic void setOutputFactory(UnaryOutputFactory<A,A> outputFactory)
BufferFactory
UnaryOutputFactory
which is used to create intermediate
results.setOutputFactory
in interface BufferFactory<A,A>
outputFactory
- used to create intermediate resultspublic A getBuffer(A input)
getBuffer
in interface BufferFactory<A,A>
input
- helping to create the bufferpublic DefaultJoinNComputers<A> getIndependentInstance()
Threadable
It is expected that subclasses which override this method will narrow the return type appropriately. We do not enforce this at compile time via recursive generics due to their complexity: they introduce a host of typing difficulties.
getIndependentInstance
in interface NullaryComputerOp<A>
getIndependentInstance
in interface UnaryComputerOp<A,A>
getIndependentInstance
in interface NullaryOp<A>
getIndependentInstance
in interface SpecialOp
getIndependentInstance
in interface UnaryOp<A,A>
getIndependentInstance
in interface Threadable
Copyright © 2014–2022 ImageJ. All rights reserved.