-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess_module.h
40 lines (35 loc) · 959 Bytes
/
process_module.h
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
///////////////////////////////////////////////////////
// System Software Experiment 3.
// Project 2 : Mini Factory.
// written by Youngdae Kwon.
// MIT license.
///////////////////////////////////////////////////////
#ifndef __LIB_PROCESS_MODULE_H__
#define __LIB_PROCESS_MODULE_H__
#include "setup.h"
using namespace std;
class Process : public Schedule
{
public:
// variables for run()
int numEntity;
int numEntityCreated;
int startTimeToProduceEntity;
int timePeriodRemakingEntity;
bool bRunFlag;
// variables for stats
// member methods declaration.
Process();
Process(string str);
Process(int num);
void setType(string str);
void setNumEntity(int num);
void setStartTimeToProduceEntity(int num);
void setTimePeriodRemakingEntity(int num);
string getType();
int getNumEntity();
int getStartTimeToProduceEntity();
int getTimePeriodRemakingEntity();
Entity createEntity(vector<Schedule>& vSchedule);
};
#endif