Sample application 4 which is used in IEEE TNSM journal paper is published.
Important Notes: * EdgeTask class name is updated as TaskProperty. You may need to modify your existing application's source code if you use EdgeTask class in your application.
This commit is contained in:
@@ -18,7 +18,7 @@ import java.util.ArrayList;
|
||||
import org.apache.commons.math3.distribution.ExponentialDistribution;
|
||||
|
||||
import edu.boun.edgecloudsim.core.SimSettings;
|
||||
import edu.boun.edgecloudsim.utils.EdgeTask;
|
||||
import edu.boun.edgecloudsim.utils.TaskProperty;
|
||||
import edu.boun.edgecloudsim.utils.SimLogger;
|
||||
import edu.boun.edgecloudsim.utils.SimUtils;
|
||||
|
||||
@@ -30,7 +30,7 @@ public class IdleActiveLoadGenerator extends LoadGeneratorModel{
|
||||
|
||||
@Override
|
||||
public void initializeModel() {
|
||||
taskList = new ArrayList<EdgeTask>();
|
||||
taskList = new ArrayList<TaskProperty>();
|
||||
|
||||
//exponential number generator for file input size, file output size and task length
|
||||
ExponentialDistribution[][] expRngList = new ExponentialDistribution[SimSettings.getInstance().getTaskLookUpTable().length][3];
|
||||
@@ -90,7 +90,7 @@ public class IdleActiveLoadGenerator extends LoadGeneratorModel{
|
||||
continue;
|
||||
}
|
||||
|
||||
taskList.add(new EdgeTask(i,randomTaskType, virtualTime, expRngList));
|
||||
taskList.add(new TaskProperty(i,randomTaskType, virtualTime, expRngList));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,10 +15,10 @@ package edu.boun.edgecloudsim.task_generator;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import edu.boun.edgecloudsim.utils.EdgeTask;
|
||||
import edu.boun.edgecloudsim.utils.TaskProperty;
|
||||
|
||||
public abstract class LoadGeneratorModel {
|
||||
protected List<EdgeTask> taskList;
|
||||
protected List<TaskProperty> taskList;
|
||||
protected int numberOfMobileDevices;
|
||||
protected double simulationTime;
|
||||
protected String simScenario;
|
||||
@@ -33,7 +33,7 @@ public abstract class LoadGeneratorModel {
|
||||
* each task has a virtual start time
|
||||
* it will be used while generating task
|
||||
*/
|
||||
public List<EdgeTask> getTaskList() {
|
||||
public List<TaskProperty> getTaskList() {
|
||||
return taskList;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user