Class Marginal

  • All Implemented Interfaces:
    de.dlr.gitlab.fame.communication.transfer.Portable

    public class Marginal
    extends Object
    implements de.dlr.gitlab.fame.communication.transfer.Portable
    Transmits a single power-marginalCost pair
    Author:
    Christoph Schimeczek
    • Field Detail

      • byCostAscending

        public static Comparator<Marginal> byCostAscending
        Sorts by costs in ascending order
    • Constructor Detail

      • Marginal

        public Marginal()
        required for Portables
      • Marginal

        public Marginal​(double powerPotentialInMW,
                        double marginalCostInEURperMWH)
        Constructs new Marginal
        Parameters:
        powerPotentialInMW - true power production potential by electricity generation unit in MW
        marginalCostInEURperMWH - marginal power production costs in EUR per MWh
    • Method Detail

      • addComponentsTo

        public void addComponentsTo​(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
        Specified by:
        addComponentsTo in interface de.dlr.gitlab.fame.communication.transfer.Portable
      • populate

        public void populate​(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
        Specified by:
        populate in interface de.dlr.gitlab.fame.communication.transfer.Portable
      • getPowerPotentialInMW

        public double getPowerPotentialInMW()
        Returns:
        the actual power potential
      • getMarginalCostInEURperMWH

        public double getMarginalCostInEURperMWH()
        Returns:
        the actual marginal cost value