#include <DeploymentTree.hxx>
Public Member Functions | |
DeploymentTree () | |
~DeploymentTree () | |
DeploymentTree (const DeploymentTree &other) | |
const DeploymentTree & | operator= (const DeploymentTree &other) |
unsigned char | appendTask (Task *task, Scheduler *cloner) |
unsigned | getNumberOfCTDefContainer () const |
unsigned | getNumberOfRTODefContainer () const |
unsigned | getNumberOfCTDefComponentInstances () const |
unsigned | getNumberOfRTODefComponentInstances () const |
bool | presenceOfDefaultContainer () const |
std::vector< Container * > | getAllContainers () const |
std::vector< Container * > | getAllCTDefContainers () const |
std::vector< Container * > | getAllRTODefContainers () const |
std::vector< Task * > | getTasksLinkedToComponent (ComponentInstance *comp) const |
std::vector< Task * > | getTasksLinkedToContainer (Container *cont) const |
std::vector< ComponentInstance * > | getComponentsLinkedToContainer (Container *cont) const |
bool | isNull () const |
std::vector< Task * > | getFreeDeployableTasks () const |
Static Public Attributes | |
static const unsigned char | NULL_TASK = 3 |
static const unsigned char | APPEND_OK = 0 |
static const unsigned char | NULL_TREE = 199 |
static const unsigned char | ALREADY_IN_TREE = 1 |
static const unsigned char | NOT_DEPLOYABLE_TASK = 2 |
static const unsigned char | DEPLOYABLE_BUT_NOT_SPECIFIED = 5 |
static const unsigned char | DUP_TASK_NOT_COMPATIBLE_WITH_EXISTING_TREE = 4 |
Private Attributes | |
DeploymentTreeOnHeap * | _treeHandle |
Definition at line 67 of file DeploymentTree.hxx.
DeploymentTree::DeploymentTree | ( | ) |
Definition at line 399 of file DeploymentTree.cxx.
DeploymentTree::~DeploymentTree | ( | ) |
Definition at line 403 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::decrRef().
DeploymentTree::DeploymentTree | ( | const DeploymentTree & | other | ) |
Definition at line 409 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::incrRef().
Definition at line 426 of file DeploymentTree.cxx.
References _treeHandle, YACS::ENGINE::DeploymentTreeOnHeap::appendTask(), YACS::ENGINE::Task::isDeployable(), NOT_DEPLOYABLE_TASK, and NULL_TASK.
Referenced by YACS::ENGINE::ComposedNode::checkDeploymentTree(), YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), and YACS::ENGINE::ComposedNode::getDeploymentTree().
std::vector< Container * > DeploymentTree::getAllContainers | ( | ) | const |
Returns all containers default included (0).
Definition at line 475 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getAllContainers().
Referenced by YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::ENGINE::ComposedNode::performDuplicationOfPlacement(), YACS::ENGINE::ComposedNode::performShallowDuplicationOfPlacement(), and YACS::ENGINE::Proc::updateContainersAndComponents().
std::vector< Container * > DeploymentTree::getAllCTDefContainers | ( | ) | const |
Returns containers predictably launchable without counting default container.
Definition at line 485 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getAllCTDefContainers().
std::vector< Container * > DeploymentTree::getAllRTODefContainers | ( | ) | const |
Returns containers unpredictably launchable without counting default container.
Definition at line 495 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getAllRTODefContainers().
std::vector< ComponentInstance * > DeploymentTree::getComponentsLinkedToContainer | ( | Container * | cont | ) | const |
Definition at line 516 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getComponentsLinkedToContainer().
Referenced by YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::ENGINE::ComposedNode::performDuplicationOfPlacement(), YACS::ENGINE::ComposedNode::performShallowDuplicationOfPlacement(), and YACS::ENGINE::Proc::updateContainersAndComponents().
std::vector< Task * > DeploymentTree::getFreeDeployableTasks | ( | ) | const |
Definition at line 535 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getFreeDeployableTasks().
unsigned DeploymentTree::getNumberOfCTDefComponentInstances | ( | ) | const |
Definition at line 458 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getNumberOfCTDefComponentInstances().
unsigned DeploymentTree::getNumberOfCTDefContainer | ( | ) | const |
Returns number of containers predictably launchable without counting default container.
Definition at line 441 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getNumberOfCTDefContainer().
unsigned DeploymentTree::getNumberOfRTODefComponentInstances | ( | ) | const |
Definition at line 465 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getNumberOfRTODefComponentInstances().
unsigned DeploymentTree::getNumberOfRTODefContainer | ( | ) | const |
Returns number of containers unpredictably launchable without counting default container.
Definition at line 451 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getNumberOfRTODefContainer().
std::vector< Task * > DeploymentTree::getTasksLinkedToComponent | ( | ComponentInstance * | comp | ) | const |
Definition at line 509 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getTasksLinkedToComponent().
Referenced by YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::ENGINE::ComposedNode::performDuplicationOfPlacement(), and YACS::ENGINE::ComposedNode::performShallowDuplicationOfPlacement().
Definition at line 502 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::getTasksLinkedToContainer().
Referenced by YACS::ENGINE::DynParaLoop::cloneAndPlaceNodesCoherently(), YACS::ENGINE::ComposedNode::performDuplicationOfPlacement(), and YACS::ENGINE::ComposedNode::performShallowDuplicationOfPlacement().
bool DeploymentTree::isNull | ( | ) | const |
Definition at line 530 of file DeploymentTree.cxx.
References _treeHandle.
const DeploymentTree & DeploymentTree::operator= | ( | const DeploymentTree & | other | ) |
Definition at line 416 of file DeploymentTree.cxx.
References _treeHandle, YACS::ENGINE::DeploymentTreeOnHeap::decrRef(), and YACS::ENGINE::DeploymentTreeOnHeap::incrRef().
bool DeploymentTree::presenceOfDefaultContainer | ( | ) | const |
Definition at line 523 of file DeploymentTree.cxx.
References _treeHandle, and YACS::ENGINE::DeploymentTreeOnHeap::presenceOfDefaultContainer().
|
private |
Definition at line 101 of file DeploymentTree.hxx.
Referenced by appendTask(), DeploymentTree(), getAllContainers(), getAllCTDefContainers(), getAllRTODefContainers(), getComponentsLinkedToContainer(), getFreeDeployableTasks(), getNumberOfCTDefComponentInstances(), getNumberOfCTDefContainer(), getNumberOfRTODefComponentInstances(), getNumberOfRTODefContainer(), getTasksLinkedToComponent(), getTasksLinkedToContainer(), isNull(), operator=(), presenceOfDefaultContainer(), and ~DeploymentTree().
|
static |
Definition at line 96 of file DeploymentTree.hxx.
Referenced by YACS::ENGINE::DeploymentTreeOnHeap::appendTask().
|
static |
Definition at line 94 of file DeploymentTree.hxx.
Referenced by YACS::ENGINE::DeploymentTreeOnHeap::appendTask().
|
static |
Definition at line 98 of file DeploymentTree.hxx.
Referenced by YACS::ENGINE::DeploymentTreeOnHeap::appendTask(), and YACS::ENGINE::ComposedNode::checkDeploymentTree().
|
static |
Definition at line 99 of file DeploymentTree.hxx.
Referenced by YACS::ENGINE::ComposedNode::checkDeploymentTree().
|
static |
Definition at line 97 of file DeploymentTree.hxx.
Referenced by YACS::ENGINE::DeploymentTreeOnHeap::appendTask(), and appendTask().
|
static |
Definition at line 93 of file DeploymentTree.hxx.
Referenced by YACS::ENGINE::DeploymentTreeOnHeap::appendTask(), and appendTask().
|
static |
Definition at line 95 of file DeploymentTree.hxx.