/** * Sets the resource parameters for which this Cloudlet is going to be * executed. <br> * NOTE: This method <tt>should</tt> be called only by a resource entity, * not the user or owner of this Cloudlet. * * @param resourceID the CloudResource ID * @param costPerCPU the cost per second of running this Cloudlet * @param costPerBw the cost per byte of data transfer to the Datacenter * * @pre resourceID >= 0 * @pre cost > 0.0 * @post $none */ public void setResourceParameter(final int resourceID, final double costPerCPU, final double costPerBw) { setResourceParameter(resourceID, costPerCPU); this.costPerBw = costPerBw; accumulatedBwCost = costPerBw * getCloudletFileSize(); }
cl.setResourceParameter( getId(), getCharacteristics().getCostPerSecond(), getCharacteristics().getCostPerBw());
cl.setResourceParameter(getId(), getCharacteristics().getCostPerSecond(), getCharacteristics() .getCostPerBw());