All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudbus.cloudsim.power.models.PowerModelSquare Maven / Gradle / Ivy

Go to download

CloudSim Plus: A modern, highly extensible and easier-to-use Java 8 Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services

There is a newer version: 8.0.0
Show newest version
/*
 * 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 square 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 PowerModelSquare extends PowerModelSimple { /** * Instantiates a new power model square. * * @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 PowerModelSquare(final double maxPower, final double staticPowerPercent) { super(maxPower, staticPowerPercent, utilizationPercent -> Math.pow(utilizationPercent, 2)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy