cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus-examples/src/main/java/org/cloudbus/cloudsim/examples/network/applications/NetworkVmsExample1.java
private List<NetworkCloudlet> createNetworkCloudlets(DatacenterBroker broker) {
        final int numberOfCloudlets = 2;
        List<NetworkCloudlet> networkCloudletList = new ArrayList<>(numberOfCloudlets);

        for (int i = 0; i < numberOfCloudlets; i++) {
            networkCloudletList.add(createNetworkCloudlet(vmList.get(i), broker));
        }

        //NetworkCloudlet 0 Tasks
        addExecutionTask(networkCloudletList.get(0));
        addSendTask(networkCloudletList.get(0), networkCloudletList.get(1));

        //NetworkCloudlet 1 Tasks
        addReceiveTask(networkCloudletList.get(1), networkCloudletList.get(0));
        addExecutionTask(networkCloudletList.get(1));

        return networkCloudletList;
    }
/**
     * Creates a list of {@link NetworkCloudlet} that together represents the
     * distributed processes of a given fictitious application.
     *
     * @param broker broker to associate the NetworkCloudlets
     * @return the list of create NetworkCloudlets
     */
Creates a list of  NetworkCloudlet that together represents the
distributed processes of a given fictitious application.

@param broker broker to associate the NetworkCloudlets
@return the list of create NetworkCloudlets
Creates a list of NetworkCloudlet that together represents the distributed processes of a given fictitious application . @param broker broker to associate the NetworkCloudlets @return the list of create NetworkCloudlets
private List<NetworkCloudlet> createNetworkCloudlets(DatacenterBroker broker) {
        final int numberOfCloudlets = 2;
        List<NetworkCloudlet> networkCloudletList = new ArrayList<>(numberOfCloudlets);
        for (int i = 0; i < numberOfCloudlets; i++) {
            networkCloudletList.add(createNetworkCloudlet(vmList.get(i), broker));
        }
        addExecutionTask(networkCloudletList.get(0));
        addSendTask(networkCloudletList.get(0), networkCloudletList.get(1));
        addReceiveTask(networkCloudletList.get(1), networkCloudletList.get(0));
        addExecutionTask(networkCloudletList.get(1));
        return networkCloudletList;
    }
private List < NetworkCloudlet > createNetworkCloudlets ( DatacenterBroker broker ) { final int numberOfCloudlets = 2 ; List < NetworkCloudlet > networkCloudletList = new ArrayList < > ( numberOfCloudlets ) ; for ( int i = 0 ; i < numberOfCloudlets ; i ++ ) { networkCloudletList . add ( createNetworkCloudlet ( vmList . get ( i ) , broker ) ) ; } addExecutionTask ( networkCloudletList . get ( 0 ) ) ; addSendTask ( networkCloudletList . get ( 0 ) , networkCloudletList . get ( 1 ) ) ; addReceiveTask ( networkCloudletList . get ( 1 ) , networkCloudletList . get ( 0 ) ) ; addExecutionTask ( networkCloudletList . get ( 1 ) ) ; return networkCloudletList ; }
Creates a list of {@link NetworkCloudlet} that together represents the
 distributed processes of a given fictitious application.
Creates a list of { @link NetworkCloudlet } that together represents the distributed processes of a given fictitious application .
//NetworkCloudlet 0 Tasks //NetworkCloudlet 1 Tasks