ExecutionDAG class
A directed acyclic graph of AgentTask nodes.
The DAG is used by PlanningEngine to determine:
- which tasks are blocked (have unfinished dependencies)
- which tasks are ready to execute (all deps succeeded)
- the topological execution order
Constructors
- ExecutionDAG(String goalId)
Properties
-
all
→ List<
AgentTask> -
All tasks in insertion order.
no setter
-
failed
→ List<
AgentTask> -
Tasks that failed.
no setter
- goalId → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isComplete → bool
-
Whether every task has either succeeded or been skipped.
no setter
- isFailed → bool
-
Whether any task is in a terminal-failure state with no retry left.
no setter
-
ready
→ List<
AgentTask> -
Tasks that can be started right now (all deps succeeded, not yet started).
no setter
-
running
→ List<
AgentTask> -
Tasks currently running.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int
-
Total task count.
no setter
-
succeeded
→ List<
AgentTask> -
Tasks that succeeded.
no setter
-
topologicalOrder
→ List<
AgentTask> -
Returns tasks in a valid topological execution order.
no setter
Methods
-
add(
AgentTask task) → void -
Adds
taskto the DAG. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
String id) → void -
Removes a task by
id. -
replace(
List< AgentTask> tasks) → void - Replaces all tasks (used during re-planning).
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String id) → AgentTask? - Task by ID.