iMSTK
Interactive Medical Simulation Toolkit
imstkSequentialTaskGraphController.h
1 /*
2 ** This file is part of the Interactive Medical Simulation Toolkit (iMSTK)
3 ** iMSTK is distributed under the Apache License, Version 2.0.
4 ** See accompanying NOTICE for details.
5 */
6 
7 #pragma once
8 
9 #include "imstkTaskGraphController.h"
10 #include <list>
11 
12 namespace imstk
13 {
14 class TaskNode;
15 
23 {
24 public:
28  void init() override;
29 
30  void execute() override;
31 
32 private:
33  // The current nodes to execute, ordered
34  std::shared_ptr<std::list<std::shared_ptr<TaskNode>>> m_executionOrderedNodes;
35 };
36 }; // namespace imstk
This class executes a TaskGraph by first topologically sorting them (Kahn&#39;s algorithm) then sequentia...
Compound Geometry.
void execute() override
Executes the TaskGraph.
void init() override
Sorts the computational nodes.
Base class for TaskGraph controllers which are responsible for executing the TaskGraph.