Class CostModelWorkloadsProcessingAmount

  • All Implemented Interfaces:
    CostModel

    public class CostModelWorkloadsProcessingAmount
    extends java.lang.Object
    implements CostModel
    Simple equipment power model
    • Constructor Detail

      • CostModelWorkloadsProcessingAmount

        public CostModelWorkloadsProcessingAmount​(java.util.List<Workload> workloads,
                                                  double pricePerProcessedMi)
        Create a new model based on the workloads processing amount
        Parameters:
        workloads - the workloads to evaluate the cost time
        pricePerProcessedMi - the price per processed MI
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface CostModel
        Returns:
        the cost model name
      • getWorkloads

        public java.util.List<Workload> getWorkloads()
        Returns:
        the list of workloads for this cost model
      • getPricePerProcessedMI

        public double getPricePerProcessedMI()
        Returns:
        the price per processing second for this cost model
      • getCost

        public double getCost()
        Specified by:
        getCost in interface CostModel
        Returns:
        the total cost