Commit dbf5b821 authored by Anton Beloglazov's avatar Anton Beloglazov

Fixed the DVFS example for a random workload

parent 8297be13
...@@ -3,20 +3,26 @@ package org.cloudbus.cloudsim.examples.power.random; ...@@ -3,20 +3,26 @@ package org.cloudbus.cloudsim.examples.power.random;
import java.io.IOException; import java.io.IOException;
/** /**
* A simulation of a heterogeneous non-power aware data center: all hosts consume maximum power all * A simulation of a heterogeneous power aware data center that only applied DVFS, but no dynamic
* the time. * optimization of the VM allocation. The adjustment of the hosts' power consumption according to
* their CPU utilization is happening in the PowerDatacenter class.
*
* @author Anton Beloglazov
* @since Jan 5, 2012
*/ */
public class Dvfs extends RandomRunnerAbstract { public class Dvfs extends RandomRunnerAbstract {
/** /**
* @param enableOutput * Instantiates a new dvfs.
* @param outputToFile *
* @param inputFolder * @param enableOutput the enable output
* @param outputFolder * @param outputToFile the output to file
* @param workload * @param inputFolder the input folder
* @param vmAllocationPolicy * @param outputFolder the output folder
* @param vmSelectionPolicy * @param workload the workload
* @param parameter * @param vmAllocationPolicy the vm allocation policy
* @param vmSelectionPolicy the vm selection policy
* @param parameter the parameter
*/ */
public Dvfs( public Dvfs(
boolean enableOutput, boolean enableOutput,
...@@ -39,10 +45,10 @@ public class Dvfs extends RandomRunnerAbstract { ...@@ -39,10 +45,10 @@ public class Dvfs extends RandomRunnerAbstract {
} }
/** /**
* Creates main() to run this example. * The main method.
* *
* @param args the args * @param args the arguments
* @throws IOException * @throws IOException Signals that an I/O exception has occurred.
*/ */
public static void main(String[] args) throws IOException { public static void main(String[] args) throws IOException {
boolean enableOutput = true; boolean enableOutput = true;
......
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