Merge pull request #17 from CagataySonmez/develop

bugfix/delay sensitivity value of the applications is added to SimSettings class
This commit is contained in:
Cagatay Sonmez 2019-02-08 08:03:37 -07:00 committed by GitHub
commit 6272193254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 4 deletions

View File

@ -4,6 +4,7 @@
<usage_percentage>30</usage_percentage> <usage_percentage>30</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection> <prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>5</poisson_interarrival> <poisson_interarrival>5</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>45</active_period> <active_period>45</active_period>
<idle_period>15</idle_period> <idle_period>15</idle_period>
<data_upload>1500</data_upload> <data_upload>1500</data_upload>
@ -18,6 +19,7 @@
<usage_percentage>20</usage_percentage> <usage_percentage>20</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection> <prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>30</poisson_interarrival> <poisson_interarrival>30</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>10</active_period> <active_period>10</active_period>
<idle_period>20</idle_period> <idle_period>20</idle_period>
<data_upload>1250</data_upload> <data_upload>1250</data_upload>
@ -32,6 +34,7 @@
<usage_percentage>20</usage_percentage> <usage_percentage>20</usage_percentage>
<prob_cloud_selection>40</prob_cloud_selection> <prob_cloud_selection>40</prob_cloud_selection>
<poisson_interarrival>60</poisson_interarrival> <poisson_interarrival>60</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>60</active_period> <active_period>60</active_period>
<idle_period>60</idle_period> <idle_period>60</idle_period>
<data_upload>2500</data_upload> <data_upload>2500</data_upload>
@ -46,6 +49,7 @@
<usage_percentage>30</usage_percentage> <usage_percentage>30</usage_percentage>
<prob_cloud_selection>15</prob_cloud_selection> <prob_cloud_selection>15</prob_cloud_selection>
<poisson_interarrival>7</poisson_interarrival> <poisson_interarrival>7</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>15</active_period> <active_period>15</active_period>
<idle_period>45</idle_period> <idle_period>45</idle_period>
<data_upload>25</data_upload> <data_upload>25</data_upload>

View File

@ -4,7 +4,7 @@
<usage_percentage>30</usage_percentage> <usage_percentage>30</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection> <prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>2</poisson_interarrival> <poisson_interarrival>2</poisson_interarrival>
<delay_sensitivity>0.9</delay_sensitivity> <delay_sensitivity>0</delay_sensitivity>
<active_period>40</active_period> <active_period>40</active_period>
<idle_period>20</idle_period> <idle_period>20</idle_period>
<data_upload>1500</data_upload> <data_upload>1500</data_upload>
@ -19,7 +19,7 @@
<usage_percentage>20</usage_percentage> <usage_percentage>20</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection> <prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>3</poisson_interarrival> <poisson_interarrival>3</poisson_interarrival>
<delay_sensitivity>0.7</delay_sensitivity> <delay_sensitivity>0</delay_sensitivity>
<active_period>45</active_period> <active_period>45</active_period>
<idle_period>90</idle_period> <idle_period>90</idle_period>
<data_upload>20</data_upload> <data_upload>20</data_upload>
@ -34,7 +34,7 @@
<usage_percentage>20</usage_percentage> <usage_percentage>20</usage_percentage>
<prob_cloud_selection>40</prob_cloud_selection> <prob_cloud_selection>40</prob_cloud_selection>
<poisson_interarrival>20</poisson_interarrival> <poisson_interarrival>20</poisson_interarrival>
<delay_sensitivity>0.1</delay_sensitivity> <delay_sensitivity>0</delay_sensitivity>
<active_period>60</active_period> <active_period>60</active_period>
<idle_period>120</idle_period> <idle_period>120</idle_period>
<data_upload>2500</data_upload> <data_upload>2500</data_upload>
@ -49,7 +49,7 @@
<usage_percentage>30</usage_percentage> <usage_percentage>30</usage_percentage>
<prob_cloud_selection>10</prob_cloud_selection> <prob_cloud_selection>10</prob_cloud_selection>
<poisson_interarrival>7</poisson_interarrival> <poisson_interarrival>7</poisson_interarrival>
<delay_sensitivity>0.3</delay_sensitivity> <delay_sensitivity>0</delay_sensitivity>
<active_period>30</active_period> <active_period>30</active_period>
<idle_period>45</idle_period> <idle_period>45</idle_period>
<data_upload>25</data_upload> <data_upload>25</data_upload>

