public Cloudlet(final int cloudletId,final long cloudletLength,final int pesNumber,final long cloudletFileSize,final long cloudletOutputSize,final UtilizationModel utilizationModelCpu,final UtilizationModel utilizationModelRam,final UtilizationModel utilizationModelBw,final boolean record){
  userId=-1;
  status=CREATED;
  this.cloudletId=cloudletId;
  numberOfPes=pesNumber;
  execStartTime=0.0;
  finishTime=-1.0;
  classType=0;
  netToS=0;
  this.cloudletLength=Math.max(1,cloudletLength);
  this.cloudletFileSize=Math.max(1,cloudletFileSize);
  this.cloudletOutputSize=Math.max(1,cloudletOutputSize);
  resList=new ArrayList<Resource>(2);
  index=-1;
  this.record=record;
  vmId=-1;
  accumulatedBwCost=0.0;
  costPerBw=0.0;
  requiredFiles=new LinkedList<String>();
  setUtilizationModelCpu(utilizationModelCpu);
  setUtilizationModelRam(utilizationModelRam);
  setUtilizationModelBw(utilizationModelBw);
}

public Cloudlet ( final int cloudletId , final long cloudletLength , final int pesNumber , final long cloudletFileSize , final long cloudletOutputSize , final UtilizationModel utilizationModelCpu , final UtilizationModel utilizationModelRam , final UtilizationModel utilizationModelBw , final boolean record ) { userId = - 1 ; status = CREATED ; this . cloudletId = cloudletId ; numberOfPes = pesNumber ; execStartTime = 0.0 ; finishTime = - 1.0 ; classType = 0 ; netToS = 0 ; this . cloudletLength = Math . max ( 1 , cloudletLength ) ; this . cloudletFileSize = Math . max ( 1 , cloudletFileSize ) ; this . cloudletOutputSize = Math . max ( 1 , cloudletOutputSize ) ; resList = new ArrayList < Resource > ( 2 ) ; index = - 1 ; this . record = record ; vmId = - 1 ; accumulatedBwCost = 0.0 ; costPerBw = 0.0 ; requiredFiles = new LinkedList < String > ( ) ; setUtilizationModelCpu ( utilizationModelCpu ) ; setUtilizationModelRam ( utilizationModelRam ) ; setUtilizationModelBw ( utilizationModelBw ) ; }
allocates a new cloudlet object . the cloudlet length , input and output file sizes should be greater than or equal to 1 .
