Interface PowerModelHost

All Superinterfaces:
PowerModel
All Known Implementing Classes:
PowerModelHostAbstract, PowerModelHostSimple, PowerModelHostSpec

public interface PowerModelHost extends PowerModel
Provides a model for defining Host power consumption.
Since:
CloudSim Plus 6.0.0
See Also:
  • Field Details

  • Method Details

    • getPower

      double getPower(double utilizationFraction)
      Computes the hosts power usage in Watts (W) at a certain degree of utilization. Mainly for backwards compatibility.
      Parameters:
      utilizationFraction - the utilization percentage (between [0 and 1]) of the host.
      Returns:
      the power supply in Watts (W)
      Throws:
      IllegalArgumentException - if utilizationFraction is not between [0 and 1]
    • setStartupPower

      PowerModelHost setStartupPower(double power)
      Set the power consumed (in Watts) for starting up the Host.
    • setShutDownPower

      PowerModelHost setShutDownPower(double power)
      Set the power consumed (in Watts) for shutting down the Host.
    • addStartupTotals

      void addStartupTotals()
      After the Host is powered on, adds the consumed power to the total startup power. If the Host is powered on/off multiple times, that power consumed is summed up.
    • addShutDownTotals

      void addShutDownTotals()
      After the Host is powered off, adds the consumed power to the total shutdown power. If the Host is powered on/off multiple times, that power consumed is summed up.
    • getHost

      Host getHost()
      The Host this PowerModel is collecting power consumption measurements from.
    • getStartupPower

      double getStartupPower()
      The power consumed (in Watts) for starting up the Host.
    • getShutDownPower

      double getShutDownPower()
      The power consumed (in Watts) for shutting down the Host.
    • getTotalStartupPower

      double getTotalStartupPower()
      The total power consumed (in Watts) during all the times the Host was powered on. If the Host has never started up, returns zero.
    • getTotalShutDownPower

      double getTotalShutDownPower()
      The total power consumed (in Watts) during all the times the Host was powered off. If the Host has never started up then shutdown, returns zero.
    • getTotalStartupTime

      double getTotalStartupTime()
      The total time (in seconds) the Host spent during startup. If the Host starts up multiple times, the time spent is summed up.
      See Also:
    • getTotalShutDownTime

      double getTotalShutDownTime()
      The total time (in seconds) the Host spent during shut down. If the Host shuts down multiple times, the time spent is summed up.
      See Also:
    • getTotalStartups

      int getTotalStartups()
      The number of times the Host has started up.
      See Also:
    • setHost

      PowerModelHost setHost(Host host)