MS-RCPSP
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SchedulingProblem::Project Class Reference

Singleton representation of project in the scheduling problem. More...

#include <Project.h>

Collaboration diagram for SchedulingProblem::Project:
Collaboration graph
[legend]

Public Member Functions

int size ()
 
int get_res_count ()
 
int get_res_id (int res)
 
double get_salary (int res)
 

Static Public Member Functions

static void create (int _n, Task **_tasks, int _res_count, int *_res_id, double *_res_sal)
 
static std::shared_ptr< Projectget ()
 

Public Attributes

Task ** tasks
 

Detailed Description

Singleton representation of project in the scheduling problem.

Definition at line 13 of file Project.h.

Member Function Documentation

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
resindex of the resource

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
resindex of the resource

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.

Member Data Documentation

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: