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, setOutputops, setEnvironmentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomputecompute, run, runin, setInputruncandidates, filterArity, opops, setEnvironmentinitializesetOutputpublic 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()
ThreadableIt 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 SpecialOpgetIndependentInstance in interface UnaryOp<I,I>getIndependentInstance in interface ThreadableCopyright © 2014–2022 ImageJ. All rights reserved.