-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkShop.cpp
More file actions
41 lines (35 loc) · 1.14 KB
/
Copy pathWorkShop.cpp
File metadata and controls
41 lines (35 loc) · 1.14 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
#include "WorkShop.h"
WorkShop::WorkShop()
{
for (int i = 0;i < muti_source;i++){
source[i] = new Source();
this->add(source[i]);
}
for (int i = 0;i < muti_sink;i++){
sink[i] = new Sink();
this->add(sink[i]);
}
for (int i = 0;i < muti_taskManagementModel;i++){
taskManagementModel[i] = new TaskManagementModel();
this->add(taskManagementModel[i]);
}
for (int i = 0;i < muti_processCouplingModel;i++){
processCouplingModel[i] = new ProcessCouplingModel();
this->add(processCouplingModel[i]);
}
for(int i=0;i<muti_source;i++){
for(int j=0;j<muti_taskManagementModel;j++){
this->couple(source[i],source[i]->out1->Id,taskManagementModel[j],taskManagementModel[j]->in1->Id);
}
}
for(int i=0;i<muti_sink;i++){
for(int j=0;j<muti_processCouplingModel;j++){
this->couple(sink[i],sink[i]->out1->Id,processCouplingModel[j],processCouplingModel[j]->in2->Id);
}
}
for(int i=0;i<muti_taskManagementModel;i++){
for(int j=0;j<muti_processCouplingModel;j++){
this->couple(taskManagementModel[i],taskManagementModel[i]->out1->Id,processCouplingModel[j],processCouplingModel[j]->in2->Id);
}
}
}