View File

@ -4,6 +4,7 @@
<usage_percentage>30</usage_percentage> <usage_percentage>30</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection> <prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>2</poisson_interarrival> <poisson_interarrival>2</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>40</active_period> <active_period>40</active_period>
<idle_period>20</idle_period> <idle_period>20</idle_period>
<data_upload>1500</data_upload> <data_upload>1500</data_upload>
@ -18,6 +19,7 @@
<usage_percentage>20</usage_percentage> <usage_percentage>20</usage_percentage>
<prob_cloud_selection>20</prob_cloud_selection> <prob_cloud_selection>20</prob_cloud_selection>
<poisson_interarrival>3</poisson_interarrival> <poisson_interarrival>3</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>45</active_period> <active_period>45</active_period>
<idle_period>90</idle_period> <idle_period>90</idle_period>
<data_upload>200</data_upload> <data_upload>200</data_upload>
@ -32,6 +34,7 @@
<usage_percentage>20</usage_percentage> <usage_percentage>20</usage_percentage>
<prob_cloud_selection>40</prob_cloud_selection> <prob_cloud_selection>40</prob_cloud_selection>
<poisson_interarrival>20</poisson_interarrival> <poisson_interarrival>20</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>60</active_period> <active_period>60</active_period>
<idle_period>120</idle_period> <idle_period>120</idle_period>
<data_upload>2500</data_upload> <data_upload>2500</data_upload>
@ -46,6 +49,7 @@
<usage_percentage>30</usage_percentage> <usage_percentage>30</usage_percentage>
<prob_cloud_selection>10</prob_cloud_selection> <prob_cloud_selection>10</prob_cloud_selection>
<poisson_interarrival>7</poisson_interarrival> <poisson_interarrival>7</poisson_interarrival>
<delay_sensitivity>0</delay_sensitivity>
<active_period>30</active_period> <active_period>30</active_period>
<idle_period>45</idle_period> <idle_period>45</idle_period>
<data_upload>250</data_upload> <data_upload>250</data_upload>

View File

@ -479,6 +479,7 @@ public class SimSettings {
* [9] vm utilization on edge (%) * [9] vm utilization on edge (%)
* [10] vm utilization on cloud (%) * [10] vm utilization on cloud (%)
* [11] vm utilization on mobile (%) * [11] vm utilization on mobile (%)
* [12] delay sensitivity [0-1]
*/ */
public double[][] getTaskLookUpTable() public double[][] getTaskLookUpTable()
{ {
@ -538,6 +539,7 @@ public class SimSettings {
isElementPresent(appElement, "vm_utilization_on_edge"); isElementPresent(appElement, "vm_utilization_on_edge");
isElementPresent(appElement, "vm_utilization_on_cloud"); isElementPresent(appElement, "vm_utilization_on_cloud");
isElementPresent(appElement, "vm_utilization_on_mobile"); isElementPresent(appElement, "vm_utilization_on_mobile");
isElementPresent(appElement, "delay_sensitivity");
String taskName = appElement.getAttribute("name"); String taskName = appElement.getAttribute("name");
taskNames[i] = taskName; 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_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_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 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][0] = usage_percentage; //usage percentage [0-100]
taskLookUpTable[i][1] = prob_cloud_selection; //prob. of selecting cloud [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][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][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][11] = vm_utilization_on_mobile; //vm utilization on mobile vm [0-100]
taskLookUpTable[i][12] = delay_sensitivity; //delay_sensitivity [0-1]
} }
} catch (Exception e) { } catch (Exception e) {