diff options
| author | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-07-09 23:48:06 +0200 |
|---|---|---|
| committer | Fabian Mastenbroek <mail.fabianm@gmail.com> | 2017-07-09 23:48:06 +0200 |
| commit | c94d0c347fdbd8acc774df4ac17617a3f63e4507 (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /Simulator/include/simulation/workloads/WorkloadPool.h | |
| parent | bc4c41e21a64b444bdbab3b6d1d407fd5d919419 (diff) | |
Delete old codebase
This change removes version 1 of the OpenDC simulator codebase as it
will be replaced by a complete rewrite in the Kotlin language.
Diffstat (limited to 'Simulator/include/simulation/workloads/WorkloadPool.h')
| -rw-r--r-- | Simulator/include/simulation/workloads/WorkloadPool.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/Simulator/include/simulation/workloads/WorkloadPool.h b/Simulator/include/simulation/workloads/WorkloadPool.h deleted file mode 100644 index 28a2ad04..00000000 --- a/Simulator/include/simulation/workloads/WorkloadPool.h +++ /dev/null @@ -1,43 +0,0 @@ -#pragma once -#include "simulation/workloads/Workload.h" -#include <vector> - -namespace Simulation -{ - class WorkloadPool - { - public: - /* - Adds the given workload to this pool of workloads. - */ - void addWorkload(Workload w); - - /* - Returns a reference to the vector of workloads. - */ - std::vector<Workload*> getWorkloads(uint32_t currentTick); - - /* - Returns a reference to the workload with the given id. - */ - Workload& getWorkload(int id); - - /* - Removes all workloads that are finished. - */ - void clearFinishedWorkloads(); - - /* - Returns true if the workloads vector of this pool is empty. - */ - bool isEmpty(); - - private: - /* - Sets all dependencyFinished to true of workloads with the given id as dependency. - */ - void setDependenciesFinished(int id); - - std::vector<Workload> workloads; - }; -} |
