summaryrefslogtreecommitdiff
path: root/Controller/common/Task.h
diff options
context:
space:
mode:
Diffstat (limited to 'Controller/common/Task.h')
-rw-r--r--Controller/common/Task.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/Controller/common/Task.h b/Controller/common/Task.h
new file mode 100644
index 00000000000..3f38114c937
--- /dev/null
+++ b/Controller/common/Task.h
@@ -0,0 +1,45 @@
+#ifndef TASK_H
+#define TASK_H
+#include <string>
+#include <vector>
+
+#include "Subtask.h"
+
+namespace CIAO
+{
+ namespace RACE
+ {
+ /// Structure of an end-to-end task.
+ struct Task
+ {
+ /// Unique identifier.
+ std::string UUID;
+
+ /// Logical name.
+ std::string label;
+
+ /// Minimum execution rate (in Hz).
+ size_t min_rate_;
+
+ /// Maximum execution rate (in Hz).
+ size_t max_rate_;
+
+ /// Current execution rate (in Hz).
+ size_t curr_rate_;
+
+ /// Current RT-CORBA priority.
+ size_t priority_;
+
+ /// Relative importance.
+ size_t importance_;
+
+ /// End-to-end deadline.
+ double deadline_;
+
+ /// Subtaks of this task.
+ std::vector <Subtask> subtasks_;
+ };
+ }
+}
+
+#endif /* TASK_H */