public interface MutableModule extends Module
Module extension allowing manipulation of its metadata.
In particular, module inputs and outputs can be added, edited and removed.
A MutableModule always has MutableModuleInfo attached to it,
accessible via the getInfo() method.
DynamicCommand| Modifier and Type | Method and Description |
|---|---|
default void |
addInput(ModuleItem<?> input)
Adds an input to the list.
|
default <T> MutableModuleItem<T> |
addInput(String name,
Class<T> type)
Adds an input to the list.
|
default void |
addOutput(ModuleItem<?> output)
Adds an output to the list.
|
default <T> MutableModuleItem<T> |
addOutput(String name,
Class<T> type)
Adds an output to the list.
|
MutableModuleInfo |
getInfo()
Gets metadata about this module.
|
default void |
removeInput(ModuleItem<?> input)
Removes an input from the list.
|
default void |
removeOutput(ModuleItem<?> output)
Removes an output from the list.
|
default void |
run() |
cancel, getDelegateObject, getInput, getInputs, getOutput, getOutputs, initialize, isInputResolved, isOutputResolved, isResolved, preview, resolveInput, resolveOutput, setInput, setInputs, setOutput, setOutputs, setResolved, unresolveInput, unresolveOutputdefault <T> MutableModuleItem<T> addInput(String name, Class<T> type)
default void addInput(ModuleItem<?> input)
default <T> MutableModuleItem<T> addOutput(String name, Class<T> type)
default void addOutput(ModuleItem<?> output)
default void removeInput(ModuleItem<?> input)
default void removeOutput(ModuleItem<?> output)
MutableModuleInfo getInfo()
ModuleCopyright © 2015–2022 SciJava. All rights reserved.