bugfix/delay sensitivity value of the applications is added to SimSettings class
delay sensitivity value was started to be used in the sample_app4. However this value is forgotten to read from the application configuration file. SimSettings class is now updated in a way to consider the delay sensitivity value of the applications.
This commit is contained in:
parent
9412796b22
commit
1e91364305
@ -4,6 +4,7 @@
|
||||
<usage_percentage>30</usage_percentage>
|
||||
<prob_cloud_selection>20</prob_cloud_selection>
|
||||
<poisson_interarrival>5</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>45</active_period>
|
||||
<idle_period>15</idle_period>
|
||||
<data_upload>1500</data_upload>
|
||||
@ -18,6 +19,7 @@
|
||||
<usage_percentage>20</usage_percentage>
|
||||
<prob_cloud_selection>20</prob_cloud_selection>
|
||||
<poisson_interarrival>30</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>10</active_period>
|
||||
<idle_period>20</idle_period>
|
||||
<data_upload>1250</data_upload>
|
||||
@ -32,6 +34,7 @@
|
||||
<usage_percentage>20</usage_percentage>
|
||||
<prob_cloud_selection>40</prob_cloud_selection>
|
||||
<poisson_interarrival>60</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>60</active_period>
|
||||
<idle_period>60</idle_period>
|
||||
<data_upload>2500</data_upload>
|
||||
@ -46,6 +49,7 @@
|
||||
<usage_percentage>30</usage_percentage>
|
||||
<prob_cloud_selection>15</prob_cloud_selection>
|
||||
<poisson_interarrival>7</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>15</active_period>
|
||||
<idle_period>45</idle_period>
|
||||
<data_upload>25</data_upload>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<usage_percentage>30</usage_percentage>
|
||||
<prob_cloud_selection>20</prob_cloud_selection>
|
||||
<poisson_interarrival>2</poisson_interarrival>
|
||||
<delay_sensitivity>0.9</delay_sensitivity>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>40</active_period>
|
||||
<idle_period>20</idle_period>
|
||||
<data_upload>1500</data_upload>
|
||||
@ -19,7 +19,7 @@
|
||||
<usage_percentage>20</usage_percentage>
|
||||
<prob_cloud_selection>20</prob_cloud_selection>
|
||||
<poisson_interarrival>3</poisson_interarrival>
|
||||
<delay_sensitivity>0.7</delay_sensitivity>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>45</active_period>
|
||||
<idle_period>90</idle_period>
|
||||
<data_upload>20</data_upload>
|
||||
@ -34,7 +34,7 @@
|
||||
<usage_percentage>20</usage_percentage>
|
||||
<prob_cloud_selection>40</prob_cloud_selection>
|
||||
<poisson_interarrival>20</poisson_interarrival>
|
||||
<delay_sensitivity>0.1</delay_sensitivity>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>60</active_period>
|
||||
<idle_period>120</idle_period>
|
||||
<data_upload>2500</data_upload>
|
||||
@ -49,7 +49,7 @@
|
||||
<usage_percentage>30</usage_percentage>
|
||||
<prob_cloud_selection>10</prob_cloud_selection>
|
||||
<poisson_interarrival>7</poisson_interarrival>
|
||||
<delay_sensitivity>0.3</delay_sensitivity>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>30</active_period>
|
||||
<idle_period>45</idle_period>
|
||||
<data_upload>25</data_upload>
|
||||
|
@ -4,6 +4,7 @@
|
||||
<usage_percentage>30</usage_percentage>
|
||||
<prob_cloud_selection>20</prob_cloud_selection>
|
||||
<poisson_interarrival>2</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>40</active_period>
|
||||
<idle_period>20</idle_period>
|
||||
<data_upload>1500</data_upload>
|
||||
@ -18,6 +19,7 @@
|
||||
<usage_percentage>20</usage_percentage>
|
||||
<prob_cloud_selection>20</prob_cloud_selection>
|
||||
<poisson_interarrival>3</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>45</active_period>
|
||||
<idle_period>90</idle_period>
|
||||
<data_upload>200</data_upload>
|
||||
@ -32,6 +34,7 @@
|
||||
<usage_percentage>20</usage_percentage>
|
||||
<prob_cloud_selection>40</prob_cloud_selection>
|
||||
<poisson_interarrival>20</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>60</active_period>
|
||||
<idle_period>120</idle_period>
|
||||
<data_upload>2500</data_upload>
|
||||
@ -46,6 +49,7 @@
|
||||
<usage_percentage>30</usage_percentage>
|
||||
<prob_cloud_selection>10</prob_cloud_selection>
|
||||
<poisson_interarrival>7</poisson_interarrival>
|
||||
<delay_sensitivity>0</delay_sensitivity>
|
||||
<active_period>30</active_period>
|
||||
<idle_period>45</idle_period>
|
||||
<data_upload>250</data_upload>
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user