public class DefaultLoopComputer<I> extends AbstractUnaryComputerOp<I,I> implements LoopComputer<I>
UnaryComputerOp
multiple times to an image.SpecialOp.Flavor
Constructor and Description |
---|
DefaultLoopComputer() |
Modifier and Type | Method and Description |
---|---|
DefaultLoopComputer<I> |
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.
|
int |
getLoopCount() |
UnaryComputerOp<I,I> |
getOp() |
UnaryOutputFactory<I,I> |
getOutputFactory() |
void |
setLoopCount(int n) |
void |
setOp(UnaryComputerOp<I,I> op) |
void |
setOutputFactory(UnaryOutputFactory<I,I> outputFactory) |
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 UnaryOutputFactory<I,I> getOutputFactory()
getOutputFactory
in interface LoopComputer<I>
public void setOutputFactory(UnaryOutputFactory<I,I> outputFactory)
setOutputFactory
in interface LoopComputer<I>
public UnaryComputerOp<I,I> getOp()
public void setOp(UnaryComputerOp<I,I> op)
public int getLoopCount()
getLoopCount
in interface LoopOp<UnaryComputerOp<I,I>>
Op
is loopedpublic void setLoopCount(int n)
setLoopCount
in interface LoopOp<UnaryComputerOp<I,I>>
n
- number how often Op
is loopedpublic DefaultLoopComputer<I> 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<I>
getIndependentInstance
in interface UnaryComputerOp<I,I>
getIndependentInstance
in interface NullaryOp<I>
getIndependentInstance
in interface SpecialOp
getIndependentInstance
in interface UnaryOp<I,I>
getIndependentInstance
in interface Threadable
Copyright © 2014–2022 ImageJ. All rights reserved.