cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/allocationpolicies/VmAllocationPolicyAbstract.java
private void addPesFromHostsToFreePesList() {
        setHostFreePesMap(new HashMap<>(getHostList().size()));
        setUsedPes(new HashMap<>());
        getHostList().forEach(host -> hostFreePesMap.put(host, host.getNumberOfWorkingPes()));
    }
/**
     * Gets the number of working PEs from each Host in the {@link #getHostList() host list}
     * and adds these numbers to the {@link #getHostFreePesMap() list of free PEs}.
     * <b>The method expects that the {@link #datacenter} is already set.</b>
     *
     */
Gets the number of working PEs from each Host in the  #getHostList() host list
and adds these numbers to the  #getHostFreePesMap() list of free PEs.
The method expects that the  #datacenter is already set.
Gets the number of working PEs from each Host in the #getHostList () host list and adds these numbers to the #getHostFreePesMap () list of free PEs . The method expects that the #datacenter is already set .
private void addPesFromHostsToFreePesList() {
        setHostFreePesMap(new HashMap<>(getHostList().size()));
        setUsedPes(new HashMap<>());
        getHostList().forEach(host -> hostFreePesMap.put(host, host.getNumberOfWorkingPes()));
    }
private void addPesFromHostsToFreePesList ( ) { setHostFreePesMap ( new HashMap < > ( getHostList ( ) . size ( ) ) ) ; setUsedPes ( new HashMap < > ( ) ) ; getHostList ( ) . forEach ( host -> hostFreePesMap . put ( host , host . getNumberOfWorkingPes ( ) ) ) ; }
Gets the number of working PEs from each Host in the {@link #getHostList() host list}
 and adds these numbers to the {@link #getHostFreePesMap() list of free PEs}.
Gets the number of working PEs from each Host in the { @link #getHostList () host list } and adds these numbers to the { @link #getHostFreePesMap () list of free PEs } .