-
Notifications
You must be signed in to change notification settings - Fork 0
/
Stage.hpp
41 lines (31 loc) · 1.03 KB
/
Stage.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#ifndef __STAGE_HPP__
#define __STAGE_HPP__
#include <vector>
#include <iostream>
class Stage {
public:
typedef long int time_instant;
typedef unsigned int id_type;
void set_max (const std::vector<time_instant>& v);
void set_min (const std::vector<time_instant>& v);
void set_avg (const std::vector<time_instant>& v);
void setavg(const unsigned long int a) {avg = a;};
void set_dependencies(const std::vector<id_type> v);
const id_type get_ID() const {return id_Stage;}
time_instant get_min() const {return min;}
time_instant get_max() const {return max;}
time_instant get_avg() const {return avg;}
unsigned int get_n_tasks() const {return n_tasks;}
const std::vector<id_type>& get_depend() const {return dependencies;}
Stage (id_type id, unsigned int ntasks): id_Stage(id), n_tasks(ntasks){}
void prints() const;
Stage& operator=(const Stage& stage);
private:
id_type id_Stage;
time_instant max;
time_instant min;
time_instant avg;
unsigned int n_tasks;
std::vector<id_type> dependencies;
};
#endif