org.cloudbus.cloudsim.provisioners.PeProvisionerNull Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudsim-plus Show documentation
Show all versions of cloudsim-plus Show documentation
CloudSim Plus: A modern, highly extensible and easier-to-use Java 8+ Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services
package org.cloudbus.cloudsim.provisioners;
import org.cloudbus.cloudsim.resources.Pe;
import org.cloudbus.cloudsim.vms.Vm;
/**
* A class that implements the Null Object Design Pattern for
* {@link PeProvisioner} class.
*
* @author Manoel Campos da Silva Filho
* @see PeProvisioner#NULL
*/
final class PeProvisionerNull extends ResourceProvisionerNull implements PeProvisioner {
@Override public void setPe(Pe pe) {/**/}
@Override public double getUtilization() {
return 0;
}
@Override public boolean allocateResourceForVm(Vm vm, double newTotalVmResource) {
return false;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy