Class PowerModelSpecPower

    • Constructor Detail

      • PowerModelSpecPower

        public PowerModelSpecPower()
    • Method Detail

      • getMaxPower

        public double getMaxPower()
        Description copied from interface: PowerModel
        Gets the max power that can be consumed by the host in Watt-Second (Ws).
        Returns:
        the max consumption power in Watt-Second (Ws)
      • getPowerInternal

        protected double getPowerInternal​(double utilization)
                                   throws IllegalArgumentException
        Description copied from class: PowerModelAbstract
        An internal method to be implemented by sub classes to get the power consumption for the current CPU utilization.

        The basic parameter validation is performed by the PowerModelAbstract.getPower(double) method.

        Specified by:
        getPowerInternal in class PowerModelAbstract
        Parameters:
        utilization - the utilization percentage (between [0 and 1]) of a resource that is critical for power consumption.
        Returns:
        the power consumption
        Throws:
        IllegalArgumentException - when the utilization percentage is not between [0 and 1]
      • getPowerData

        protected abstract double getPowerData​(int index)
        Gets the power consumption for a given utilization percentage.
        Parameters:
        index - the utilization percentage in the scale from [0 to 10], where 10 means 100% of utilization.
        Returns:
        the power consumption for the given utilization percentage