Go to the documentation of this file.
52 initiationInterval_(ii), name_(name), useCount_(0) {
122 const int index)
const {
128 std::string msg =
"Requested related resource [";
130 msg +=
"] does not exists";
131 msg +=
" in group [";
135 msg +=
". Group count is: ";
141 std::string msg =
"Requested related resource group ";
143 msg +=
" does not exists in ";
160 const int index)
const {
166 std::string msg =
"Requested dependent resource [";
168 msg +=
"] does not exists";
169 msg +=
" in group [";
173 msg +=
". Group count is: ";
179 std::string msg =
"Requested dependent resource group ";
181 msg +=
" does not exists in ";
265 if (index < 0 || index >=
static_cast<int>(
resources_.size())) {
281 ResourceList::iterator iter =
resources_.begin();
289 string msg =
"Resource not found in resource set.";
298 ResourceList::iterator iter =
resources_.begin();
317 for (
int i = 0; i < newSet.
count(); i++) {
virtual ~SchedulingResource()
SchedulingResourceGroup relatedResourceGroup_
virtual void addToDependentGroup(const int group, SchedulingResource &resource)
virtual int dependentResourceGroupCount() const
bool hasResource(SchedulingResource &res)
virtual bool hasDependentResource(const SchedulingResource &sResource) const
SchedulingResource(const std::string &name, const unsigned int ii=0)
static std::string toString(const T &source)
virtual SchedulingResource & dependentResource(const int group, const int index) const
int dependentResourceCount(const int group) const
virtual SchedulingResource & relatedResource(const int group, const int index) const
virtual void addToRelatedGroup(const int group, SchedulingResource &resource)
virtual int useCount() const
SchedulingResourceSet & operator=(const SchedulingResourceSet &newSet)
int initiationInterval() const
virtual bool hasRelatedResource(const SchedulingResource &sResource) const
int relatedResourceCount(const int group) const
void setInitiationInterval(unsigned int ii)
void remove(SchedulingResource &resource)
virtual void decreaseUseCount()
SchedulingResource & resource(int index) const
virtual const std::string & name() const
SchedulingResourceGroup dependentResourceGroup_
virtual int relatedResourceGroupCount() const
void insert(SchedulingResource &resource)
SchedulingResourceSet relatedResourceSet_
virtual void increaseUseCount()