20 #ifndef __DEPLOYMENTTREE_HXX__
21 #define __DEPLOYMENTTREE_HXX__
34 class ComponentInstance;
46 unsigned getNumberOfCTDefContainer()
const;
47 unsigned getNumberOfRTODefContainer()
const;
48 unsigned getNumberOfCTDefComponentInstances()
const;
49 unsigned getNumberOfRTODefComponentInstances()
const;
51 std::vector<Container *> getAllContainers()
const;
52 std::vector<Container *> getAllCTDefContainers()
const;
53 std::vector<Container *> getAllRTODefContainers()
const;
55 std::vector<Task *> getTasksLinkedToContainer(
Container *cont)
const;
56 std::vector<ComponentInstance *> getComponentsLinkedToContainer(
Container *cont)
const;
58 bool presenceOfDefaultContainer()
const;
59 std::vector<Task *> getFreeDeployableTasks()
const;
64 std::vector< std::vector< std::vector< std::pair<Task *, Scheduler * > > > >
_tree;
76 unsigned getNumberOfCTDefContainer()
const;
77 unsigned getNumberOfRTODefContainer()
const;
78 unsigned getNumberOfCTDefComponentInstances()
const;
79 unsigned getNumberOfRTODefComponentInstances()
const;
81 bool presenceOfDefaultContainer()
const;
82 std::vector<Container *> getAllContainers()
const;
83 std::vector<Container *> getAllCTDefContainers()
const;
84 std::vector<Container *> getAllRTODefContainers()
const;
86 std::vector<Task *> getTasksLinkedToContainer(
Container *cont)
const;
87 std::vector<ComponentInstance *> getComponentsLinkedToContainer(
Container *cont)
const;
90 std::vector<Task *> getFreeDeployableTasks()
const;
93 static const unsigned char NULL_TASK = 3;
94 static const unsigned char APPEND_OK = 0;
95 static const unsigned char NULL_TREE = 199;
96 static const unsigned char ALREADY_IN_TREE = 1;
97 static const unsigned char NOT_DEPLOYABLE_TASK = 2;
98 static const unsigned char DEPLOYABLE_BUT_NOT_SPECIFIED = 5;
99 static const unsigned char DUP_TASK_NOT_COMPATIBLE_WITH_EXISTING_TREE = 4;