Skip to content

Commit

Permalink
adapt copybuilders
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfeismann committed Aug 9, 2024
1 parent e8f18f0 commit 6ca993f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ public String toString() {
public static class CylindricalStorageInputCopyBuilder
extends ThermalStorageInputCopyBuilder<CylindricalStorageInputCopyBuilder> {

private ComparableQuantity<Volume> storageVolumeLvl;
private ComparableQuantity<Temperature> inletTemp;
private ComparableQuantity<Temperature> returnTemp;
private ComparableQuantity<SpecificHeatCapacity> c;
private ComparableQuantity<Power> pThermalMax;
ComparableQuantity<Volume> storageVolumeLvl;
ComparableQuantity<Temperature> inletTemp;
ComparableQuantity<Temperature> returnTemp;
ComparableQuantity<SpecificHeatCapacity> c;
ComparableQuantity<Power> pThermalMax;

CylindricalStorageInputCopyBuilder(CylindricalStorageInput entity) {
super(entity);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,38 @@ public String toString() {

public class DomesticHotWaterStorageInputCopyBuilder extends CylindricalStorageInputCopyBuilder {

private DomesticHotWaterStorageInputCopyBuilder(DomesticHotWaterStorageInput entity) {
public DomesticHotWaterStorageInputCopyBuilder(DomesticHotWaterStorageInput entity) {
super(entity);
}


public DomesticHotWaterStorageInputCopyBuilder storageVolumeLvl(ComparableQuantity<Volume> storageVolumeLvl) {
this.storageVolumeLvl = storageVolumeLvl;
return this;
}

public DomesticHotWaterStorageInputCopyBuilder inletTemp(ComparableQuantity<Temperature> inletTemp) {
this.inletTemp = inletTemp;
return this;
}

public DomesticHotWaterStorageInputCopyBuilder returnTemp(
ComparableQuantity<Temperature> returnTemp) {
this.returnTemp = returnTemp;
return this;
}

public DomesticHotWaterStorageInputCopyBuilder c(ComparableQuantity<SpecificHeatCapacity> c) {
this.c = c;
return this;
}

public DomesticHotWaterStorageInputCopyBuilder pThermalMax(ComparableQuantity<Power> pThermalMax) {
this.pThermalMax = pThermalMax;
return this;
}

@Override
public DomesticHotWaterStorageInputCopyBuilder scale(Double factor) {
storageVolumeLvl(getStorageVolumeLvl().multiply(factor));
pThermalMax(getpThermalMax().multiply(factor));
Expand Down

0 comments on commit 6ca993f

Please sign in to comment.