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

org.cloudbus.cloudsim.power.models.PowerModelHostNull 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

There is a newer version: 8.0.0
Show newest version
package org.cloudbus.cloudsim.power.models;

import org.cloudbus.cloudsim.hosts.Host;
import org.cloudbus.cloudsim.power.PowerMeasurement;

/**
 * A class that implements the Null Object Design Pattern for
 * {@link PowerModelHost} objects.
 * @since CloudSim Plus 6.0.0
 */
class PowerModelHostNull extends PowerModelHost {
    @Override public PowerMeasurement getPowerMeasurement() { return new PowerMeasurement(); }
    @Override public double getPower(double utilizationFraction) throws IllegalArgumentException { return 0; }
    @Override public Host getHost() { return Host.NULL; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy