-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivity.h
More file actions
56 lines (46 loc) · 1.09 KB
/
activity.h
File metadata and controls
56 lines (46 loc) · 1.09 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef ACTIVITY_H
#define ACTIVITY_H
#include "QString"
class Activity
{
public:
Activity(QString name ,int duration, int resources1, int resources2, QString precedence);
int free_float();
int total_float();
void set_ES(int ES);
void set_LF(int LF);
void append_successor(QString input);
bool forward_checked_value();
bool backward_checked_value();
QString get_precedence();
QString get_successors();
QString get_name();
int get_EF();
int get_LS();
int get_LF();
int get_duration();
int get_rp_start();
int get_rp_finish();
int get_resource1();
int get_resource2();
QString get_information();
void set_rpStart(int start);
void resource_checked();
bool resource_checked_value();
void check_forward();
void check_backward();
private:
QString name;
int ES,EF,LS,LF;
int duration;
int resources1;
int resources2;
QString precedence;
QString successors;
bool forward_checked;
bool backward_checked;
bool rp_done;
int rp_start;
int rp_finish;
};
#endif // ACTIVITY_H