Package agents.policy

Class MarketData


  • public class MarketData
    extends Object
    Stores and evaluates market data
    Author:
    Christoph Schimeczek
    • Constructor Detail

      • MarketData

        public MarketData()
    • Method Detail

      • addElectricityPrice

        public void addElectricityPrice​(de.dlr.gitlab.fame.time.TimeStamp time,
                                        Double price)
        Saves given electricity price at given time
        Parameters:
        time - at which electricity price is valid
        price - realised at electricity market
      • calcMarketValue

        public double calcMarketValue​(SupportPolicy.EnergyCarrier energyCarrier,
                                      de.dlr.gitlab.fame.time.TimePeriod interval)
        Calculate market value based on energy carrier-specific RES infeed (wind and PV) or base price
        Parameters:
        energyCarrier - to calculate for
        interval - to assess
        Returns:
        the market value of the given energy carrier in the given time period
      • getEnergyPrices

        public TreeMap<de.dlr.gitlab.fame.time.TimeStamp,​Double> getEnergyPrices()
        Returns:
        previously logged market prices
      • clearBefore

        public void clearBefore​(de.dlr.gitlab.fame.time.TimeStamp time)
        Removes any data referring to times before the specified time
        Parameters:
        time - before which all recorded data is to be cleared