-
Notifications
You must be signed in to change notification settings - Fork 0
/
NewCloudlet.java
45 lines (31 loc) · 1.25 KB
/
NewCloudlet.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package org.cloudbus.cloudsim.examples;
import org.cloudbus.cloudsim.Cloudlet;
import org.cloudbus.cloudsim.UtilizationModel;
public class NewCloudlet extends Cloudlet {
private int cloudlet_priority=0;
public NewCloudlet(int cloudletId, long cloudletLength, int pesNumber, long
cloudletFileSize,
long cloudletOutputSize, UtilizationModel utilizationModelCpu,
UtilizationModel utilizationModelRam,
UtilizationModel utilizationModelBw) {
super(cloudletId, cloudletLength, pesNumber, cloudletFileSize,
cloudletOutputSize, utilizationModelCpu,
utilizationModelRam, utilizationModelBw);
// TODO Auto-generated constructor stub
}
public NewCloudlet(int cloudletId, long cloudletLength, int pesNumber, long
cloudletFileSize, long cloudletOutputSize, UtilizationModel utilizationModelCpu,
UtilizationModel utilizationModelRam, UtilizationModel utilizationModelBw, int
priority) {
super(cloudletId, cloudletLength, pesNumber, cloudletFileSize,
cloudletOutputSize, utilizationModelCpu, utilizationModelRam,
utilizationModelBw);
this.cloudlet_priority = priority;
}
public int getCloudlet_priority() {
return cloudlet_priority;
}
public void setCloudlet_priority(int cloudlet_priority) {
this.cloudlet_priority = cloudlet_priority;
}
}