Class PriceNoSensitivity
- java.lang.Object
-
- agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
-
- agents.markets.meritOrder.sensitivities.PriceNoSensitivity
-
public class PriceNoSensitivity extends MeritOrderSensitivity
Despite being of typeMeritOrderSensitivity
, these objects store no sensitivity information but only a single electricity price- Author:
- Christoph Schimeczek
-
-
Field Summary
-
Fields inherited from class agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
chargingItems, dischargingItems, externalChargingPowerInMW, externalDischargingPowerInMW
-
-
Constructor Summary
Constructors Constructor Description PriceNoSensitivity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
calcMonetaryValue(SensitivityItem item)
Calculates monetary value of given itemprotected double
calcValueOfItemAtPower(SensitivityItem item, double power)
Calculates value of given sensitivity item at specified powerprotected Comparator<SensitivityItem>
getComparator()
double
getPriceForecast()
double[]
getValuesInSteps(int numberOfTransitionSteps)
Calculate sensitivity in equally distributed steps of powerboolean
isEmpty()
protected void
selectOrderBookItems(SupplyOrderBook supplyBookForecast, DemandOrderBook demandBookForecast)
pick from given supply and / or demandOrderBook
s - and add picked one(s) to this sensitivityvoid
updatePriceForecast(double electricityPriceForecast)
Stores fixed electricity price forecast value-
Methods inherited from class agents.markets.meritOrder.sensitivities.MeritOrderSensitivity
extractOrders, getStepPowers, hasPositiveBlockPower, updatePowers, updateSensitivities
-
-
-
-
Method Detail
-
selectOrderBookItems
protected void selectOrderBookItems(SupplyOrderBook supplyBookForecast, DemandOrderBook demandBookForecast)
Description copied from class:MeritOrderSensitivity
pick from given supply and / or demandOrderBook
s - and add picked one(s) to this sensitivity- Specified by:
selectOrderBookItems
in classMeritOrderSensitivity
- Parameters:
supplyBookForecast
- order book with supply orders after clearingdemandBookForecast
- order book with demand orders after clearing
-
getComparator
protected Comparator<SensitivityItem> getComparator()
- Specified by:
getComparator
in classMeritOrderSensitivity
- Returns:
Comparator
forSensitivityItem
s to be used by this Sensitivity type
-
getValuesInSteps
public double[] getValuesInSteps(int numberOfTransitionSteps)
Description copied from class:MeritOrderSensitivity
Calculate sensitivity in equally distributed steps of power- Overrides:
getValuesInSteps
in classMeritOrderSensitivity
- Parameters:
numberOfTransitionSteps
- to determine the granularity of the created sensitivity- Returns:
- values of Sensitivity in (2 * numberOfTransitionSteps + 1) steps, equally dividing max charging and discharging powers; first entry corresponds to maximum discharging power, while the last entry resembles sensitivity value at maximum charging power
-
calcMonetaryValue
protected double calcMonetaryValue(SensitivityItem item)
Description copied from class:MeritOrderSensitivity
Calculates monetary value of given item- Specified by:
calcMonetaryValue
in classMeritOrderSensitivity
- Parameters:
item
- to assess- Returns:
- monetary value of this
SensitivityItem
according to this Sensitivity type
-
calcValueOfItemAtPower
protected double calcValueOfItemAtPower(SensitivityItem item, double power)
Description copied from class:MeritOrderSensitivity
Calculates value of given sensitivity item at specified power- Specified by:
calcValueOfItemAtPower
in classMeritOrderSensitivity
- Parameters:
item
- that is to be evaluatedpower
- to be applied- Returns:
- value of given
SensitivityItem
at specified power according to this Sensitivity type;
when power > 0: charging, otherwise discharging
-
updatePriceForecast
public void updatePriceForecast(double electricityPriceForecast)
Description copied from class:MeritOrderSensitivity
Stores fixed electricity price forecast value- Specified by:
updatePriceForecast
in classMeritOrderSensitivity
- Parameters:
electricityPriceForecast
- value to store
-
isEmpty
public boolean isEmpty()
- Overrides:
isEmpty
in classMeritOrderSensitivity
- Returns:
- true if sensitivities have not been set yet
-
getPriceForecast
public double getPriceForecast()
- Returns:
- forecast price in €/MWh
-
-