In EdgeCloudSim, Single Server Queue(M/M/1 Queue) model is used as default network model. The default network model can be changed by extending “NetworkModel.java”abstract file.
package edu.boun.edgecloudsim.network;
import ……;
import ……;
public class newNetworkModel extends NetworkModel
{
protected int numberOfMobileDevices;
protected String simScenario;
public newNetworkModel (int numberOfMobileDevices, String simScenario)
{
super(numberOfMobileDevices, simScenario);
}
@Override
public void initialize()
{ .
.
. initializes custom network model
.
.
}
@Override
public double getUploadDelay(int sourceDeviceId, int destDeviceId, Task task)
{
.
. calculates the upload delay from source to destination .
. device
}
@Override
public double getDownloadDelay(int sourceDeviceId, int destDeviceId, Task task)
{
.
. calculates the download delay from source to destination
. device
}
.
.
}