Cloudlet { public double getUtilizationOfBw(final double time) { return getUtilizationModelBw().getUtilization(time); } 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);  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,
            final List<String> fileList);  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 List<String> fileList);  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); boolean setReservationId(final int resId); int getReservationId(); boolean hasReserved(); boolean setCloudletLength(final long cloudletLength); boolean setNetServiceLevel(final int netServiceLevel); int getNetServiceLevel(); double getWaitingTime(); boolean setClassType(final int classType); int getClassType(); boolean setNumberOfPes(final int numberOfPes); int getNumberOfPes(); String getCloudletHistory(); long getCloudletFinishedSoFar(); boolean isFinished(); void setCloudletFinishedSoFar(final long length); void setUserId(final int id); int getUserId(); int getResourceId(); long getCloudletFileSize(); long getCloudletOutputSize(); void setResourceParameter(final int resourceID, final double cost); void setSubmissionTime(final double clockTime); double getSubmissionTime(); void setExecStartTime(final double clockTime); double getExecStartTime(); void setExecParam(final double wallTime, final double actualTime); void setCloudletStatus(final int newStatus); @Deprecated int getCloudletStatus(); String getCloudletStatusString(); static String getStatusString(final int status); long getCloudletLength(); long getCloudletTotalLength(); double getCostPerSec(); double getWallClockTime(); String[] getAllResourceName(); int[] getAllResourceId(); double getActualCPUTime(final int resId); double getCostPerSec(final int resId); long getCloudletFinishedSoFar(final int resId); double getSubmissionTime(final int resId); double getWallClockTime(final int resId); String getResourceName(final int resId); Resource getResourceById(final int resourceId); double getFinishTime(); int getStatus(); int getCloudletId(); int getVmId(); void setVmId(final int vmId); double getActualCPUTime(); void setResourceParameter(final int resourceID, final double costPerCPU, final double costPerBw); double getProcessingCost(); List<String> getRequiredFiles(); boolean addRequiredFile(final String fileName); boolean deleteRequiredFile(final String filename); boolean requiresFiles(); UtilizationModel getUtilizationModelCpu(); void setUtilizationModelCpu(final UtilizationModel utilizationModelCpu); UtilizationModel getUtilizationModelRam(); void setUtilizationModelRam(final UtilizationModel utilizationModelRam); UtilizationModel getUtilizationModelBw(); void setUtilizationModelBw(final UtilizationModel utilizationModelBw); double getUtilizationOfCpu(final double time); double getUtilizationOfRam(final double time); double getUtilizationOfBw(final double time); static final int CREATED; static final int READY; static final int QUEUED; static final int INEXEC; static final int SUCCESS; static final int FAILED; static final int CANCELED; static final int PAUSED; static final int RESUMED; static final int FAILED_RESOURCE_UNAVAILABLE; }
@Test public void testGetUtilizationOfBw() { assertEquals(utilizationModelBw.getUtilization(0), cloudlet.getUtilizationOfBw(0), 0); }