1- finding which device to offlod is decided in edge orchestrator (EdgeOrchestrator), instead of deciding while generating task (LoadGeneratorModel) 2- file logging option is now read from config file 3- minor modification on the network delay calculation
35 lines
1.1 KiB
Java
35 lines
1.1 KiB
Java
/*
|
|
* Title: EdgeCloudSim - EdgeTask
|
|
*
|
|
* Description:
|
|
* A custom class used in Load Generator Model to store tasks information
|
|
*
|
|
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
|
|
* Copyright (c) 2017, Bogazici University, Istanbul, Turkey
|
|
*/
|
|
|
|
package edu.boun.edgecloudsim.utils;
|
|
|
|
import edu.boun.edgecloudsim.core.SimSettings;
|
|
import edu.boun.edgecloudsim.core.SimSettings.APP_TYPES;
|
|
|
|
public class EdgeTask {
|
|
public APP_TYPES taskType;
|
|
public double startTime;
|
|
public long length, inputFileSize, outputFileSize;
|
|
public int pesNumber;
|
|
public int mobileDeviceId;
|
|
|
|
public EdgeTask(int _mobileDeviceId, APP_TYPES _taskType, double _startTime, PoissonDistr[][] poissonRngList) {
|
|
mobileDeviceId=_mobileDeviceId;
|
|
startTime=_startTime;
|
|
taskType=_taskType;
|
|
|
|
inputFileSize = (long)poissonRngList[_taskType.ordinal()][0].sample();
|
|
outputFileSize =(long)poissonRngList[_taskType.ordinal()][1].sample();
|
|
length = (long)poissonRngList[_taskType.ordinal()][2].sample();
|
|
|
|
pesNumber = (int)SimSettings.getInstance().getTaskLookUpTable()[_taskType.ordinal()][8];
|
|
}
|
|
}
|