# builders.domain.scheduling.task_progress
Domain specification
Domain
# CustomTaskProgress
A domain must inherit this class if the task progress is uncertain.
# get_task_progress CustomTaskProgress
get_task_progress(
self,
task: int,
t_from: int,
t_to: int,
mode: Optional[int],
sampled_duration: Optional[int] = None
) -> float
# Returns
The task progress (float) between t_from and t_to.
# _get_task_progress CustomTaskProgress
_get_task_progress(
self,
task: int,
t_from: int,
t_to: int,
mode: Optional[int],
sampled_duration: Optional[int] = None
) -> float
# Returns
The task progress (float) between t_from and t_to.
# DeterministicTaskProgress
A domain must inherit this class if the task progress is deterministic and can be considered as linear over the duration of the task.
# get_task_progress CustomTaskProgress
get_task_progress(
self,
task: int,
t_from: int,
t_to: int,
mode: Optional[int],
sampled_duration: Optional[int] = None
) -> float
# Returns
The task progress (float) between t_from and t_to.
# _get_task_progress CustomTaskProgress
_get_task_progress(
self,
task: int,
t_from: int,
t_to: int,
mode: Optional[int],
sampled_duration: Optional[int] = None
) -> float
# Returns
The task progress (float) between t_from and t_to based on the task duration and assuming linear progress.