cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/cloudlets/network/NetworkCloudlet.java
public NetworkCloudlet addTask(CloudletTask task) {
        task.setCloudlet(this);
        tasks.add(task);
        return this;
    }
/**
     * Adds a task to the {@link #getTasks() task list}
     * and links the task to the NetworkCloudlet.
     *
     * @param task Task to be added
     * @return the NetworkCloudlet instance
     */
Adds a task to the  #getTasks() task list
and links the task to the NetworkCloudlet.

@param task Task to be added
@return the NetworkCloudlet instance
Adds a task to the #getTasks () task list and links the task to the NetworkCloudlet . @param task Task to be added @return the NetworkCloudlet instance
public NetworkCloudlet addTask(CloudletTask task) {
        task.setCloudlet(this);
        tasks.add(task);
        return this;
    }
public NetworkCloudlet addTask ( CloudletTask task ) { task . setCloudlet ( this ) ; tasks . add ( task ) ; return this ; }
Adds a task to the {@link #getTasks() task list}
 and links the task to the NetworkCloudlet.
Adds a task to the { @link #getTasks () task list } and links the task to the NetworkCloudlet .