Singleton representation of project in the scheduling problem.
More...
#include <Project.h>
|
static void | create (int _n, Task **_tasks, int _res_count, int *_res_id, double *_res_sal) |
|
static std::shared_ptr< Project > | get () |
|
Singleton representation of project in the scheduling problem.
Definition at line 13 of file Project.h.
void SchedulingProblem::Project::create |
( |
int |
_n, |
|
|
Task ** |
_tasks, |
|
|
int |
_res_count, |
|
|
int * |
_res_id, |
|
|
double * |
_res_sal |
|
) |
| |
|
static |
Creates singleton instance.
Definition at line 10 of file Project.cpp.
static std::shared_ptr<Project> SchedulingProblem::Project::get |
( |
| ) |
|
|
inlinestatic |
- Returns
- Pointer to project instance.
Definition at line 21 of file Project.h.
int SchedulingProblem::Project::get_res_count |
( |
| ) |
|
|
inline |
Returns number of resources.
Definition at line 27 of file Project.h.
int SchedulingProblem::Project::get_res_id |
( |
int |
res | ) |
|
|
inline |
Returns resource ID of the resource at the given index.
- Parameters
-
Definition at line 33 of file Project.h.
double SchedulingProblem::Project::get_salary |
( |
int |
res | ) |
|
|
inline |
Returns the hourly salary of the resource at the given index.
- Parameters
-
Definition at line 39 of file Project.h.
int SchedulingProblem::Project::size |
( |
| ) |
|
|
inline |
Returns the number of tasks in the project.
Definition at line 24 of file Project.h.
Task** SchedulingProblem::Project::tasks |
List of project tasks.
Definition at line 44 of file Project.h.
The documentation for this class was generated from the following files: