Package org.cloudsimplus.builders
Class CloudletBuilder
java.lang.Object
org.cloudsimplus.builders.CloudletBuilder
- All Implemented Interfaces:
Builder
public class CloudletBuilder extends Object implements Builder
A Builder class to create
Cloudlet
objects.- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
Constructors Constructor Description CloudletBuilder(BrokerBuilderDecorator brokerBuilder, DatacenterBrokerSimple broker)
-
Method Summary
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
-
setOnCloudletFinishEventListener
public CloudletBuilder setOnCloudletFinishEventListener(EventListener<CloudletVmEventInfo> defaultOnCloudletFinishEventListener) -
setUtilizationModelRam
-
setUtilizationModelCpu
-
setUtilizationModelBw
-
setCloudletCreationFunction
public void setCloudletCreationFunction(BiFunction<Long,Integer,Cloudlet> cloudletCreationFunction)Sets aBiFunction
used to create Cloudlets. It must length of the Cloudlet (in MI) and the number of PEs it will require.- Parameters:
cloudletCreationFunction
-
-