All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudsimplus.resources.ResourceManageableNull Maven / Gradle / Ivy

Go to download

CloudSim Plus: A modern, highly extensible and easier-to-use Java 8+ Framework for Modeling and Simulation of Cloud Computing Infrastructures and Services

The newest version!
package org.cloudsimplus.resources;

/**
 * A class that implements the Null Object Design Pattern for
 * {@link ResourceManageable} class.
 *
 * @author Manoel Campos da Silva Filho
 * @see ResourceManageable#NULL
 */
final class ResourceManageableNull implements ResourceManageable {
    @Override public boolean setCapacity(long newCapacity) {
        return false;
    }
    @Override public boolean sumCapacity(long amountToSum) { return false; }
    @Override public boolean addCapacity(long capacityToAdd) { return false; }
    @Override public boolean removeCapacity(long capacityToRemove) { return false; }
    @Override public boolean allocateResource(long amountToAllocate) {
        return false;
    }
    @Override public boolean setAllocatedResource(long newTotalAllocatedResource) {
        return false;
    }
    @Override public boolean deallocateResource(long amountToDeallocate) {
        return false;
    }
    @Override public boolean deallocateAndRemoveResource(long amountToDeallocate) { return false; }
    @Override public long deallocateAllResources() {
        return 0L;
    }
    @Override public boolean isResourceAmountBeingUsed(long amountToCheck) {
        return false;
    }
    @Override public boolean isSuitable(long newTotalAllocatedResource) {
        return false;
    }
    @Override public long getCapacity() {
        return 0L;
    }
    @Override public long getAvailableResource() {
        return 0L;
    }
    @Override public long getAllocatedResource() {
        return 0L;
    }
    @Override public boolean isAmountAvailable(long amountToCheck) {
        return false;
    }
    @Override public boolean isAmountAvailable(double amountToCheck) { return false; }
    @Override public String getUnit() { return ""; }
    @Override public boolean isFull() {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy