org.cloudbus.cloudsim.power.models.PowerModelLinear 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;
/**
* A power model where the power consumption is linear to 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 PowerModelLinear extends PowerModelSimple {
/**
* Instantiates a linear power model.
*
* @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 PowerModelLinear(final double maxPower, final double staticPowerPercent) {
/** Calls the super constructor passing a {@link #powerFunction}
* that indicates the base power consumption is linear to CPU utilization.*/
super(maxPower, staticPowerPercent, utilizationPercent -> utilizationPercent);
}
}