public class Task
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Repair |
intentRepair
Reference to the associated intent repair structure.
|
Modifier and Type | Method and Description |
---|---|
static Task |
createExtendedTask(Intent correctionIntent)
Creates a new extended task with initialised dependencies.
|
void |
createRequestsContainer()
Creates a new requests container and stores its reference.
|
static Task |
createSimpleTask(Intent correctionIntent)
Creates a new simple task that only holds the intent reference.
|
Intent |
getCorrectionIntent()
Returns the associated correction intent.
|
Dependencies |
getExecutionDependencies()
Returns the internal execution dependencies container.
|
Repair |
getIntentRepair()
Returns the reference to the computed intent repair.
|
Quota |
getQuotaData()
Returns the description object of the iterative quota.
|
Task |
getRequestingTask()
Returns the parental requesting task.
|
Requests |
getRequestsContainer()
Returns the data container for managing scheduling requests.
|
java.lang.Boolean |
getSchedulingMaster()
Returns the current value of the scheduling management parameter.
|
Variables |
getWorkingVariables()
Returns the associated working variables.
|
boolean |
hasCompletedJob()
Detects whether the requested refinement was already completed.
|
boolean |
hasCompletedRapair()
Detects whether the registered repair is already fully evaluated.
|
void |
markCompletedJob()
Activates the internal flag of completed refinement job.
|
void |
setQuotaData(Quota newQuota)
Sets a new value for the entire iterative quota description.
|
void |
setRequestingTask(Task parentalTask)
Sets the reference of the parental requesting task.
|
void |
setSchedulingMaster(java.lang.Boolean newValue)
Sets the scheduling management parameter.
|
void |
setWorkingVariables(Variables workingVariables)
Associates the working variables container with the task.
|
protected Repair intentRepair
Repair.isCompletelyEvaluated()
public static Task createSimpleTask(Intent correctionIntent)
correctionIntent
- Associated correction intent reference.public static Task createExtendedTask(Intent correctionIntent)
correctionIntent
- Associated correction intent reference.public Intent getCorrectionIntent()
public Repair getIntentRepair()
hasCompletedRapair()
,
Repair.isCompletelyEvaluated()
public boolean hasCompletedRapair()
true
in case the repair is registered
and at the same time already completely evaluated.public Variables getWorkingVariables()
public void setWorkingVariables(Variables workingVariables)
workingVariables
- Working variables container to be registered.public Dependencies getExecutionDependencies()
public java.lang.Boolean getSchedulingMaster()
true
for master scheduling behavior.public void setSchedulingMaster(java.lang.Boolean newValue)
newValue
- True
for master scheduling behavior.
If and only if task itself is set as master, the requesting task
reference must be set to null
.setRequestingTask(cz.cuni.mff.corrector.execution.Task)
public Task getRequestingTask()
public void setRequestingTask(Task parentalTask)
parentalTask
- Reference to the requesting task in the hierarchy.
If and only if this requesting task reference is set null
,
this task itself must be set as master.setSchedulingMaster(java.lang.Boolean)
public Requests getRequestsContainer()
public void createRequestsContainer()
public void setQuotaData(Quota newQuota)
newQuota
- Quota object to be registered with the task.public Quota getQuotaData()
null
.public void markCompletedJob()
public boolean hasCompletedJob()