public static class ConstantToIIOutputII.Subtract<T extends NumericType<T>> extends AbstractUnaryHybridCFI<IterableInterval<T>,IterableInterval<T>> implements Contingent, Ops.Math.Subtract
SpecialOp.Flavor
ALIASES, NAME
Constructor and Description |
---|
Subtract() |
Modifier and Type | Method and Description |
---|---|
void |
compute(IterableInterval<T> input,
IterableInterval<T> output)
Computes the output given some input.
|
boolean |
conforms()
True if the contingency holds; i.e., the current circumstances conform to
the contingency's requirements.
|
IterableInterval<T> |
createOutput(IterableInterval<T> input)
Create an output object given some input.
|
ConstantToIIOutputII.Subtract<T> |
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.
|
void |
initialize()
Initializes the object.
|
void |
mutate(IterableInterval<T> arg)
Mutates the given input argument in-place.
|
in, out, setInput, setOutput
ops, setEnvironment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
ops, setEnvironment
run, run, run
calculate, calculate, createOutput
compute
setOutput
in
candidates, filterArity, op
setInput
public void initialize()
Initializable
initialize
in interface Initializable
public void compute(IterableInterval<T> input, IterableInterval<T> output)
UnaryComputerOp
compute
in interface UnaryComputerOp<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
input
- Argument to the computation, which must be non-nulloutput
- Object where the computation's result will be stored, which
must be non-null and a different object than input
public IterableInterval<T> createOutput(IterableInterval<T> input)
UnaryOutputFactory
createOutput
in interface UnaryOutputFactory<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
input
- which determines how to create the outputpublic boolean conforms()
Contingent
conforms
in interface Contingent
public void mutate(IterableInterval<T> arg)
UnaryInplaceOp
mutate
in interface UnaryHybridCI<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
mutate
in interface UnaryInplaceOp<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
arg
- of the UnaryInplaceOp
public ConstantToIIOutputII.Subtract<T> 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<IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface UnaryComputerOp<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface NullaryFunctionOp<IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface UnaryFunctionOp<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface NullaryHybridCF<IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface UnaryHybridCF<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface UnaryHybridCFI<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface UnaryHybridCI<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface UnaryInplaceOp<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface NullaryOp<IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface SpecialOp
getIndependentInstance
in interface UnaryOp<IterableInterval<T extends NumericType<T>>,IterableInterval<T extends NumericType<T>>>
getIndependentInstance
in interface Threadable
Copyright © 2014–2022 ImageJ. All rights reserved.