TaskDefinition

An individual task.

class TaskDefinition implements TaskNode, TaskNode.DefinedTask

Constructors

TaskDefinition
Link copied to clipboard
void TaskDefinition(String name, Class<? extends TaskimplementingClass)

Functions

build
Link copied to clipboard

Build a new TaskGraph .

Builder
Link copied to clipboard
static TaskNode.Builder Builder(TaskNode.GraphType type)
emptyGraph
Link copied to clipboard

Creates an empty TaskGraph .

static TaskNode.TaskGraph emptyGraph(TaskNode.GraphType type)
getImplementingClass
Link copied to clipboard
@Nonnull()
Class<? extends TaskgetImplementingClass()
getImplementingClassName
Link copied to clipboard

Returns the name of the class implementing the stage

@Nonnull()
String getImplementingClassName()
getName
Link copied to clipboard

Returns the name of the task

@Nonnull()
String getName()
singleton
Link copied to clipboard

Creates a TaskGraph with a single Task .

static TaskNode.TaskGraph singleton(TaskNode.GraphType type, String name, Class<? extends TaskimplementingClass)
task
Link copied to clipboard

Creates a TaskDefinition for the provided Task class.

static TaskNode.TaskDefinition task(String name, Class<? extends TaskimplementingClass)

Properties

implementingClass
Link copied to clipboard
private final Class<? extends TaskimplementingClass
name
Link copied to clipboard
private final String name