The mobile processing unit support as well as a sample application are added.
The mobile processing units are simulated via CloudSim. It is assumed that the mobile devices operate Hosts and VMs like a server. Therefore, the classes located in the mobile_processing_unit package have a similar naming convention to the other Cloud and Edge components.
This commit is contained in:
@@ -36,6 +36,8 @@ public class CpuUtilizationModel_Custom implements UtilizationModel {
|
||||
int index = 9;
|
||||
if(task.getAssociatedDatacenterId() == SimSettings.CLOUD_DATACENTER_ID)
|
||||
index = 10;
|
||||
else if(task.getAssociatedDatacenterId() == SimSettings.MOBILE_DATACENTER_ID)
|
||||
index = 11;
|
||||
|
||||
return SimSettings.getInstance().getTaskLookUpTable()[task.getTaskType()][index];
|
||||
}
|
||||
@@ -50,6 +52,8 @@ public class CpuUtilizationModel_Custom implements UtilizationModel {
|
||||
index = 9;
|
||||
else if(_vmType == SimSettings.VM_TYPES.CLOUD_VM)
|
||||
index = 10;
|
||||
else if(_vmType == SimSettings.VM_TYPES.MOBILE_VM)
|
||||
index = 11;
|
||||
else{
|
||||
SimLogger.printLine("Unknown VM Type! Terminating simulation...");
|
||||
System.exit(0);
|
||||
|
||||
Reference in New Issue
Block a user