org.flexiblepower.ral.values
public final class ConstraintProfileMap extends CommodityMap<ConstraintProfile<?>>
Modifier and Type | Class and Description |
---|---|
static class |
ConstraintProfileMap.Builder
This helper class makes it easy to create an instance of the
ConstraintProfileMap . |
Modifier and Type | Method and Description |
---|---|
static ConstraintProfileMap.Builder |
create() |
static ConstraintProfileMap |
electricity(ConstraintProfile<javax.measure.quantity.Power> electricityValue) |
static ConstraintProfileMap |
gas(ConstraintProfile<javax.measure.quantity.VolumetricFlowRate> gasValue) |
<BQ extends javax.measure.quantity.Quantity,FQ extends javax.measure.quantity.Quantity> |
get(Commodity<BQ,FQ> commodity) |
static ConstraintProfileMap |
heat(ConstraintProfile<javax.measure.quantity.Power> heatValue) |
public static ConstraintProfileMap.Builder create()
ConstraintProfileMap.Builder
object that can be used to create the ConstraintProfileMap
more easily.public static ConstraintProfileMap electricity(ConstraintProfile<javax.measure.quantity.Power> electricityValue)
electricityValue
- The ConstraintList
of the electricityConstraintProfileMap
which only contains a value for Commodity.ELECTRICITY
public static ConstraintProfileMap gas(ConstraintProfile<javax.measure.quantity.VolumetricFlowRate> gasValue)
gasValue
- The ConstraintList
of the gasConstraintProfileMap
which only contains a value for Commodity.GAS
public static ConstraintProfileMap heat(ConstraintProfile<javax.measure.quantity.Power> heatValue)
heatValue
- The ConstraintList
of the heatConstraintProfileMap
which only contains a value for Commodity.HEAT
public <BQ extends javax.measure.quantity.Quantity,FQ extends javax.measure.quantity.Quantity> ConstraintProfile<FQ> get(Commodity<BQ,FQ> commodity)