Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How do i can change NetworkModel in EdgeCloudSim?

Description

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.

Sample Code

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
}
.
.
}