org.cloudbus.cloudsim.power.models.PowerModelCubic Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsim-plus Show documentation
Show all versions of cloudsim-plus Show documentation
CloudSim Plus: A modern, highly extensible and easier-to-use Java 8 Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services
/*
* 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 org.cloudbus.cloudsim.power.models;
/**
* Implements a power model where the power consumption is the cube of the resource usage.
*
* If you are using any algorithms, policies or workload included in the power package please cite
* the following paper:
*
*
*
* @author Anton Beloglazov
* @author Manoel Campos da Silva Filho
* @since CloudSim Toolkit 2.0
*/
public class PowerModelCubic extends PowerModelSimple {
/**
* Instantiates a new power model cubic.
*
* @param maxPower the max power that can be consumed in Watt-Second (Ws).
* @param staticPowerPercent the static power usage percentage between 0 and 1.
*/
public PowerModelCubic(final double maxPower, final double staticPowerPercent) {
super(maxPower, staticPowerPercent, utilizationPercent -> Math.pow(utilizationPercent, 3));
}
}