Class TaskUtils

Class TaskUtils

Namespace: Aspose.Tasks.Util
Assembly: Aspose.Tasks.dll (25.2.0)

Helper class which provides useful operations with tasks.

public static class TaskUtils

Inheritance

objectTaskUtils

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Methods

Apply(Task, ITreeAlgorithm<task>, int)

Applies specified algorithm to each task of a tree.

public static void Apply(Task root, ITreeAlgorithm<task> alg, int level)

Parameters

root Task

Root of the tree

alg ITreeAlgorithm<Task&gt;

Applied algorithm.

level int

Level of the root task.

Filter(Task, ICondition<task>)

Builds new tree of tasks which satisfy the condition.

public static Task Filter(Task root, ICondition<task> cond)

Parameters

root Task

Root of the tree.

cond ICondition<Task&gt;

Applied condition.

Returns

Task

Root of a new tree.

Find(Task, ICondition<task>)

Finds a task which satisfy the condition in a tree of tasks.

public static Task Find(Task root, ICondition<task> cond)

Parameters

root Task

Root of the tree.

cond ICondition<Task&gt;

Applied condition.

Returns

Task

Task if task was found, otherwise null.

TaskChildrenCount(Task)

Recursively calculates a number of task’s children tasks through all levels.

public static int TaskChildrenCount(Task task)

Parameters

task Task

The task which children calculate.

Returns

int

The number of children. </task></task></task>