public class Task
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
Task.TaskTarget |
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
protected |
Task(long cPtr,
boolean cMemoryOwn) |
|
Task(java.lang.String name) |
|
Task(Task task) |
Modifier and Type | Method and Description |
---|---|
void |
apply(Chunk chunk,
Progress progress)
Apply task to chunk.
|
void |
apply(Document doc,
Progress progress)
Apply task to document.
|
void |
close() |
void |
delete() |
protected void |
finalize() |
protected static long |
getCPtr(Task obj) |
boolean |
getGpuSupport()
GPU support flag.
|
java.lang.String |
getName()
Task name.
|
java.lang.Object |
getParameter(java.lang.String name)
Get parameter value.
|
java.lang.String[] |
getParameterNames()
List of configured parameter names.
|
Task.TaskTarget |
getTarget()
Task target.
|
int |
getWorkitemCount()
Workitem count.
|
void |
setParameter(java.lang.String name,
java.lang.Object value)
Set parameter value.
|
void |
setWorkitemCount(int count)
Workitem count.
|
NetworkTask |
toNetworkTask()
Convert task to NetworkTask.
|
NetworkTask |
toNetworkTask(Chunk chunk)
Convert task to NetworkTask to be applied to the chunk.
|
NetworkTask |
toNetworkTask(Chunk[] chunks)
Convert task to NetworkTask to be applied to the list of chunks.
|
NetworkTask |
toNetworkTask(Document doc)
Convert task to NetworkTask to be applied to the whole project.
|
protected Task(long cPtr, boolean cMemoryOwn)
public Task(Task task)
public Task(java.lang.String name)
protected static long getCPtr(Task obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public java.lang.String getName()
public java.lang.String[] getParameterNames()
public void setParameter(java.lang.String name, java.lang.Object value)
public java.lang.Object getParameter(java.lang.String name)
public Task.TaskTarget getTarget()
public boolean getGpuSupport()
public int getWorkitemCount()
public void setWorkitemCount(int count)
public NetworkTask toNetworkTask()
public NetworkTask toNetworkTask(Chunk chunk)
public NetworkTask toNetworkTask(Chunk[] chunks)
public NetworkTask toNetworkTask(Document doc)