Exemple #1
0
 public Cloudlet(
     int cloudletId,
     long cloudletLength,
     int pesNumber,
     long cloudletFileSize,
     long cloudletOutputSize,
     UtilizationModel utilizationModelCpu,
     UtilizationModel utilizationModelRam,
     UtilizationModel utilizationModelBw)
     : this(
         cloudletId,
         cloudletLength,
         pesNumber,
         cloudletFileSize,
         cloudletOutputSize,
         utilizationModelCpu,
         utilizationModelRam,
         utilizationModelBw,
         false)
 {
     vmId = -1;
     accumulatedBwCost = 0;
     costPerBw         = 0;
     requiredFiles     = new List <String>();
 }
        public DefaultExecutableCloudlet(
			int cloudletId, long cloudletLength, int pesNumber, long cloudletFileSize, long cloudletOutputSize, 
			UtilizationModel utilizationModelCpu, UtilizationModel utilizationModelRam, UtilizationModel utilizationModelBw)
            : base(cloudletId, cloudletLength, pesNumber, cloudletFileSize, cloudletOutputSize, 
					utilizationModelCpu, utilizationModelRam, utilizationModelBw)
        {
        }
Exemple #3
0
        public Cloudlet(
            int cloudletId,
            long cloudletLength,
            int pesNumber,
            long cloudletFileSize,
            long cloudletOutputSize,
            UtilizationModel utilizationModelCpu,
            UtilizationModel utilizationModelRam,
            UtilizationModel utilizationModelBw,
            bool record,
            List <String> fileList) :
            this(
                cloudletId,
                cloudletLength,
                pesNumber,
                cloudletFileSize,
                cloudletOutputSize,
                utilizationModelCpu,
                utilizationModelRam,
                utilizationModelBw,
                record)
        {
            vmId = -1;
            accumulatedBwCost = 0.0;
            costPerBw         = 0.0;

            requiredFiles = fileList;
        }
Exemple #4
0
        public Cloudlet(
            int cloudletId,
            long cloudletLength,
            int pesNumber,
            long cloudletFileSize,
            long cloudletOutputSize,
            UtilizationModel utilizationModelCpu,
            UtilizationModel utilizationModelRam,
            UtilizationModel utilizationModelBw,
            bool 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 List <Resource>(2);
            index       = -1;
            this.record = record;

            vmId = -1;
            accumulatedBwCost = 0.0;
            costPerBw         = 0.0;

            requiredFiles = new List <String>();

            SetUtilizationModelCpu(utilizationModelCpu);
            SetUtilizationModelRam(utilizationModelRam);
            SetUtilizationModelBw(utilizationModelBw);
        }
Exemple #5
0
 public void SetUtilizationModelBw(UtilizationModel utilizationModelBw)
 {
     this.utilizationModelBw = utilizationModelBw;
 }
Exemple #6
0
 public void SetUtilizationModelRam(UtilizationModel utilizationModelRam)
 {
     this.utilizationModelRam = utilizationModelRam;
 }
Exemple #7
0
 public void SetUtilizationModelCpu(UtilizationModel utilizationModelCpu)
 {
     this.utilizationModelCpu = utilizationModelCpu;
 }