Package qupath.lib.plugins.workflow
Class SimplePluginWorkflowStep
java.lang.Object
qupath.lib.plugins.workflow.SimplePluginWorkflowStep
- All Implemented Interfaces:
Externalizable
,Serializable
,ScriptableWorkflowStep
,WorkflowStep
public class SimplePluginWorkflowStep
extends Object
implements ScriptableWorkflowStep, Externalizable
Updated version of DefaultPluginWorkflowStep, adapted to use Externalizable and to avoid storing the plugin class as a class object
(preferring a String instead).
- Author:
- Pete Bankhead
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault public constructor, required for Externalizable.SimplePluginWorkflowStep
(String name, Class<? extends PathPlugin<?>> pluginClass, String arg) Constructor for a workflow step that calls a plugin.SimplePluginWorkflowStep
(String name, Class<? extends PathPlugin<?>> pluginClass, String arg, String scriptBefore, String scriptAfter) Constructor for a workflow step that calls a plugin, which optionally should include additional scripting lines before or afterwards. -
Method Summary
-
Constructor Details
-
SimplePluginWorkflowStep
public SimplePluginWorkflowStep()Default public constructor, required for Externalizable. Shouldn't be used directly! Doing so would give an ineffective script... -
SimplePluginWorkflowStep
public SimplePluginWorkflowStep(String name, Class<? extends PathPlugin<?>> pluginClass, String arg) Constructor for a workflow step that calls a plugin.- Parameters:
name
-pluginClass
-arg
-
-
SimplePluginWorkflowStep
public SimplePluginWorkflowStep(String name, Class<? extends PathPlugin<?>> pluginClass, String arg, String scriptBefore, String scriptAfter) Constructor for a workflow step that calls a plugin, which optionally should include additional scripting lines before or afterwards.- Parameters:
name
-pluginClass
-arg
-scriptBefore
-scriptAfter
-
-
-
Method Details
-
getName
Description copied from interface:WorkflowStep
Get the name of the workflow step.- Specified by:
getName
in interfaceWorkflowStep
- Returns:
-
getPluginClass
Get the full name of the plugin class.- Returns:
-
getParameterMap
Description copied from interface:WorkflowStep
Get a map of parameters required for this step.- Specified by:
getParameterMap
in interfaceWorkflowStep
- Returns:
-
toString
-
getScript
Description copied from interface:ScriptableWorkflowStep
Get one or more script lines that may be used to apply the step.- Specified by:
getScript
in interfaceScriptableWorkflowStep
- Returns:
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-