Package agents.policy
Class MarketData
- java.lang.Object
-
- agents.policy.MarketData
-
public class MarketData extends Object
Stores and evaluates market data- Author:
- Christoph Schimeczek
-
-
Constructor Summary
Constructors Constructor Description MarketData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElectricityPrice(de.dlr.gitlab.fame.time.TimeStamp time, Double price)
Saves given electricity price at given timevoid
addYieldValue(YieldPotential potential)
Saves givenYieldPotential
for a specificSupportPolicy.EnergyCarrier
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 pricevoid
clearBefore(de.dlr.gitlab.fame.time.TimeStamp time)
Removes any data referring to times before the specified timeSet<SupportPolicy.EnergyCarrier>
getAllEnergyCarriers()
TreeMap<de.dlr.gitlab.fame.time.TimeStamp,Double>
getEnergyPrices()
-
-
-
Method Detail
-
addYieldValue
public void addYieldValue(YieldPotential potential)
Saves givenYieldPotential
for a specificSupportPolicy.EnergyCarrier
- Parameters:
potential
- to store
-
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 validprice
- 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 forinterval
- 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
-
getAllEnergyCarriers
public Set<SupportPolicy.EnergyCarrier> getAllEnergyCarriers()
- Returns:
- all
SupportPolicy.EnergyCarrier
s that had some infeed yet in this simulation
-
-