@@ -318,30 +318,30 @@ protected final List<NetworkCloudlet> createAppAndSubmitToBroker(DatacenterBroke
318318 * Adds a SendTask to the list of tasks of the given {@link NetworkCloudlet}.
319319 *
320320 * @param sourceCloudlet the {@link NetworkCloudlet} from which packets will be sent
321- * @param destinationCloudlet the destination {@link NetworkCloudlet} to send packets to
321+ * @param targetCloudlet the destination {@link NetworkCloudlet} to send packets to
322322 */
323323 protected void addSendTask (
324- NetworkCloudlet sourceCloudlet ,
325- NetworkCloudlet destinationCloudlet )
324+ final NetworkCloudlet sourceCloudlet ,
325+ final NetworkCloudlet targetCloudlet )
326326 {
327327 final var task = new CloudletSendTask (sourceCloudlet .getTasks ().size ());
328328 task .setMemory (TASK_RAM );
329329 sourceCloudlet .addTask (task );
330330 for (int i = 0 ; i < PACKETS_TO_SEND ; i ++) {
331- task .addPacket (destinationCloudlet , PACKET_DATA_LENGTH_IN_BYTES );
331+ task .addPacket (targetCloudlet , PACKET_DATA_LENGTH_IN_BYTES );
332332 }
333333 }
334334
335335 /**
336336 * Adds a ReceiveTask to the list of tasks of the given {@link NetworkCloudlet}.
337337 *
338- * @param cloudlet the {@link NetworkCloudlet} the task will belong to
338+ * @param targetCloudlet the {@link NetworkCloudlet} the task will belong to
339339 * @param sourceCloudlet the {@link NetworkCloudlet} expected to receive packets from
340340 */
341- protected void addReceiveTask (NetworkCloudlet cloudlet , NetworkCloudlet sourceCloudlet ) {
342- final var task = new CloudletReceiveTask (cloudlet .getTasks ().size (), sourceCloudlet .getVm ());
341+ protected void addReceiveTask (final NetworkCloudlet targetCloudlet , final NetworkCloudlet sourceCloudlet ) {
342+ final var task = new CloudletReceiveTask (targetCloudlet .getTasks ().size (), sourceCloudlet .getVm ());
343343 task .setMemory (TASK_RAM );
344344 task .setExpectedPacketsToReceive (PACKETS_TO_SEND );
345- cloudlet .addTask (task );
345+ targetCloudlet .addTask (task );
346346 }
347347}
0 commit comments