org.scijava.module
Class DefaultMutableModule

java.lang.Object
  extended by org.scijava.module.AbstractModule
      extended by org.scijava.module.DefaultMutableModule
All Implemented Interfaces:
Runnable, Module, MutableModule
Direct Known Subclasses:
DynamicCommand

public class DefaultMutableModule
extends AbstractModule
implements MutableModule

Default MutableModule implementation, intended for subclassing.

Author:
Curtis Rueden

Constructor Summary
DefaultMutableModule()
           
DefaultMutableModule(MutableModuleInfo info)
           
 
Method Summary
 void addInput(ModuleItem<?> input)
          Adds an input to the list.
<T> MutableModuleItem<T>
addInput(String name, Class<T> type)
          Adds an input to the list.
 void addOutput(ModuleItem<?> output)
          Adds an output to the list.
<T> MutableModuleItem<T>
addOutput(String name, Class<T> type)
          Adds an output to the list.
 MutableModuleInfo getInfo()
          Gets metadata about this module.
 void removeInput(ModuleItem<?> input)
          Removes an input from the list.
 void removeOutput(ModuleItem<?> output)
          Removes an output from the list.
 void run()
           
 
Methods inherited from class org.scijava.module.AbstractModule
cancel, getDelegateObject, getInput, getInputs, getOutput, getOutputs, initialize, isResolved, preview, setInput, setInputs, setOutput, setOutputs, setResolved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.scijava.module.Module
cancel, getDelegateObject, getInput, getInputs, getOutput, getOutputs, initialize, isResolved, preview, setInput, setInputs, setOutput, setOutputs, setResolved
 

Constructor Detail

DefaultMutableModule

public DefaultMutableModule()

DefaultMutableModule

public DefaultMutableModule(MutableModuleInfo info)
Method Detail

addInput

public <T> MutableModuleItem<T> addInput(String name,
                                         Class<T> type)
Description copied from interface: MutableModule
Adds an input to the list.

Specified by:
addInput in interface MutableModule

addInput

public void addInput(ModuleItem<?> input)
Description copied from interface: MutableModule
Adds an input to the list.

Specified by:
addInput in interface MutableModule

addOutput

public <T> MutableModuleItem<T> addOutput(String name,
                                          Class<T> type)
Description copied from interface: MutableModule
Adds an output to the list.

Specified by:
addOutput in interface MutableModule

addOutput

public void addOutput(ModuleItem<?> output)
Description copied from interface: MutableModule
Adds an output to the list.

Specified by:
addOutput in interface MutableModule

removeInput

public void removeInput(ModuleItem<?> input)
Description copied from interface: MutableModule
Removes an input from the list.

Specified by:
removeInput in interface MutableModule

removeOutput

public void removeOutput(ModuleItem<?> output)
Description copied from interface: MutableModule
Removes an output from the list.

Specified by:
removeOutput in interface MutableModule

getInfo

public MutableModuleInfo getInfo()
Description copied from interface: Module
Gets metadata about this module.

Specified by:
getInfo in interface Module
Specified by:
getInfo in interface MutableModule

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2009–2014 SciJava. All rights reserved.