Learn Environment
Public Attributes | List of all members
Subtask Struct Reference

Represents a subtask within a task. More...

#include <task.hpp>

Collaboration diagram for Subtask:
Collaboration graph

Public Attributes

QString title
 The title of the subtask. More...
 
QString description
 The description of the subtask. More...
 
QString file
 The file name of the subtask. More...
 
QString filePath
 The file path of the subtask. More...
 
QString solutionFilePath
 The file path to the solution of the subtask. More...
 
QString evaluationFilePath
 The file path to the evaluation script of the subtask. More...
 
int timeoutSeconds = 60
 The timeout for the subtask execution in seconds. More...
 
bool parallelizedEvaluationRequired = false
 Whether parallelized evaluation is required. More...
 
bool reset_robot_before_executing = true
 Whether to reset the robot before executing the subtask. More...
 
QWeakPointer< TaskparentTask
 Weak pointer to the parent task. More...
 
SubtaskStatus status = SubtaskStatus::Inactive
 The status of the subtask. More...
 
bool hasBeenExecuted = false
 Whether the subtask has been executed at least once. More...
 
bool lastExecutionFailed = false
 Whether the subtask has been executed at least once. More...
 
QString lastExecutionError
 The error message from the last execution of the subtask. More...
 

Detailed Description

Represents a subtask within a task.

The Subtask struct contains information about a subtask, including its title, description, file paths, difficulty, and status. It also includes optional fields for timeout and parallelized evaluation.

Member Data Documentation

◆ description

QString Subtask::description

The description of the subtask.

◆ evaluationFilePath

QString Subtask::evaluationFilePath

The file path to the evaluation script of the subtask.

◆ file

QString Subtask::file

The file name of the subtask.

◆ filePath

QString Subtask::filePath

The file path of the subtask.

◆ hasBeenExecuted

bool Subtask::hasBeenExecuted = false

Whether the subtask has been executed at least once.

◆ lastExecutionError

QString Subtask::lastExecutionError

The error message from the last execution of the subtask.

◆ lastExecutionFailed

bool Subtask::lastExecutionFailed = false

Whether the subtask has been executed at least once.

◆ parallelizedEvaluationRequired

bool Subtask::parallelizedEvaluationRequired = false

Whether parallelized evaluation is required.

◆ parentTask

QWeakPointer<Task> Subtask::parentTask

Weak pointer to the parent task.

◆ reset_robot_before_executing

bool Subtask::reset_robot_before_executing = true

Whether to reset the robot before executing the subtask.

◆ solutionFilePath

QString Subtask::solutionFilePath

The file path to the solution of the subtask.

◆ status

The status of the subtask.

◆ timeoutSeconds

int Subtask::timeoutSeconds = 60

The timeout for the subtask execution in seconds.

◆ title

QString Subtask::title

The title of the subtask.


The documentation for this struct was generated from the following file: