-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPowerVmAllocationPolicyPredictionUsingCALA.java
More file actions
48 lines (35 loc) · 1.23 KB
/
Copy pathPowerVmAllocationPolicyPredictionUsingCALA.java
File metadata and controls
48 lines (35 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* Copyright (c) 2009-2012, The University of Melbourne, Australia
*/
package MyProject;
import java.util.List;
import org.cloudbus.cloudsim.Host;
import org.cloudbus.cloudsim.power.PowerVmSelectionPolicy;
import org.cloudbus.cloudsim.power.PowerVmSelectionPolicyMinimumMigrationTime;
/* @author Anton Beloglazov
* @since CloudSim Toolkit 3.0
*/
public class PowerVmAllocationPolicyPredictionUsingCALA extends PowerVmAllocationPolicyMigrationAbstract {
/**
* @param hostList the host list
* @param vmSelectionPolicy the vm selection policy
*/
public PowerVmAllocationPolicyPredictionUsingCALA(
List<? extends Host> hostList,
PowerVmSelectionPolicy vmSelectionPolicy)
{
super(hostList, (PowerVmSelectionPolicy) vmSelectionPolicy);
setPredictionThreshold(predictionThreshold);
}
private double predictionThreshold = 0.25;
protected double getPredictionThreshold() {
return predictionThreshold;
}
protected void setPredictionThreshold(double predictionThreshold) {
this.predictionThreshold = predictionThreshold;
}
}