Skip to content

Commit

Permalink
Fix documentation issue in UtilizationModelDynamicExample.
Browse files Browse the repository at this point in the history
Signed-off-by: Manoel Campos <manoelcampos@gmail.com>
  • Loading branch information
manoelcampos committed Nov 19, 2018
1 parent d534fe5 commit 5165b87
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,13 @@ private Cloudlet createCloudlet(DatacenterBroker broker, Vm vm) {
long outputSize = 300; //Size (in bytes) after execution
long numberOfCpuCores = vm.getNumberOfPes(); //cloudlet will use all the VM's CPU cores

//Defines how RAM and Bandwidth resources are used
//Defines that the Cloudlet will use all the VM's RAM and Bandwidth.
UtilizationModel utilizationFull = new UtilizationModelFull();
/*Defines that the Cloudlet will use just 50% of VM CPU capacity all the time.*/
UtilizationModel utilizationHalfCapacity = new UtilizationModelDynamic( 0.5);

/* Defines that the Cloudlet will use just 50% of the vPEs' MIPS capacity.
* Virtual PEs or simply vPEs are the PEs allocated to a given VM,
* which will be used to run Cloudlets.*/
UtilizationModel utilizationHalfCapacity = new UtilizationModelDynamic(0.5);
Cloudlet cloudlet
= new CloudletSimple(
cloudletList.size(), length, numberOfCpuCores)
Expand Down

0 comments on commit 5165b87

Please sign in to comment.