-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCacheType.java
29 lines (27 loc) · 1.11 KB
/
CacheType.java
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
public abstract class CacheType {
public static void load(FileRead F, Proces[] Procese) {
for(int i = 0; i < F.NumberOfEvents; i++) {
if(F.ProccesName[i].equals("Fibonacci")) {
Procese[i] = new Fibonacci(F.Weight[i], "Fibonacci");
}
if(F.ProccesName[i].equals("CheckPrime")) {
Procese[i] = new CheckPrime(F.Weight[i], "CheckPrime");
}
if(F.ProccesName[i].equals("NextPrime")) {
Procese[i] = new NextPrime(F.Weight[i], "NextPrime");
}
if(F.ProccesName[i].equals("Sqrt")) {
Procese[i] = new Sqrt(F.Weight[i], "Sqrt");
}
if(F.ProccesName[i].equals("Cube")) {
Procese[i] = new Cube(F.Weight[i], "Cube");
}
if(F.ProccesName[i].equals("Square")) {
Procese[i] = new Square(F.Weight[i], "Square");
}
if(F.ProccesName[i].equals("Factorial")) {
Procese[i] = new Factorial(F.Weight[i], "Factorial");
}
}
}
}