Modifier and Type | Field and Description |
---|---|
static String |
DST |
static String |
INPUT |
static String |
INPUTS |
static String |
MODULE |
static String |
MODULES |
static String |
NAME |
static String |
OUTPUT |
static String |
OUTPUTS |
static String |
SRC |
static String |
WIRE |
static String |
WIRES |
static String |
WORKFLOW |
Constructor and Description |
---|
WorkFlow() |
Modifier and Type | Method and Description |
---|---|
void |
add(IModule component)
Adds a component to the workflow in phase I.
|
void |
clear()
Clears wiring.
|
void |
finalize()
Leftover, un-wired module inputs and outputs become workflow inputs and
outputs.
|
boolean |
fromXML(String xml)
Restores chained components from XML string representation.
|
String[] |
getInputNames()
Gets input image names.
|
IPluginLauncher |
getLauncher()
Gets launcher.
|
String |
getName()
Gets name of module.
|
String[] |
getOutputNames()
Gets output names.
|
Wire[] |
getWires()
Gets the current chains.
|
void |
input(ItemWrapper image)
Furnish default input image
|
void |
input(ItemWrapper image,
String name)
Furnish named input image
|
void |
quit()
Stops processing.
|
void |
setName(String name)
Sets name of module.
|
void |
setOutputListener(IOutputListener listener)
Listen for default output image.
|
void |
setOutputListener(String name,
IOutputListener listener)
Listen for named output image.
|
String |
toXML()
Saves chained components as XML string representation.
|
void |
wire(IModule source,
IModule dest)
Chains default output of one component to default input of another.
|
void |
wire(IModule source,
IModule dest,
String destName)
Chains default output of one component to named input of another.
|
void |
wire(IModule source,
String sourceName,
IModule dest)
Chains named output of one component to default input of another.
|
void |
wire(IModule source,
String sourceName,
IModule dest,
String destName)
Chains named output of one component to named input of another.
|
void |
wireInput(IModule dest)
Chains default workflow input to default input of component.
|
void |
wireInput(IModule dest,
String destName)
Chains default workflow input to named input of component.
|
void |
wireInput(String inName,
IModule dest)
Chains named workflow input to default input of component.
|
void |
wireInput(String inName,
IModule dest,
String destName)
Chains named workflow input to named input of component.
|
void |
wireOutput(IModule source)
Chains default component output to default workflow output.
|
void |
wireOutput(IModule source,
String sourceName)
Chains named component output to default workflow output.
|
void |
wireOutput(String outName,
IModule source)
Chains default component output to named workflow output.
|
void |
wireOutput(String outName,
IModule source,
String sourceName)
Chains named component output to named workflow output.
|
public static final String WORKFLOW
public static final String NAME
public static final String MODULES
public static final String MODULE
public static final String WIRES
public static final String WIRE
public static final String DST
public static final String SRC
public static final String INPUTS
public static final String INPUT
public static final String OUTPUTS
public static final String OUTPUT
public void setName(String name)
IModule
public IPluginLauncher getLauncher()
getLauncher
in interface IModule
public String[] getInputNames()
IModule
getInputNames
in interface IModule
public String[] getOutputNames()
IModule
getOutputNames
in interface IModule
public boolean fromXML(String xml)
IWorkFlow
public String toXML()
IWorkFlow
public void add(IModule component)
IWorkFlow
public void wire(IModule source, IModule dest)
IWorkFlow
public void wire(IModule source, String sourceName, IModule dest)
IWorkFlow
public void wire(IModule source, IModule dest, String destName)
IWorkFlow
public void wire(IModule source, String sourceName, IModule dest, String destName)
IWorkFlow
public Wire[] getWires()
IWorkFlow
public void finalize()
IWorkFlow
public void wireInput(IModule dest)
IWorkFlow
public void wireInput(IModule dest, String destName)
IWorkFlow
public void wireInput(String inName, IModule dest)
IWorkFlow
public void wireInput(String inName, IModule dest, String destName)
IWorkFlow
public void wireOutput(IModule source)
IWorkFlow
wireOutput
in interface IWorkFlow
public void wireOutput(IModule source, String sourceName)
IWorkFlow
wireOutput
in interface IWorkFlow
public void wireOutput(String outName, IModule source)
IWorkFlow
wireOutput
in interface IWorkFlow
public void wireOutput(String outName, IModule source, String sourceName)
IWorkFlow
wireOutput
in interface IWorkFlow
public void input(ItemWrapper image)
IModule
public void input(ItemWrapper image, String name)
IModule
public void setOutputListener(IOutputListener listener)
IModule
setOutputListener
in interface IModule
public void setOutputListener(String name, IOutputListener listener)
IModule
setOutputListener
in interface IModule
public void quit()
IWorkFlow
Copyright © 2015–2022 SciJava. All rights reserved.