Package org.cloudsimplus.builders
Class CloudletBuilder
java.lang.Object
org.cloudsimplus.builders.CloudletBuilder
- All Implemented Interfaces:
Builder
A Builder class to create
Cloudlet
objects.- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
ConstructorDescriptionCloudletBuilder
(BrokerBuilderDecorator brokerBuilder, DatacenterBrokerSimple broker) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int amount) create
(int amount, int initialId) createAndSubmit
(int amount) createAndSubmit
(int amount, int initialId) long
long
long
int
getPes()
void
setCloudletCreationFunction
(BiFunction<Long, Integer, Cloudlet> cloudletCreationFunction) Sets aBiFunction
used to create Cloudlets.setFileSize
(long defaultFileSize) setLength
(long defaultLength) setOutputSize
(long defaultOutputSize) setPEs
(int defaultPEs) setRequiredFiles
(List<String> requiredFiles) setUtilizationModelBw
(UtilizationModel utilizationModelBw) setUtilizationModelCpu
(UtilizationModel utilizationModelCpu) final CloudletBuilder
setUtilizationModelCpuRamAndBw
(UtilizationModel utilizationModel) Sets the same utilization model for CPU, RAM and BW.setUtilizationModelRam
(UtilizationModel utilizationModelRam) Submits the list of created cloudlets to the latest created broker.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.cloudsimplus.builders.Builder
validateAmount
-
Constructor Details
-
CloudletBuilder
-
-
Method Details
-
create
-
create
-
createAndSubmit
-
createAndSubmit
-
submitCloudlets
Submits the list of created cloudlets to the latest created broker.- Returns:
- the CloudletBuilder instance
-
setUtilizationModelCpuRamAndBw
Sets the same utilization model for CPU, RAM and BW. By this way, at a time t, every one of the 3 resources will use the same percentage of its capacity.- Parameters:
utilizationModel
- the utilization model to set- Returns:
-
setVm
-
setFileSize
-
setRequiredFiles
-
getCloudlets
-
setPEs
-
getLength
public long getLength() -
getFileSize
public long getFileSize() -
getOutputSize
public long getOutputSize() -
setOutputSize
-
getPes
public int getPes() -
setLength
-
getBrokerBuilder
-
setOnCloudletFinishListener
-
setUtilizationModelRam
-
setUtilizationModelCpu
-
setUtilizationModelBw
-
setCloudletCreationFunction
Sets aBiFunction
used to create Cloudlets. It must length of the Cloudlet (in MI) and the number of PEs it will require.- Parameters:
cloudletCreationFunction
-
-