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).
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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:WorkflowStepGet the name of the workflow step.- Specified by:
getNamein interfaceWorkflowStep- Returns:
-
getPluginClass
Get the full name of the plugin class.- Returns:
-
getParameterMap
Description copied from interface:WorkflowStepGet a map of parameters required for this step.- Specified by:
getParameterMapin interfaceWorkflowStep- Returns:
-
toString
-
getScript
Description copied from interface:ScriptableWorkflowStepGet one or more script lines that may be used to apply the step.- Specified by:
getScriptin interfaceScriptableWorkflowStep- Returns:
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-