Commit 03e47ab0 authored by Anton Beloglazov's avatar Anton Beloglazov

Updated the javadocs

parent 96510cb0
......@@ -24,6 +24,14 @@ import org.cloudbus.cloudsim.core.predicates.PredicateType;
/**
* PowerDatacenter is a class that enables simulation of power-aware data centers.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
......
......@@ -7,6 +7,17 @@ import org.cloudbus.cloudsim.core.SimEvent;
/**
* The Class PowerDatacenterBroker.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerDatacenterBroker extends DatacenterBroker {
......
......@@ -23,6 +23,14 @@ import org.cloudbus.cloudsim.core.predicates.PredicateType;
* PowerDatacenterNonPowerAware is a class that represents a non-power aware data center in the
* context of power-aware simulations.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
......
......@@ -19,6 +19,14 @@ import org.cloudbus.cloudsim.provisioners.RamProvisioner;
/**
* PowerHost class enables simulation of power-aware hosts.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
......
......@@ -11,6 +11,17 @@ import org.cloudbus.cloudsim.util.MathUtil;
/**
* The Class PowerHostUtilizationHistory.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerHostUtilizationHistory extends PowerHost {
......
......@@ -12,6 +12,17 @@ import flanagan.analysis.Stat;
/**
* The Class PowerVm.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerVm extends Vm {
......
......@@ -13,8 +13,15 @@ import org.cloudbus.cloudsim.core.CloudSim;
/**
* The Class PowerVmAllocationPolicyAbstract.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since Jan 5, 2012
*/
public abstract class PowerVmAllocationPolicyAbstract extends VmAllocationPolicy {
......
......@@ -18,6 +18,16 @@ import org.cloudbus.cloudsim.util.ExecutionTimeMeasurer;
/**
* The Class PowerVmAllocationPolicyMigrationAbstract.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public abstract class PowerVmAllocationPolicyMigrationAbstract extends PowerVmAllocationPolicyAbstract {
......
......@@ -9,6 +9,16 @@ import org.cloudbus.cloudsim.util.MathUtil;
/**
* The Class PowerVmAllocationPolicyMigrationMad.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmAllocationPolicyMigrationInterQuartileRange extends
PowerVmAllocationPolicyMigrationAbstract {
......
......@@ -8,6 +8,16 @@ import org.cloudbus.cloudsim.util.MathUtil;
/**
* The Class PowerVmAllocationPolicyMigrationLocalRegressionRobust.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmAllocationPolicyMigrationLocalRegression extends PowerVmAllocationPolicyMigrationAbstract {
......
......@@ -7,6 +7,16 @@ import org.cloudbus.cloudsim.util.MathUtil;
/**
* The Class PowerVmAllocationPolicyMigrationLocalRegressionRobust.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmAllocationPolicyMigrationLocalRegressionRobust extends
PowerVmAllocationPolicyMigrationLocalRegression {
......
......@@ -9,6 +9,16 @@ import org.cloudbus.cloudsim.util.MathUtil;
/**
* The Class PowerVmAllocationPolicyMigrationMad.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmAllocationPolicyMigrationMedianAbsoluteDeviation extends
PowerVmAllocationPolicyMigrationAbstract {
......
......@@ -7,6 +7,16 @@ import org.cloudbus.cloudsim.Vm;
/**
* The Class PowerVmAllocationPolicyMigrationThresholds.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmAllocationPolicyMigrationStaticThreshold extends PowerVmAllocationPolicyMigrationAbstract {
......
......@@ -10,6 +10,14 @@ import org.cloudbus.cloudsim.Vm;
* This a simple class representing a simple VM allocation policy that does not perform any
* optimization of the VM allocation.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since Jan 5, 2012
*
......
......@@ -7,6 +7,16 @@ import org.cloudbus.cloudsim.Vm;
/**
* The Class PowerVmSelectionPolicy.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public abstract class PowerVmSelectionPolicy {
......
......@@ -9,6 +9,16 @@ import flanagan.analysis.Regression;
/**
* The Class PowerVmSelectionPolicyMaximumCorrelation.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmSelectionPolicyMaximumCorrelation extends PowerVmSelectionPolicy {
......
......@@ -6,6 +6,16 @@ import org.cloudbus.cloudsim.Vm;
/**
* The Class PowerVmSelectionPolicyMinimumMigrationTime.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmSelectionPolicyMinimumMigrationTime extends PowerVmSelectionPolicy {
......
......@@ -7,6 +7,16 @@ import org.cloudbus.cloudsim.core.CloudSim;
/**
* The Class PowerVmSelectionPolicyMinimumUtilization.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmSelectionPolicyMinimumUtilization extends PowerVmSelectionPolicy {
......
......@@ -7,6 +7,16 @@ import org.cloudbus.cloudsim.Vm;
/**
* The Class PowerVmSelectionPolicyRandomSelection.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerVmSelectionPolicyRandomSelection extends PowerVmSelectionPolicy {
......
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* 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-2010, The University of Melbourne, Australia
*/
......@@ -18,25 +17,36 @@ import org.cloudbus.cloudsim.lists.VmList;
/**
* PowerVmList is a collection of operations on lists of power-enabled VMs.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerVmList extends VmList {
/**
* Sort by cpu utilization.
*
*
* @param vmList the vm list
*/
public static <T extends Vm> void sortByCpuUtilization(List<T> vmList) {
Collections.sort(vmList, new Comparator<T>() {
@Override
public int compare(T a, T b) throws ClassCastException {
Double aUtilization = a.getTotalUtilizationOfCpuMips(CloudSim.clock());
Double bUtilization = b.getTotalUtilizationOfCpuMips(CloudSim.clock());
return bUtilization.compareTo(aUtilization);
}
Collections.sort(vmList, new Comparator<T>() {
@Override
public int compare(T a, T b) throws ClassCastException {
Double aUtilization = a.getTotalUtilizationOfCpuMips(CloudSim.clock());
Double bUtilization = b.getTotalUtilizationOfCpuMips(CloudSim.clock());
return bUtilization.compareTo(aUtilization);
}
});
}
......
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* 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-2010, The University of Melbourne, Australia
*/
package org.cloudbus.cloudsim.power.models;
/**
* The PowerModel interface needs to be implemented in order to
* provide a model of power consumption depending on utilization
* for system components.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
* The PowerModel interface needs to be implemented in order to provide a model of power consumption
* depending on utilization for system components.
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public interface PowerModel {
/**
* Get power consumption by the utilization percentage
* according to the power model.
*
* Get power consumption by the utilization percentage according to the power model.
*
* @param utilization the utilization
* @return power consumption
* @throws IllegalArgumentException the illegal argument exception
......
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* 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-2010, The University of Melbourne, Australia
*/
......@@ -10,9 +9,19 @@ package org.cloudbus.cloudsim.power.models;
/**
* The Class PowerModelCubic.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerModelCubic implements PowerModel {
......@@ -27,7 +36,7 @@ public class PowerModelCubic implements PowerModel {
/**
* Instantiates a new power model cubic.
*
*
* @param maxPower the max power
* @param staticPowerPercent the static power percent
*/
......@@ -37,7 +46,9 @@ public class PowerModelCubic implements PowerModel {
setConstant((maxPower - getStaticPower()) / Math.pow(100, 3));
}
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see gridsim.virtualization.power.PowerModel#getPower(double)
*/
@Override
......@@ -53,7 +64,7 @@ public class PowerModelCubic implements PowerModel {
/**
* Gets the max power.
*
*
* @return the max power
*/
protected double getMaxPower() {
......@@ -62,7 +73,7 @@ public class PowerModelCubic implements PowerModel {
/**
* Sets the max power.
*
*
* @param maxPower the new max power
*/
protected void setMaxPower(double maxPower) {
......@@ -71,7 +82,7 @@ public class PowerModelCubic implements PowerModel {
/**
* Gets the constant.
*
*
* @return the constant
*/
protected double getConstant() {
......@@ -80,7 +91,7 @@ public class PowerModelCubic implements PowerModel {
/**
* Sets the constant.
*
*
* @param constant the new constant
*/
protected void setConstant(double constant) {
......@@ -89,7 +100,7 @@ public class PowerModelCubic implements PowerModel {
/**
* Gets the static power.
*
*
* @return the static power
*/
protected double getStaticPower() {
......@@ -98,7 +109,7 @@ public class PowerModelCubic implements PowerModel {
/**
* Sets the static power.
*
*
* @param staticPower the new static power
*/
protected void setStaticPower(double staticPower) {
......
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* 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-2010, The University of Melbourne, Australia
*/
......@@ -10,9 +9,19 @@ package org.cloudbus.cloudsim.power.models;
/**
* The Class PowerModelLinear.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerModelLinear implements PowerModel {
......@@ -27,7 +36,7 @@ public class PowerModelLinear implements PowerModel {
/**
* Instantiates a new linear power model.
*
*
* @param maxPower the max power
* @param staticPowerPercent the static power percent
*/
......@@ -37,7 +46,9 @@ public class PowerModelLinear implements PowerModel {
setConstant((maxPower - getStaticPower()) / 100);
}
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see cloudsim.power.PowerModel#getPower(double)
*/
@Override
......@@ -53,7 +64,7 @@ public class PowerModelLinear implements PowerModel {
/**
* Gets the max power.
*
*
* @return the max power
*/
protected double getMaxPower() {
......@@ -62,7 +73,7 @@ public class PowerModelLinear implements PowerModel {
/**
* Sets the max power.
*
*
* @param maxPower the new max power
*/
protected void setMaxPower(double maxPower) {
......@@ -71,7 +82,7 @@ public class PowerModelLinear implements PowerModel {
/**
* Gets the constant.
*
*
* @return the constant
*/
protected double getConstant() {
......@@ -80,7 +91,7 @@ public class PowerModelLinear implements PowerModel {
/**
* Sets the constant.
*
*
* @param constant the new constant
*/
protected void setConstant(double constant) {
......@@ -89,7 +100,7 @@ public class PowerModelLinear implements PowerModel {
/**
* Gets the static power.
*
*
* @return the static power
*/
protected double getStaticPower() {
......@@ -98,7 +109,7 @@ public class PowerModelLinear implements PowerModel {
/**
* Sets the static power.
*
*
* @param staticPower the new static power
*/
protected void setStaticPower(double staticPower) {
......
package org.cloudbus.cloudsim.power.models;
/**
* The abstract class of power models created based on data
* from SPECpower benchmark: http://www.spec.org/power_ssj2008/
* The abstract class of power models created based on data from SPECpower benchmark:
* http://www.spec.org/power_ssj2008/
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public abstract class PowerModelSpecPower implements PowerModel {
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModel#getPower(double)
*/
@Override
......@@ -29,7 +41,7 @@ public abstract class PowerModelSpecPower implements PowerModel {
/**
* Gets the power data.
*
*
* @param index the index
* @return the power data
*/
......
......@@ -3,13 +3,25 @@ package org.cloudbus.cloudsim.power.models;
/**
* The power model of an HP ProLiant ML110 G3 (1 x [Pentium D930 3000 MHz, 2 cores], 4GB).
* http://www.spec.org/power_ssj2008/results/res2011q1/power_ssj2008-20110127-00342.html
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerModelSpecPowerHpProLiantMl110G3PentiumD930 extends PowerModelSpecPower {
/** The power. */
private final double[] power = { 105, 112, 118, 125, 131, 137, 147, 153, 157, 164, 169 };
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int)
*/
@Override
......
......@@ -3,13 +3,25 @@ package org.cloudbus.cloudsim.power.models;
/**
* The power model of an HP ProLiant ML110 G4 (1 x [Xeon 3040 1860 MHz, 2 cores], 4GB).
* http://www.spec.org/power_ssj2008/results/res2011q1/power_ssj2008-20110127-00342.html
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerModelSpecPowerHpProLiantMl110G4Xeon3040 extends PowerModelSpecPower {
/** The power. */
private final double[] power = { 86, 89.4, 92.6, 96, 99.5, 102, 106, 108, 112, 114, 117 };
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int)
*/
@Override
......
......@@ -3,13 +3,25 @@ package org.cloudbus.cloudsim.power.models;
/**
* The power model of an HP ProLiant ML110 G5 (1 x [Xeon 3075 2660 MHz, 2 cores], 4GB).
* http://www.spec.org/power_ssj2008/results/res2011q1/power_ssj2008-20110124-00339.html
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerModelSpecPowerHpProLiantMl110G5Xeon3075 extends PowerModelSpecPower {
/** The power. */
private final double[] power = { 93.7, 97, 101, 105, 110, 116, 121, 125, 129, 133, 135 };
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int)
*/
@Override
......
......@@ -3,13 +3,25 @@ package org.cloudbus.cloudsim.power.models;
/**
* The power model of an IBM server x3250 (1 x [Xeon X3470 2933 MHz, 4 cores], 8GB).
* http://www.spec.org/power_ssj2008/results/res2009q4/power_ssj2008-20091104-00213.html
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerModelSpecPowerIbmX3250XeonX3470 extends PowerModelSpecPower {
/** The power. */
private final double[] power = { 41.6, 46.7, 52.3, 57.9, 65.4, 73, 80.7, 89.5, 99.6, 105, 113 };
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int)
*/
@Override
......
......@@ -3,13 +3,25 @@ package org.cloudbus.cloudsim.power.models;
/**
* The power model of an IBM server x3250 (1 x [Xeon X3480 3067 MHz, 4 cores], 8GB).
* http://www.spec.org/power_ssj2008/results/res2010q4/power_ssj2008-20101001-00297.html
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerModelSpecPowerIbmX3250XeonX3480 extends PowerModelSpecPower {
/** The power. */
private final double[] power = { 42.3, 46.7, 49.7, 55.4, 61.8, 69.3, 76.1, 87, 96.1, 106, 113 };
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int)
*/
@Override
......
......@@ -3,13 +3,25 @@ package org.cloudbus.cloudsim.power.models;
/**
* The power model of an IBM server x3550 (2 x [Xeon X5670 2933 MHz, 6 cores], 12GB).
* http://www.spec.org/power_ssj2008/results/res2010q2/power_ssj2008-20100315-00239.html
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerModelSpecPowerIbmX3550XeonX5670 extends PowerModelSpecPower {
/** The power. */
private final double[] power = { 66, 107, 120, 131, 143, 156, 173, 191, 211, 229, 247 };
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int)
*/
@Override
......
......@@ -3,13 +3,25 @@ package org.cloudbus.cloudsim.power.models;
/**
* The power model of an IBM server x3550 (2 x [Xeon X5675 3067 MHz, 6 cores], 16GB).
* http://www.spec.org/power_ssj2008/results/res2011q2/power_ssj2008-20110406-00368.html
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
*/
public class PowerModelSpecPowerIbmX3550XeonX5675 extends PowerModelSpecPower {
/** The power. */
private final double[] power = { 58.4, 98, 109, 118, 128, 140, 153, 170, 189, 205, 222 };
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see org.cloudbus.cloudsim.power.models.PowerModelSpecPower#getPowerData(int)
*/
@Override
......
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* 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-2010, The University of Melbourne, Australia
*/
......@@ -10,9 +9,17 @@ package org.cloudbus.cloudsim.power.models;
/**
* The Class PowerModelSqrt.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerModelSqrt implements PowerModel {
......@@ -27,7 +34,7 @@ public class PowerModelSqrt implements PowerModel {
/**
* Instantiates a new power model sqrt.
*
*
* @param maxPower the max power
* @param staticPowerPercent the static power percent
*/
......@@ -37,7 +44,9 @@ public class PowerModelSqrt implements PowerModel {
setConstant((maxPower - getStaticPower()) / Math.sqrt(100));
}
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see cloudsim.power.PowerModel#getPower(double)
*/
@Override
......@@ -53,7 +62,7 @@ public class PowerModelSqrt implements PowerModel {
/**
* Gets the max power.
*
*
* @return the max power
*/
protected double getMaxPower() {
......@@ -62,7 +71,7 @@ public class PowerModelSqrt implements PowerModel {
/**
* Sets the max power.
*
*
* @param maxPower the new max power
*/
protected void setMaxPower(double maxPower) {
......@@ -71,7 +80,7 @@ public class PowerModelSqrt implements PowerModel {
/**
* Gets the constant.
*
*
* @return the constant
*/
protected double getConstant() {
......@@ -80,7 +89,7 @@ public class PowerModelSqrt implements PowerModel {
/**
* Sets the constant.
*
*
* @param constant the new constant
*/
protected void setConstant(double constant) {
......@@ -89,7 +98,7 @@ public class PowerModelSqrt implements PowerModel {
/**
* Gets the static power.
*
*
* @return the static power
*/
protected double getStaticPower() {
......@@ -98,7 +107,7 @@ public class PowerModelSqrt implements PowerModel {
/**
* Sets the static power.
*
*
* @param staticPower the new static power
*/
protected void setStaticPower(double staticPower) {
......
/*
* Title: CloudSim Toolkit
* Description: CloudSim (Cloud Simulation) Toolkit for Modeling and Simulation of Clouds
* Licence: GPL - http://www.gnu.org/copyleft/gpl.html
*
* 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-2010, The University of Melbourne, Australia
*/
......@@ -10,9 +9,17 @@ package org.cloudbus.cloudsim.power.models;
/**
* The Class PowerModelSquare.
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*
* If you are using any algorithms, policies or workload included in the power package, please cite
* the following paper:
*
* Anton Beloglazov, and Rajkumar Buyya, "Optimal Online Deterministic Algorithms and Adaptive
* Heuristics for Energy and Performance Efficient Dynamic Consolidation of Virtual Machines in
* Cloud Data Centers", Concurrency and Computation: Practice and Experience, ISSN: 1532-0626, Wiley
* Press, New York, USA, 2011, DOI: 10.1002/cpe.1867
*
* @author Anton Beloglazov
* @since CloudSim Toolkit 2.0
*/
public class PowerModelSquare implements PowerModel {
......@@ -27,7 +34,7 @@ public class PowerModelSquare implements PowerModel {
/**
* Instantiates a new power model square.
*
*
* @param maxPower the max power
* @param staticPowerPercent the static power percent
*/
......@@ -37,7 +44,9 @@ public class PowerModelSquare implements PowerModel {
setConstant((maxPower - getStaticPower()) / Math.pow(100, 2));
}
/* (non-Javadoc)
/*
* (non-Javadoc)
*
* @see gridsim.virtualization.power.PowerModel#getPower(double)
*/
@Override
......@@ -53,7 +62,7 @@ public class PowerModelSquare implements PowerModel {
/**
* Gets the max power.
*
*
* @return the max power
*/
protected double getMaxPower() {
......@@ -62,7 +71,7 @@ public class PowerModelSquare implements PowerModel {
/**
* Sets the max power.
*
*
* @param maxPower the new max power
*/
protected void setMaxPower(double maxPower) {
......@@ -71,7 +80,7 @@ public class PowerModelSquare implements PowerModel {
/**
* Gets the constant.
*
*
* @return the constant
*/
protected double getConstant() {
......@@ -80,7 +89,7 @@ public class PowerModelSquare implements PowerModel {
/**
* Sets the constant.
*
*
* @param constant the new constant
*/
protected void setConstant(double constant) {
......@@ -89,7 +98,7 @@ public class PowerModelSquare implements PowerModel {
/**
* Gets the static power.
*
*
* @return the static power
*/
protected double getStaticPower() {
......@@ -98,7 +107,7 @@ public class PowerModelSquare implements PowerModel {
/**
* Sets the static power.
*
*
* @param staticPower the new static power
*/
protected void setStaticPower(double staticPower) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment