Package agents.plantOperator
Class Marginal
- java.lang.Object
-
- agents.plantOperator.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 Summary
Fields Modifier and Type Field Description static Comparator<Marginal>
byCostAscending
Sorts by costs in ascending order
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComponentsTo(de.dlr.gitlab.fame.communication.transfer.ComponentCollector collector)
double
getMarginalCostInEURperMWH()
double
getPowerPotentialInMW()
void
populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
-
-
-
Field Detail
-
byCostAscending
public static Comparator<Marginal> byCostAscending
Sorts by costs in ascending order
-
-
Constructor Detail
-
Marginal
public Marginal()
required forPortable
s
-
Marginal
public Marginal(double powerPotentialInMW, double marginalCostInEURperMWH)
Constructs newMarginal
- Parameters:
powerPotentialInMW
- true power production potential by electricity generation unit in MWmarginalCostInEURperMWH
- 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 interfacede.dlr.gitlab.fame.communication.transfer.Portable
-
populate
public void populate(de.dlr.gitlab.fame.communication.transfer.ComponentProvider provider)
- Specified by:
populate
in interfacede.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
-
-