public abstract class MetaMainTask extends MainTask
Modifier and Type | Field and Description |
---|---|
protected Color |
colorCoding |
protected boolean[] |
isLastSubtaskOnLevel |
protected String |
nameSuffix |
INSTANCES_BETWEEN_MONITOR_UPDATES, outputFileOption
config
Constructor and Description |
---|
MetaMainTask() |
Modifier and Type | Method and Description |
---|---|
Color |
getColorCoding()
Get the color coding for this task (the color which is used for multi-curve plots).
|
String |
getDisplayName()
Get the task's display name consisting of the general task name,
indentation showing the tree structure depending on the subtask level
and optionally a name suffix given from a supertask.
|
int |
getSubtaskLevel()
Get the tasks subtask level (how deep it is in the tree).
|
abstract List<? extends TaskThread> |
getSubtaskThreads()
Get the list of threads for all subtasks and recursively the children's
subtasks.
|
boolean |
isSubtask()
Check if the task is a subtask of another parent.
|
void |
setColorCoding(Color newColorCoding)
Set the color coding for this task (the color which is used for multi-curve plots).
|
void |
setIsLastSubtaskOnLevel(boolean[] parentIsLastSubtaskList,
boolean isLastSubtask)
Set the list of booleans indicating if the current branch in the
subtask tree is the last one on its respective level.
|
void |
setNameSuffix(String suffix)
Set a suffix for the tasks display name.
|
doMainTask, doTaskImpl
doTask, doTask, getDescription, getTaskName, prepareForUseImpl
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTaskResultType
copy, measureByteSize
protected boolean[] isLastSubtaskOnLevel
protected String nameSuffix
protected Color colorCoding
public abstract List<? extends TaskThread> getSubtaskThreads()
public String getDisplayName()
public void setNameSuffix(String suffix)
suffix
- public void setIsLastSubtaskOnLevel(boolean[] parentIsLastSubtaskList, boolean isLastSubtask)
parentIsLastSubtaskList
- the internal list of the parentisLastSubtask
- if the current subtask is the parents last onepublic int getSubtaskLevel()
public boolean isSubtask()
public void setColorCoding(Color newColorCoding)
newColorCoding
- the new color coding for this taskpublic Color getColorCoding()
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.