Class SensitivityItem
- java.lang.Object
-
- agents.markets.meritOrder.sensitivities.SensitivityItem
-
public class SensitivityItem extends Object
Represents an item of a merit-order sensitivity- Author:
- Christoph Schimeczek
-
-
Field Summary
Fields Modifier and Type Field Description static Comparator<SensitivityItem>
BY_POWER
ComparesSensitivityItem
s by powerstatic Comparator<SensitivityItem>
BY_PRICE
ComparesSensitivityItem
s by pricestatic Comparator<SensitivityItem>
BY_PRICE_THEN_POWER
ComparesSensitivityItem
s by price and then power
-
Constructor Summary
Constructors Constructor Description SensitivityItem(double power, double price, double marginal)
Creates aSensitivityItem
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCumulatedLowerPower()
double
getCumulatedUpperPower()
double
getMarginal()
double
getMonetaryOffset()
double
getPower()
double
getPrice()
void
setCumulatedLowerPower(double cumulatedPower)
set the cumulated power at the beginning this power blockvoid
setMonetaryOffset(double monetaryOffset)
set the cumulated monetary value at the beginning this power blockString
toString()
-
-
-
Field Detail
-
BY_PRICE
public static final Comparator<SensitivityItem> BY_PRICE
ComparesSensitivityItem
s by price
-
BY_POWER
public static final Comparator<SensitivityItem> BY_POWER
ComparesSensitivityItem
s by power
-
BY_PRICE_THEN_POWER
public static final Comparator<SensitivityItem> BY_PRICE_THEN_POWER
ComparesSensitivityItem
s by price and then power
-
-
Constructor Detail
-
SensitivityItem
public SensitivityItem(double power, double price, double marginal)
Creates aSensitivityItem
- Parameters:
power
- delta covered by this itemprice
- valid at this power deltamarginal
- valid for this power delta
-
-
Method Detail
-
getPower
public double getPower()
- Returns:
- the block power of this item
-
getPrice
public double getPrice()
- Returns:
- the price in EUR/MWh valid for this power block
-
getMarginal
public double getMarginal()
- Returns:
- the marginal cost in EUR/MWh for this power block
-
setCumulatedLowerPower
public void setCumulatedLowerPower(double cumulatedPower)
set the cumulated power at the beginning this power block- Parameters:
cumulatedPower
- lower value of cumulated power for this item
-
getCumulatedLowerPower
public double getCumulatedLowerPower()
- Returns:
- the cumulated power at the beginning this power block
-
getCumulatedUpperPower
public double getCumulatedUpperPower()
- Returns:
- the cumulated power at the end this power block
-
getMonetaryOffset
public double getMonetaryOffset()
- Returns:
- the cumulated monetary value at the beginning this power block
-
setMonetaryOffset
public void setMonetaryOffset(double monetaryOffset)
set the cumulated monetary value at the beginning this power block- Parameters:
monetaryOffset
- total monetary value at the beginning this power block
-
-