How can i create applications in EdgeCloudSim

Description

The “LoadGeneratorModel.java” file should be extended and in the “initializeModel()” abstract method have to implement with our own task generated model. The default load generator model is poission distribution method

package edu.boun.edgecloudsim.task_generator;

import ……;
…..
import ……;

public class extendedLoadGenerator extends LoadGeneratorModel
{
int taskTypeOfDevices[];

public extendedLoadGenerator (int numberOfMobileDevices, double simulationTime, String simScenario)
{
super(_numberOfMobileDevices, _simulationTime, _simScenario);
}

@Override
public void initializeModel()
{
.
.
. To be coded for our own load generator model
.
}
@Override
public int getTaskTypeOfDevice(int deviceId) {
return taskTypeOfDevices[deviceId];
}
}

Leave Comment

Your email address will not be published. Required fields are marked *

clear formSubmit