Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into ck/#267-adaptColumnSch…
Browse files Browse the repository at this point in the history
…emeOfCOSMOWeatherData
  • Loading branch information
ckittl committed Apr 21, 2021
2 parents 7995b54 + f7b1587 commit 2165981
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public abstract class CharacteristicInput<A extends Quantity<A>, O extends Quant
protected final String characteristicPrefix;
protected final int decimalPlaces;

protected final SortedSet<CharacteristicPoint<A, O>> points;
private final SortedSet<CharacteristicPoint<A, O>> points;

/**
* Constructor for the abstract class
Expand All @@ -32,14 +32,14 @@ public abstract class CharacteristicInput<A extends Quantity<A>, O extends Quant
* @param characteristicPrefix Prefix, that prepends the actual characteristic
* @param decimalPlaces Desired amount of decimal places when de-serializing the characteristic
*/
public CharacteristicInput(
protected CharacteristicInput(
SortedSet<CharacteristicPoint<A, O>> points, String characteristicPrefix, int decimalPlaces) {
this.points = Collections.unmodifiableSortedSet(points);
this.characteristicPrefix = characteristicPrefix;
this.decimalPlaces = decimalPlaces;
}

public CharacteristicInput(
protected CharacteristicInput(
String input,
Unit<A> abscissaUnit,
Unit<O> ordinateUnit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ public int hashCode() {

@Override
public String toString() {
return "cosPhiFixed{" + "points=" + points + '}';
return "cosPhiFixed{" + "points=" + getPoints() + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ public int hashCode() {

@Override
public String toString() {
return "CosPhiP{" + "points=" + points + '}';
return "CosPhiP{" + "points=" + getPoints() + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ public int hashCode() {

@Override
public String toString() {
return "EvCharacteristicInput{" + "points=" + points + '}';
return "EvCharacteristicInput{" + "points=" + getPoints() + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ public int hashCode() {

@Override
public String toString() {
return "OlmCharacteristicInput{" + "points=" + points + '}';
return "OlmCharacteristicInput{" + "points=" + getPoints() + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public int hashCode() {

@Override
public String toString() {
return "QV{" + "points=" + points + '}';
return "QV{" + "points=" + getPoints() + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public int hashCode() {

@Override
public String toString() {
return "WecCharacteristicInput{" + "points=" + points + '}';
return "WecCharacteristicInput{" + "points=" + getPoints() + '}';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
*/
public abstract class TimeSeries<E extends TimeSeriesEntry<V>, V extends Value>
extends UniqueEntity {
protected final Set<E> entries;
private final Set<E> entries;

public TimeSeries(Set<E> entries) {
protected TimeSeries(Set<E> entries) {
super();
this.entries = Collections.unmodifiableSet(entries);
}

public TimeSeries(UUID uuid, Set<E> entries) {
protected TimeSeries(UUID uuid, Set<E> entries) {
super(uuid);
this.entries = Collections.unmodifiableSet(entries);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public LoadProfileInput(UUID uuid, StandardLoadProfile type, Set<LoadProfileEntr
super(uuid, values);
this.type = type;
this.dayOfWeekToHourlyValues =
entries.stream()
getEntries().stream()
.collect(
Collectors.groupingBy(
LoadProfileEntry::getDayOfWeek,
Expand Down Expand Up @@ -54,11 +54,6 @@ public StandardLoadProfile getType() {
return type;
}

@Override
public Set<LoadProfileEntry> getEntries() {
return entries;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

/** Class with extended information to describe common voltage levels in energy systems. */
public class CommonVoltageLevel extends VoltageLevel {
protected final Set<String> synonymousIds;
private final Set<String> synonymousIds;
protected final RightOpenInterval<ComparableQuantity<ElectricPotential>> voltageRange;

/**
Expand Down

0 comments on commit 2165981

Please sign in to comment.