diff --git a/scripts/sample_app1/config/applications.xml b/scripts/sample_app1/config/applications.xml
index 90d515b..20c186e 100644
--- a/scripts/sample_app1/config/applications.xml
+++ b/scripts/sample_app1/config/applications.xml
@@ -4,6 +4,7 @@
30
20
5
+ 0
45
15
1500
@@ -18,6 +19,7 @@
20
20
30
+ 0
10
20
1250
@@ -32,6 +34,7 @@
20
40
60
+ 0
60
60
2500
@@ -46,6 +49,7 @@
30
15
7
+ 0
15
45
25
diff --git a/scripts/sample_app2/config/applications.xml b/scripts/sample_app2/config/applications.xml
index d72e530..2d47b0d 100644
--- a/scripts/sample_app2/config/applications.xml
+++ b/scripts/sample_app2/config/applications.xml
@@ -4,7 +4,7 @@
30
20
2
- 0.9
+ 0
40
20
1500
@@ -19,7 +19,7 @@
20
20
3
- 0.7
+ 0
45
90
20
@@ -34,7 +34,7 @@
20
40
20
- 0.1
+ 0
60
120
2500
@@ -49,7 +49,7 @@
30
10
7
- 0.3
+ 0
30
45
25
diff --git a/scripts/sample_app3/config/applications.xml b/scripts/sample_app3/config/applications.xml
index daf7cfd..6ca973c 100644
--- a/scripts/sample_app3/config/applications.xml
+++ b/scripts/sample_app3/config/applications.xml
@@ -4,6 +4,7 @@
30
20
2
+ 0
40
20
1500
@@ -18,6 +19,7 @@
20
20
3
+ 0
45
90
200
@@ -32,6 +34,7 @@
20
40
20
+ 0
60
120
2500
@@ -46,6 +49,7 @@
30
10
7
+ 0
30
45
250
diff --git a/src/edu/boun/edgecloudsim/core/SimSettings.java b/src/edu/boun/edgecloudsim/core/SimSettings.java
index 7d0dc5b..42a03d0 100644
--- a/src/edu/boun/edgecloudsim/core/SimSettings.java
+++ b/src/edu/boun/edgecloudsim/core/SimSettings.java
@@ -479,6 +479,7 @@ public class SimSettings {
* [9] vm utilization on edge (%)
* [10] vm utilization on cloud (%)
* [11] vm utilization on mobile (%)
+ * [12] delay sensitivity [0-1]
*/
public double[][] getTaskLookUpTable()
{
@@ -538,6 +539,7 @@ public class SimSettings {
isElementPresent(appElement, "vm_utilization_on_edge");
isElementPresent(appElement, "vm_utilization_on_cloud");
isElementPresent(appElement, "vm_utilization_on_mobile");
+ isElementPresent(appElement, "delay_sensitivity");
String taskName = appElement.getAttribute("name");
taskNames[i] = taskName;
@@ -554,6 +556,7 @@ public class SimSettings {
double vm_utilization_on_edge = Double.parseDouble(appElement.getElementsByTagName("vm_utilization_on_edge").item(0).getTextContent());
double vm_utilization_on_cloud = Double.parseDouble(appElement.getElementsByTagName("vm_utilization_on_cloud").item(0).getTextContent());
double vm_utilization_on_mobile = Double.parseDouble(appElement.getElementsByTagName("vm_utilization_on_mobile").item(0).getTextContent());
+ double delay_sensitivity = Double.parseDouble(appElement.getElementsByTagName("delay_sensitivity").item(0).getTextContent());
taskLookUpTable[i][0] = usage_percentage; //usage percentage [0-100]
taskLookUpTable[i][1] = prob_cloud_selection; //prob. of selecting cloud [0-100]
@@ -567,6 +570,7 @@ public class SimSettings {
taskLookUpTable[i][9] = vm_utilization_on_edge; //vm utilization on edge vm [0-100]
taskLookUpTable[i][10] = vm_utilization_on_cloud; //vm utilization on cloud vm [0-100]
taskLookUpTable[i][11] = vm_utilization_on_mobile; //vm utilization on mobile vm [0-100]
+ taskLookUpTable[i][12] = delay_sensitivity; //delay_sensitivity [0-1]
}
} catch (Exception e) {